MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
Database Help
AuthorText
xgstq
Donator
Avatar

Posts: 131
Contributes: 110

Gender: _MALE_
Online: No
Date: 07/09/2008 13:44
Database Help
#post11624
Im trying to make a new page, that has its own admin side. So far its going okay, the layout is all done, databases added...

Problem i have is calling the db

I got this far
code
$result = $dblink->get_list("SELECT siteurl, alttext, img1, img2, img3, img4, img5, img6, activelink, img2active, img4active, img6active from memht_linkme", $dblink);


but then i tried to list it by using

code
list($siteurl, $alttext, $img1, $img2, $img3, $img4, $img5, $img6, $activelink, $img2active, $img4active, $img6active) = sql_fetch_row($result, $dblink);
and it doesnt like it... i just get a blank page.

Is there anyway to turn on error reporing too ?
Im not expecting a reply to soon, because its not that important.. its one of my many projects ! lol
Delete Edit Quote
 
paulo89
Moderator
Developer

Avatar

Posts: 1300
Contributes: 537

Gender: _MALE_
Online: Yes

Version: 3.8.1
Country: Portugal
Languages: Portuguese, Portuguese and little english ^^
Date: 07/09/2008 13:55
Re: Database Help
#post11627
Hi

code

$result = $dblink->get_list("SELECT siteurl, alttext, img1, img2, img3, img4, img5, img6, activelink, img2active, img4active, img6active from memht_linkme", $dblink);
 

?? memht_linkme", $dblink ?
wrong ^^

Try somethink like this:

code

global $dblink;
$result = $dblink->get_list("SELECT siteurl, alttext, img1, img2, img3, img4, img5, img6, activelink, img2active, img4active, img6active FROM memht_linkme");
 
Edited: 07/09/2008 13:56
Reason: smiles off
Delete Edit Quote
 
Reply
Tags Cloud
Advertising
News Archive
Language
Help MemHT Portal
Navigator
Users Block
Hi Guest
IP: 38.103.63.59

Username
Password
New files
MemHT Wiki
Friends
MemHT Portal is a free software released under the GNU/GPL License by Miltenovik Manojlo