Re: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread CPT John W. Holmes
From: [EMAIL PROTECTED] And I'm trying to add a session variable to a MySQL database. I've done this page that takes the results from a previous form... But I get this error: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' On line 83 Which is the

RE: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread Hutchins, Richard
, October 16, 2003 9:08 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP-DB] Sessions and MySQL? From: [EMAIL PROTECTED] And I'm trying to add a session variable to a MySQL database. I've done this page that takes the results from a previous form... But I get this error

RE: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread Michael.J.Bourke
Try this instead: mysql_query(INSERT INTO $table ( salutation, name, city } VALUES { \.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\ } -Original

RE: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread Michael.J.Bourke
Eeek, didn't notice your brackets. They're a bit messed up as well. mysql_query(INSERT INTO $table (salutation, name, city) VALUES (\.$_SESSION['salutation'].\, \.$_SESSION['name'].\, \.$_SESSION['city'].\);); This MIGHT work :-) -Original Message- From: [EMAIL PROTECTED]

Re: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread George Patterson
On Thu, 16 Oct 2003 13:33:28 +0100 [EMAIL PROTECTED] wrote: Not sure if this is a MySQL Q. or a PHP one, but here goes... I'm just learning sessions... And I'm trying to add a session variable to a MySQL database. I've done this page that takes the results from a previous form... But I get

Re: [PHP-DB] Sessions and MySQL?

2003-10-16 Thread Tristan . Pretty
Cheers to everyone... the curly brackets was me not thinking after a boozy lunch, and trying to recreate code, on an E-mail.. anyhoo... I thought the best idea, and the simplest for me, was to remove the ' from the session recall Turning $_SESSION['salutation'] -- INTO -- $_SESSION[salutation]

Re: [PHP-DB] Sessions and MySQL

2001-03-21 Thread Mark Robinson
Hello Rob, Tuesday, 20 March 2001, you wrote: RW I am trying to implement session support with mysql. I am using RW session.set_save_handler but don't really have a great set of functions does RW anyone have some good ones? Try http://www.phpbuilder.com/columns/ying2602.php3 Mark --