Why did you switch over to Include instead of Require_once?
Haru of Magicide
· 8 months ago
I can't get it to work.
It just won't add the stats.
Luke
· 8 months ago
You're going to have to give me more information in order for me to help you; do they not insert into the database? Does it not update them? What "doesn't work"? My first suggestion would be redoing the tutorial, and making sure that you follow each step exactly - typically these sorts of problems crop up because you've missed a step, or skipped ahead.
Ive got the same problem, when register it just say it couldnt connect to mysql db, altough it adds the user in the db, it wont add the stats. Oh, and the confirmation mail wont work either. The problem only happen when i tried to add: $userID = mysql_insert_id($conn); require_once 'stats.php'; setStat('atk',$userID,'5'); setStat('def',$userID,'5'); setStat('mag',$userID,'5');
anyone can help me out? thanks in advance
dragolux
· 2 months ago
Make sure that you add "$userID = mysql_insert_id($conn);" to the file before you call the setStat functions.
It just won't add the stats.
you; do they not insert into the database? Does it not update them? What
"doesn't work"?
My first suggestion would be redoing the tutorial, and making sure that you
follow each step exactly - typically these sorts of problems crop up because
you've missed a step, or skipped ahead.
http://buildingbrowsergames.com/2008/05/05/desi...
.
The problem only happen when i tried to add:
$userID = mysql_insert_id($conn);
require_once 'stats.php';
setStat('atk',$userID,'5');
setStat('def',$userID,'5');
setStat('mag',$userID,'5');
anyone can help me out? thanks in advance