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