Re: problems 'adding' to MySQL DBs

From: Date: Mon, 20 May 2002 17:12:59 +0000
Subject: Re: problems 'adding' to MySQL DBs
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-19288@lists.php.net to get a copy of this message
On Monday 20 May 2002 23:31, cin wrote: > using Apache 1.3.20 and MySQL 3.23-49a, > > i can connect to the database using mysql_connect no problem, but for some > reason, when i try to add to the database, there is blank output. when i > check the database, it only registers blanks ... > > relevant code as follows: > > submitform.php: > > <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')"); Add some error checking code and use mysql_error(). -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* May Euell Gibbons eat your only copy of the manual! */

« previous php.db (#19288) next »