Log in

View Full Version : hope this is the right place, Script Problem..


Shredder
11-04-2005, 05:11 PM
Hey all,

Upgraded to 3.5 and now my scripts a friend of mine made for me no longer work. I know nothing about scripts, so I hope someone can tell me how to modify them...

this is the error I get..

Fatal error: Call to a member function on a non-object in /home/krang/domains/twelveoclock.net/public_html/news/newss.php on line 22

This is what's on line 22

$newsresult = $DB_site->query("SELECT t.threadid, t.title, t.replycount, t.postusername, t.postuserid, t.dateline, p.postid, p.pagetext, t.open ".

Can anyone help out?
Thanks!

Guest190829
11-04-2005, 10:20 PM
Hey all,

Upgraded to 3.5 and now my scripts a friend of mine made for me no longer work. I know nothing about scripts, so I hope someone can tell me how to modify them...

this is the error I get..

Fatal error: Call to a member function on a non-object in /home/krang/domains/twelveoclock.net/public_html/news/newss.php on line 22

This is what's on line 22

$newsresult = $DB_site->query("SELECT t.threadid, t.title, t.replycount, t.postusername, t.postuserid, t.dateline, p.postid, p.pagetext, t.open ".


Can anyone help out?
Thanks!


Change: $DB_site->query

to

$db->query_read

Shredder
11-04-2005, 10:39 PM
Ahh, that got it! Thanks