Hello all, I am relatively new to this forum and also to PHP. I am attempting to build a website using PHP and although it works fine on most computers some users have complained about experiencing a browser message when accessing one particular page (
http://www.cityboyswansea.com/article.php?id_art=8)- the message they are getting is -
"No database selected SQL:select* from blg_user_usr where username_usr=alice K"
I've tried several ways of solving this and even attempting to achieve the error myself with no success.
I've checked the error log and it reports - "PHP Warning: mysql_free_result(): 36 is not a valid MySQL result resource in public_html/register.php on line 630" The error log also reports
"PHP Notice: Undefined index: KT_user_blg in /home/cityboys/public_html/article.php on line 120" this line is shown below, where it prepares the value 'idusr'.
// default values for transaction PostComment
if (!isset($KT_fakeRs)) {
$KT_fakeRs = array(1);
fakeRecordSet_prepareValue('idart_com', $row_rsArticle['id_art'], $KT_fakeRs);
fakeRecordSet_prepareValue('text_com', "", $KT_fakeRs);
fakeRecordSet_prepareValue('idusr_com', $_SESSION['KT_user_blg'], $KT_fakeRs);
fakeRecordSet_prepareValue('date_com', date('Y-m-d H:i:s'), $KT_fakeRs);
fakeRecordSet_prepareValue('valid_com', 0, $KT_fakeRs);
}
Any advice would be greatly appreciated.