Jump to content

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

)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.