Putting vairables into database
Posted on 2004-09-18
Im trying to use this bit of code to put some variables into the database, it puts data into the db ok no problems, but it comes up as the vaiable names within the database i.e. $password in the password field etc, whats up with this ?
$sql = 'INSERT INTO `clients` ( `client_name` , `client_email` , `cms_clientid` , `cms_password` ) '
. ' VALUES ( \'$clientname\', \'$email\', \'$userid\', \'\$password\' );'
. ' ';
$result = mysql_query($sql);