Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 19th, 2008, 08:41 AM
Registered User
 
Join Date: Jun 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Please help.

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.












Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.