[PHP-DB] Re:*FIX* insert data in mysql table

2004-04-10 Thread Andy Ladouceur
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

[PHP-DB] Re: insert data in mysql table

2004-04-10 Thread Andy Ladouceur
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

[PHP-DB] insert data in mysql table

2004-04-10 Thread 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 = "*

Re: [PHP-DB] Can't access HTTP Post Array

2004-04-10 Thread Doug Thompson
[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

[PHP-DB] Can't access HTTP Post Array

2004-04-10 Thread Bestman4unowwa
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