Re: Problem running sql stored in the database

From: Date: Fri, 09 Apr 2004 15:22:12 +0000
Subject: Re: Problem running sql stored in the database
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-182995@lists.php.net to get a copy of this message
John W. Holmes wrote:
From: "John Nichel" <john@kegworks.com>
Don't use single quotes.
$sql = "INSERT INTO table (id, name) VALUES ( '" . $id . "', '" . $name . "')
awww, come on... someone besides me had to understand wtf Ryan was blabbering about, right???? ;) ;) ;) ---John Holmes...
I have blabbering turned off today. :o ;) -- *********************************************************************** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \ / /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' </ -_) _` \ \/\/ / _ \ '_| / /(_-<_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com john@KegWorks.com * 14203 - 1321 * ***********************************************************************

« previous php.general (#182995) next »