Thread: Please Help
View Single Post
Old 04-12-2005, 02:46 PM   #5 (permalink)
DJMaze
Senior Contributor
 
DJMaze's Avatar
 
Join Date: Mar 2005
Posts: 651
DJMaze is on a distinguished road
Quote:
Originally Posted by jsims
Sorry, but that didn't help. The problem is in this line

$add_all = 'INSERT INTO $table values('$uname','$ucomment','$ip','$time','')';
The following way is the only correct way:
PHP Code:
$add_all "INSERT INTO $table values('$uname','$ucomment','$ip','$time','')"
For example use the following test to see the difference
PHP Code:
<?php
$test 
'string';
echo 
$test.'<br>';
echo 
"$test<br>";
echo 
'$test<br>';
The output is:
Code:
string<br>
string<br>
$test<br>
it's the difference between single and double quotes
DJMaze is offline   Reply With Quote