Posted by Rik on 02/07/07 18:20
<tomhughes_86@hotmail.com> wrote:
> So far i'va had no problems actually connecting to the database and
> displaying resulst but I just cannot make it add records.
> $test2=3D$_POST['test2'];
> $query =3D "INSERT INTO test2 VALUES ('','$test2')";
> mysql_query($query);
Well, let's check why mysql doesn't like it:
mysql_query($query) or die("Error in query:\n$query\nMySQL =
sais:\n".mysql_error());
-- =
Rik Wasmus
Navigation:
[Reply to this message]
|