RE: [PHP] how to concatenate php variables in mysql query
| From: | Jay Blanchard | Date: | Wed, 22 Sep 2004 12:39:38 +0000 |
| Subject: | RE: [PHP] how to concatenate php variables in mysql query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197556@lists.php.net to get a copy of this message | ||
[snip]
telphone number =$telcode.$telnumber'
but only the telcode gets written to the database.
[/snip]
There is not enough here to know for sure (I am betting this is part of
a query), but if your code looks like the above you are missing a single
quote after the =. Now, if you enclose the variables in the single
quotes without other manipulation it will probably not work as expected.
Can we see the whole query?