RE: [PHP-DB] No data being put into the DB

2004-03-04 Thread Hutchins, Richard
ay, March 03, 2004 10:09 PM > To: [EMAIL PROTECTED] > Subject: Re: [PHP-DB] No data being put into the DB > > > On Thursday 04 March 2004 10:36, [EMAIL PROTECTED] wrote: > > > >>IMO it is better to use the braces syntax: > > >>"insert into show >

Re: [PHP-DB] No data being put into the DB

2004-03-04 Thread Bruno Santos
Hello. I'm not sure, but, witch version of php are u using ? replace all the instances of $_POST[varname] with $HTTP_POST_VARS[' varname '] and see what happens !!! Cheers Robert Sossomon wrote: I have a form: http://www.garlandcnorris.com/registration_tradeShow.html That then goes to this pag

Re: [PHP-DB] No data being put into the DB

2004-03-03 Thread Jason Wong
On Thursday 04 March 2004 10:36, [EMAIL PROTECTED] wrote: > >>IMO it is better to use the braces syntax: > >>"insert into show > >>values('','{$_POST['Accnt_name']}','{$_POST['acc_num']}', ...)" > > I'm not second guessing at all, just curious as to why? Is it less work on > the parser? > Do you

Re: [PHP-DB] No data being put into the DB

2004-03-03 Thread jeffrey_n_Dyke
On Thursday 04 March 2004 08:08, Rich Hutchins wrote: > Oh, and, normally, you reference the variables like so: $_POST["varname"]. > I typically use the following syntax: > > "INSERT INTO tablename > VALUES('".$_POST["varone"]."','".$_POST["vartwo"]."'); >>IMO it is better to use the braces sy

Re: [PHP-DB] No data being put into the DB

2004-03-03 Thread Jason Wong
On Thursday 04 March 2004 08:08, Rich Hutchins wrote: > Oh, and, normally, you reference the variables like so: $_POST["varname"]. > I typically use the following syntax: > > "INSERT INTO tablename > VALUES('".$_POST["varone"]."','".$_POST["vartwo"]."'); IMO it is better to use the braces syntax:

RE: [PHP-DB] No data being put into the DB

2004-03-03 Thread Rich Hutchins
Robert, I'm assuming that you have an open database connection and that you have just omitted it from your post for convenience sake. I'll keep looking at your code, but my first suggestion would be for you to echo $addtocart before you submit it to the database. This will show you the exact quer