Re: [PHP] Printing a string issue

2001-07-01 Thread Christian Reiniger

On Friday 29 June 2001 23:09, Craig Simon wrote:

 from html it would look like this

 pa href=wtai://wp/mc;1-555-555-1212Asst/a/p

 So I am trying to figure out how to write this.  I have a statement
 like this:

 print (pa
 href=\wtai://wp/mc;$row[officenum]\Office/a/p);

 Although I can't get this to parse!

Use the string concatenation operator '.' :
print (pa
 href=\wtai://wp/mc; . $row[officenum] . \Office/a/p);

-- 
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)

void sleep(){for(long int sheep=0;!asleep();sheep++);}

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Printing a string issue

2001-06-30 Thread Craig Simon








Greetings everyone. I have been lurking for a while now, and
now I am developing my first application with PHP. I am running into an issue that I would
love some help with.



I am writing an application to handle phonelists
and such. Now I am creating a
wireless version of the search page so that all the number links will be
automatically dialed when you click on them with your wap
phone. A link in WML would look
like this



wtai://wp/mc;1-555-555-1212



from html it
would look like this



pa href=wtai://wp/mc;1-555-555-1212"Asst/a/p



So I am trying to figure out how to write
this. I have a statement like this:



print
(pa href=\wtai://wp/mc;$row[officenum]\Office/a/p);



Although I can't get this to parse!



$row["officenum"]
is a variable that will have the number that I am calling. It is coming from a mysql
db. 



Any thoughts??



Thanks



Craig



Craig
Simon
Senior Systems Engineer

Mobileum Inc.

4234 Hacienda
  Drive, Pleasanton
Ca 94588

(O)
925-251-7269
(C) 925-487-6005