Thread: MYSQL Problem
View Single Post
Old 02-11-2008, 02:04 AM   #2 (permalink)
CrazeD
CrazeD's Avatar
 
Wizard Techie

Join Date: Feb 2006

Location: Maine

Posts: 3,688

CrazeD will become famous soon enough

Send a message via AIM to CrazeD Send a message via MSN to CrazeD
Default Re: MYSQL Problem

First off, use double quotes on your query string.

Example:
PHP Code:
$sql "INSERT INTO blah blah blah..."
This will allow you to use the single quotes for the names, without escaping it.

Second, you're inserting the variable wrong. Do it like this:
PHP Code:
'".$variable."' 
or

PHP Code:
'{$variable}' 

__________________

Need website help? PM me!
CrazeD is offline