Uploading and displaying game replay files.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
nielsene
DevNet Resident
Posts: 1834
Joined: Fri Aug 16, 2002 8:57 am
Location: Watertown, MA

Post by nielsene »

Sorry, I'll have to beg off here. I don't have a MySQL DB to test against and I have no experience with MySQL. Its probably something trivial, but ....
Citizen
Forum Contributor
Posts: 300
Joined: Wed Jul 20, 2005 10:23 am

Post by Citizen »

Can anyone else fix that last part?
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

My only 2 suggestions would be to change line 19 to read:

Code: Select all

$result = mysql_query($sql,$db) or die(mysql_error());
That'll output any error if there was one. Add the "or die..." part to line 33 as well.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply