Re: Inserting variables
| From: | Jason G. | Date: | Tue, 09 Oct 2001 22:52:54 +0000 |
| Subject: | Re: Inserting variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70548@lists.php.net to get a copy of this message | ||
Send your script to me (or the list) and I'll come with a much better way!
-Jason Garber
IonZoft.com
At 06:17 AM 10/9/2001 -0500, Rw wrote:
I have a form which variables ($q1 and $q2) to a PHP script and the sql statment is also passed as a hidden vriable called $sqlstatement When I set $sqlstatement = INSERT INTO tdefa8 VALUES ("$q1", "$q2", "2001-10-09") THEN it inserts "$q1" and "$q2" into the database - rather than their assigned values When I set $sqlstatement = INSERT INTO tdefa8 VALUES ($q1, $q2, "2001-10-09") THEN it doesn't insert ANYTHING FYI: I execute the statemnet like this: $query = "$sqlstatement"; $result = MYSQL_QUERY($query); I even tried: $query = $sqlstatement; Any ideas? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net