Search found 178 matches
- Wed Apr 08, 2015 5:56 am
- Forum: Beginner Help and Support
- Topic: problem with strings (SOLVED)
- Replies: -1
- Views: 3387
Re: problem with strings
You're missing a call to mysql_connect().
- Fri Jan 23, 2015 6:29 am
- Forum: Beginner Help and Support
- Topic: Updating Dragon Knight Engine
- Replies: -1
- Views: 9568
Re: Converting Dragon Knight to mysqli (need help)
What's in opendb()?
- Fri Nov 07, 2014 7:01 am
- Forum: Advanced Help and Support
- Topic: Not Random Enough
- Replies: -1
- Views: 735
Re: Not Random Enough
Your condition is wrong for no income (60006 should be 6006), maybe that's the problem?
What's the expected result and what are you getting?
What's the expected result and what are you getting?
- Thu Oct 30, 2014 7:16 am
- Forum: Beginner Help and Support
- Topic: Logout Issue
- Replies: -1
- Views: 1069
Re: Logout Issue
I don't really understand the question but there's a problem in the code: setcookie breaks header redirects unless you use output buffering.
- Thu Oct 23, 2014 6:32 am
- Forum: Beginner Help and Support
- Topic: Could anyone help me find what's wrong with this script?
- Replies: -1
- Views: 913
Re: Could anyone help me find what's wrong with this script?
The code seems to pick from a pool of three actual enemies, not types of enemies. When the player kills an enemy it will have 0 HP and will basically respawn as a corpse next time.
- Thu Oct 09, 2014 5:57 am
- Forum: Beginner Help and Support
- Topic: Echoing Rankings in order with numbers
- Replies: -1
- Views: 2011
Re: Echoing Rankings in order with numbers
Code: Select all
if ($row['id'] = true) {
- Mon Oct 06, 2014 6:19 am
- Forum: Beginner Help and Support
- Topic: Problem with mysqli
- Replies: -1
- Views: 1094
Re: Problem with mysqli
Echo your query and you should immediately see the problem ($limit).
- Mon May 19, 2014 5:43 am
- Forum: Beginner Help and Support
- Topic: How To Check A Query...
- Replies: -1
- Views: 618
Re: How To Check A Query...
You can use mysqli::$error to see what's going wrong: http://www.php.net/manual/en/mysqli.error.php If there's no error your query is returning zero rows. You can echo the variables (probably $password is the problem since username works in your other code fragment, perhaps you're forgetting to hash...
- Fri May 16, 2014 5:24 am
- Forum: Beginner Help and Support
- Topic: How To Check A Query...
- Replies: -1
- Views: 618
Re: How To Check A Query...
You're not fetching from the result set so $rowAID is null.
See http://www.php.net/manual/en/mysqli-stmt.fetch.php
See http://www.php.net/manual/en/mysqli-stmt.fetch.php
- Mon Apr 28, 2014 5:49 am
- Forum: Coding
- Topic: [js] how can ((a == 0) && (a == 1) && (a == 2)) === true?
- Replies: -1
- Views: 1700
Re: [js] how can ((a == 0) && (a == 1) && (a == 2)) === true
Code: Select all
var a = {
i: 0,
valueOf: function() {
return this.i++;
}
}