php-db | 2002091
Date: 09/01/02
- Next message: Matthew Newby: "[PHP-DB] pg_fetch_result returns something other than boolean???"
- Previous message: Shoulder to Shoulder Farm: "[PHP-DB] What's wrong with this code?"
- Maybe in reply to: Shoulder to Shoulder Farm: "[PHP-DB] What's wrong with this code?"
- Next in thread: David Robley: "[PHP-DB] Re: What's wrong with this code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
I'd use var inclusions like this;
VALUES ('" . $_POST['Name'] . "',
that might help you
// -----Original Message-----
// From: Shoulder to Shoulder Farm [mailto:s2sfarm <email protected>]
// Sent: Monday, 2 September 2002 11:42 AM
// To: PHP Database List
// Subject: [PHP-DB] What's wrong with this code?
//
//
// Hi all, I'm running PHP4. What's wrong with this code:
//
// <?
//
// $db = mysql_connect("localhost", "Taj", "passwordhere");
//
// mysql_select_db("s2s",$db);
//
// mysql_query("INSERT INTO prod VALUES ( 'Name', 'ShortDesc',
// 'LongDesc',
// 'PriceOZ', 'PriceLB', 'URLOZ', 'URLLB', 'IMG') VALUES
// ('$_POST[Name]',
// '$_POST[ShortDesc]', '$_POST[LongDesc], '$POST[PriceOZ',
// '$_POST[PriceLB]', '$_POST[URLOZ]', '$_POST[URLLB], '$_POST[IMG]');")
//
// ?>
//
// This will wrap, but, it should work.
//
// TIA, Taj
//
//
// --
// PHP Database Mailing List (http://www.php.net/)
// To unsubscribe, visit: http://www.php.net/unsub.php
//
-- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
- Next message: Matthew Newby: "[PHP-DB] pg_fetch_result returns something other than boolean???"
- Previous message: Shoulder to Shoulder Farm: "[PHP-DB] What's wrong with this code?"
- Maybe in reply to: Shoulder to Shoulder Farm: "[PHP-DB] What's wrong with this code?"
- Next in thread: David Robley: "[PHP-DB] Re: What's wrong with this code?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

