Jump to content

[SOLVED] Query was empty error


simcityfreak4

Recommended Posts

Ok, here is my code:

 

$idu = mysql_escape_string($_GET['id']);
$rid = mysql_escape_string($_GET['rid']);
$viewa = mysql_escape_string($_POST['VIEW_AVS']);
$timed = mysql_escape_string($_POST['VIEW_TIME']);
$timefp = mysql_escape_string($_POST['timefp']);
$RULEZ = "UPDATE `Members` SET `viewa` = '$viewa', `timed` = '$timed', `timef` = '$timefp' WHERE `board` = '$mboard' AND `user` = '$muser' AND `id` = '$idu'";
echo $RULEZ;
mysql_query($RLUEZ);
echo mysql_error();

 

When I echo the query is says:

UPDATE `Members` SET `viewa` = '1', `timed` = '1', `timef` = 'ka' WHERE `board` = 'Brian' AND `user` = 'Brian' AND `id` = '3'

 

I run that in phpMyAdmin and it works fine.

 

But when it echos mysql_error, is says:

Query was empty

 

Do you say anything that could cause this?

Link to comment
https://forums.phpfreaks.com/topic/56776-solved-query-was-empty-error/
Share on other sites

Still didn't get any errors.

 

This is what that gave:

 

Array

(

    [act] => save

    [id] => 3

    [rid] => 0188707001182542881

)

 

 

 

Array

(

    [VIEW_AVS] => 1

    [VIEW_TIME] => 1

    [timefp] => asdf

    [submit] => Change Account Options

)

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.