Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
printf how many rows are being returned.
Posts: 1,253
Threads: 36
Joined: Aug 2011
Reputation:
0
EDIT: Luls, I am terribly sorry for the waste of the Scripting Help.
I found the problem, seems that I forgot a letter (again, luls).
Posts: 1,905
Threads: 63
Joined: Oct 2011
Reputation:
0
Post your GetName() function? I almost have no clue why it's returning -1. Also try inputting the queries into your database editor. (phpmyadmin, etc.)