Oops. I left a field in.
Change it to:
$add_all = "INSERT INTO $table
> values('','$name','$day','$question','$email')";
Andy
Andy Ladouceur wrote:
From what I can see, the order that you created the table with and the
order of the fields in the query do not match up. Changing the query to:
$a
From what I can see, the order that you created the table with and the
order of the fields in the query do not match up. Changing the query to:
$add_all = "INSERT INTO $table
values('','$name','$day','$question','$email','')";
Should make things run just fine.
Cheers,
Andy
Charalambos Nicolaou
Hi everyone ,
I have created this Mysql table
CREATE TABLE questions (ID INT NOT NULL AUTO_INCREMENT, name VARCHAR(25),
day DATE, question TEXT, email VARCHAR(30), PRIMARY KEY(ID));
And I am trying to insert data in it using the following
echo("Your comment has been posted.");
$host = "*
[EMAIL PROTECTED] wrote:
I'm running Apache/2.0.49 and PHP/4.3.5 on windows XP with MSIE 6.0. -- local host.
When I try to access the variables in the array (HTTP POST), they are empty or null. Did I miss a PHP or Apache setting in the php.ini or httpd.conf?
Use$_POST['array_element']
Doug
I'm running Apache/2.0.49 and PHP/4.3.5 on windows XP with MSIE 6.0. -- local host.
When I try to access the variables in the array (HTTP POST), they are empty or null.
Did I miss a PHP or Apache setting in the php.ini or httpd.conf?
--
PHP Database Mailing List (http://www.php.net/)
To unsubsc