TeamPhotoshop
Reviews, updates and in depth guides to your favourite mobile games - AppGamer.com
Forum Home Latest Posts Search Help Subscribe

I'm prolly just retarded... but...

Page: 1 2 Reply
Mar 29th 2002#37996 Report
Member since: Mar 18th 2001
Posts: 1452
Sorry man. I just can't see anything wrong, but I'm probably overlooking something. I tried. :o The code I gave above is exactly how I'm querying my DB.
Reply with Quote Reply
Mar 29th 2002#38117 Report
Member since: Feb 17th 2002
Posts: 108
still gives me the error blah blah is not a supplied result resource djdklafjld

n/m
Reply with Quote Reply
Mar 29th 2002#38118 Report
Member since: Feb 17th 2002
Posts: 108
bkjladjfkla
Reply with Quote Reply
Mar 29th 2002#38185 Report
Member since: Mar 20th 2001
Posts: 3367
Look into your DB, probably the tables aren't there or there's nuthing to append to...
Reply with Quote Reply
Mar 30th 2002#38238 Report
Member since: Jun 30th 2001
Posts: 447
Why in database.inc.php are you creating the news table each time it's called? Get rid of that line.

And try the below code noting that I've added a conditional to the mysql_query. This conditional will alert you if mySQL encounters any error in your query.

[PHP]require ("database.inc.php");
$result = mysql_query("SELECT subject, content, timestamp FROM news ORDER BY timestamp DESC") or die(mysql_error());
while ($data = mysql_fetch_array($result))
{
?>
 []





}
?>
[/PHP]
Reply with Quote Reply
Mar 30th 2002#38293 Report
Member since: Feb 17th 2002
Posts: 108
eh, thanks for helping, but i've figured out a way to write the news to a text document and then display it.
Reply with Quote Reply
Page: 1 2 Back to top
Please login or register above to post in this forum