RE: [PHP] how to concatenate php variables in mysql query
| From: | Jay Blanchard | Date: | Wed, 22 Sep 2004 12:51:36 +0000 |
| Subject: | RE: [PHP] how to concatenate php variables in mysql query | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-197560@lists.php.net to get a copy of this message | ||
[snip]
telephone_number='$telcode.$telnumber',
only the telcode gets inserted.
[/snip]
Concat them before placing into the query...(have you echo'd $telnumber
to make sure it is not empty?)
$wholeTelNumber = $telcode . $telnumber;
echo $wholeTelNumber;
telephone_number='$wholeTelNumber',