General Community > Scripting Help

Hmm, query is not good

<< < (2/2)

Metho:
Nope. Gotta be a query problem....because resourceid#3 doesn't exist anywhere in that table. I've even tried just doing something like SELECT pid FROM yabbse_gallery_pictures and trying to echo that. I just get those resource id3's repeated for as many entries as I have in that table....argh...

Methonis

Spaceman-Spiff:
i think when using double quotes, you dont need to put single quotes for arrays
$row['pid'] => $row[pid]

[Unknown]:
If you echo $result you will get "resource#3" because $result is just a result resource.

-[Unknown]

Metho:
AHH! First, thanks [Unknown], I understand about the echo'ing $result now and how I should be echo'ing $row[title]!! Dumb of me. And then thanks Spaceman for pointing out on taking those single quotes out of the array value, I think that's what was causing it to not display anything! It's working great now. :D

Thanks everyone for your patience and help! :D

Methonis

Navigation

[0] Message Index

[*] Previous page

Go to full version