Jump to content

insert sql breaking after alter table


frontlinegamerz

Recommended Posts

function admin_list() {

global $blackorwhite;

$bwurl = $_POST['bwurl'];

$bwreason = $_POST['bwreason'];

$bwsub = $_POST['bwsub'];

$remove = $_POST['remove'];

if($bwsub) {

if($bwurl) {

@mysql_query("INSERT INTO ".addslashes($blackorwhite)."list VALUES ('".addslashes($bwurl,$bwreason)."')");

Can I suggest you change this line

 

@mysql_query("INSERT INTO ".addslashes($blackorwhite)."list VALUES ('".addslashes($bwurl,$bwreason)."')");

 

to this:

 

@mysql_query("INSERT INTO ".addslashes($blackorwhite)."list VALUES ('".addslashes($bwurl,$bwreason)."')") or die(mysql_error());

 

Once you have done this try to do the action that does the insert and see what error message you get.

 

;)

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.