PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Diriger une société d'hébergement > alt.internet.seo > Adding a space when pulling from database?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.internet.seo Internet search engines and related topics.

Adding a space when pulling from database?

Réponse
 
LinkBack Outils de la discussion
Vieux 16/09/2006, 20h06   #1
T.J.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Adding a space when pulling from database?

I'm pulling data from an Access database and need
put a space between two words.
At the moment I have this,

<%=(rs1.Fields.Item("strFirstName").Value)%>
<%=(rs1.Fields.Item("strSecondName").Value)%>

This produces,

FirstNameSecondName without the space.

<%=(rs1.Fields.Item("strFirstName").Value)%>&nbsp; <%=(rs1.Fields.Item("strSecondName").Value)%>

Displays OK on the page, but isn't search engine friendly.

How can I add the space but still have it optimised?
(Working in ASP)
TIA.

--
T.J.
http://www.uksmallbusinessdirectory.co.uk


  Réponse avec citation
Vieux 16/09/2006, 21h48   #2
John Bokma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding a space when pulling from database?

"T.J." <no1@home.invalid> wrote:

> I'm pulling data from an Access database and need
> put a space between two words.
> At the moment I have this,
>
> <%=(rs1.Fields.Item("strFirstName").Value)%>
> <%=(rs1.Fields.Item("strSecondName").Value)%>
>
> This produces,
>
> FirstNameSecondName without the space.
>
> <%=(rs1.Fields.Item("strFirstName").Value)%>&nbsp; <%=(rs1.Fields.Item("
> strSecondName").Value)%>
>
> Displays OK on the page, but isn't search engine friendly.


Why not? nbsp; is white space afaik.

> How can I add the space but still have it optimised?


<%=...%> <%=....%> ?

However, use a database for what it is good at: manipulating data. I am
sure there is a contact function in Access to glue strFirstName + space +
strSecondName. Probably is more efficient as well.



--
John Need with SEO? Get started with a SEO report of your site:

--> http://johnbokma.com/websitedesign/seo-expert-.html
  Réponse avec citation
Vieux 18/09/2006, 11h28   #3
Buzby
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding a space when pulling from database?


> I'm pulling data from an Access database and need
> put a space between two words.
> At the moment I have this,
>
> <%=(rs1.Fields.Item("strFirstName").Value)%>
> <%=(rs1.Fields.Item("strSecondName").Value)%>
>
> This produces,
>
> FirstNameSecondName without the space.
>
> <%=(rs1.Fields.Item("strFirstName").Value)%>&nbsp; <%=(rs1.Fields.Item("strSecondName").Value)%>
>
> Displays OK on the page, but isn't search engine friendly.
>
> How can I add the space but still have it optimised?
> (Working in ASP)


<%=(rs1.Fields.Item("strFirstName").Value) & " " &
(rs1.Fields.Item("strSecondName").Value)%>


  Réponse avec citation
Vieux 18/09/2006, 11h29   #4
Buzby
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding a space when pulling from database?


> <%=(rs1.Fields.Item("strFirstName").Value) & " " &
> (rs1.Fields.Item("strSecondName").Value)%>


should all be on one line . . . . . .


  Réponse avec citation
Vieux 19/09/2006, 15h48   #5
T.J.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Adding a space when pulling from database?


"Buzby" <gb@pumpupthe.net> wrote in message
news:4n7ambF93f7eU1@individual.net...
>
>> I'm pulling data from an Access database and need
>> put a space between two words.
>> At the moment I have this,
>>
>> <%=(rs1.Fields.Item("strFirstName").Value)%>
>> <%=(rs1.Fields.Item("strSecondName").Value)%>
>>
>> This produces,
>>
>> FirstNameSecondName without the space.
>>
>> <%=(rs1.Fields.Item("strFirstName").Value)%>&nbsp; <%=(rs1.Fields.Item("strSecondName").Value)%>
>>
>> Displays OK on the page, but isn't search engine friendly.
>>
>> How can I add the space but still have it optimised?
>> (Working in ASP)

>
> <%=(rs1.Fields.Item("strFirstName").Value) & " " &
> (rs1.Fields.Item("strSecondName").Value)%>
>
>


Thank you,
did just what I wanted it to do.

--
T.J.
http://www.uksmallbusinessdirectory.co.uk



  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 18h44.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13042 seconds with 13 queries