Here's a hint...ALWAYS use proxies for your query strings.
$query = "insert into firsttab (first_name, last_name) values
('$first_name', '$last_name')";
mysql_query($query);
var_dump($query); // copy output and paste into the mysql
// command line interface.
You can also use the mysql_error() and mysql_errno() calls
to see what went wrong.
-Szii
----- Original Message -----
From: "cin" <[EMAIL PROTECTED]>
> <html>
> <body>
> <? php
> mysql_connect("localhost", "test", "testpw");
> mysql_select_db("testdb");
> msyql_query("insert into firsttab (first_name, last_name) values
> ('$first_name', '$last_name')");
> print ($first_name);
> print (" ");
> print ($last_name);
> print ("<p>");
> print ("blah blah blah");
> ?>
> </body>
> </html>
>
> i have used the appropriate grant privileges to ensure said user can indeed
> do the requested action in the script.
>
>
> any help is appreciated.
>
>
> thanks.
>
>
> cin
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php