Delphiprogrammi
01-03-2006, 05:41 PM
hi people,
I'm having a problem with a MySQL query.It's an "install" code for a product and i'm getting an error returned
$db->query_write("INSERT INTO " . TABLE_PREFIX . "setting(varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile,product) VALUES ('modpmtext', 'posting', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled "$threadinfo" has been $action.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled "$threadinfo" has been $action by $modby.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'textarea', 150, 0, 0, 'free', 'modautopm')
unexpected variable is the error returned ..
should i use $db->escape_string() ??
I'm having a problem with a MySQL query.It's an "install" code for a product and i'm getting an error returned
$db->query_write("INSERT INTO " . TABLE_PREFIX . "setting(varname, grouptitle, value, defaultvalue, optioncode, displayorder, advanced, volatile,product) VALUES ('modpmtext', 'posting', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled "$threadinfo" has been $action.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'Hi $username,\r\n\r\nThis message is to advise you that your $type titled "$threadinfo" has been $action by $modby.\r\n\r\nThe $type is located at this URL $url\r\n\r\nIf you have any questions, you can ask an administrator for assistance\r\n\r\nSincerely,\r\nThe $bbtitle staff.', 'textarea', 150, 0, 0, 'free', 'modautopm')
unexpected variable is the error returned ..
should i use $db->escape_string() ??