I'm hoping someone can help me.
I was trying to backup our eqdkp database and managed to remove all the admin access from the admin account :(
I cannot use phpmyadmin or mysql to directly access the database to fix it.
From what I can see the code below should do what I want but it just gives me an error: Parse error: parse error, unexpected T_IF in /home/httpd/dynamic/phantomraiders/eqdkp/admin/tmp.php on line 9
Any help would be very much appreciated.
Thanks.
[PHP]<?php
define('EQDKP_INC', true);
$eqdkp_root_path = '../';
include_once($eqdkp_root_path . 'common.php');
$sql = "UPDATE eqdkp_auth_users SET auth_setting='Y' WHERE user_id = '1'"
if (!($return_code = $db->query($sql)))
{
message_die('Could not run that command ', '', __FILE__, __LINE__, $sql);
}
?>[/PHP]