Search found 178 matches

by Winawer
Tue Nov 01, 2011 6:40 am
Forum: Beginner Help and Support
Topic: Help With DB Check[Solved]
Replies: -1
Views: 1404

Re: Help With DB Check

I'm guessing you'll need to check against the row count, $result is false only if the query fails. Returning zero rows is not the same as failing.
by Winawer
Mon Oct 31, 2011 8:25 am
Forum: Beginner Help and Support
Topic: Help With DB Check[Solved]
Replies: -1
Views: 1404

Re: Help With DB Check

That is very strange, because it definitely shouldn't. And it actually has nothing to do with PHP, since the "header before content" rule is just the way the web works. I wonder if it is only working because it is being accessed locally (since you are not interacting with a full networkin...
by Winawer
Fri Oct 28, 2011 5:54 am
Forum: Older Browser MMO Videos
Topic: error i don't understand at all!(resolved)
Replies: -1
Views: 561

Re: error i don't understand at all!

Chris wrote: When using isset, isset will check if the variable contains data, a warning will still be thrown if the variable doesn't exist.
This is wrong, isset shouldn't throw a warning if the variable isn't set.
by Winawer
Fri Oct 28, 2011 5:37 am
Forum: Beginner Help and Support
Topic: PvP Battles Only Working for 1 player[Solved]
Replies: -1
Views: 1201

Re: PvP Battles Only Working for 1 player.

Code: Select all

if ($player2meleeroll > $player2defroll)
{
	//
}
elseif ($player2meleeroll > $player2defroll)
{
	//
}
This looks wrong at least.
by Winawer
Wed Oct 19, 2011 7:24 am
Forum: Older Browser MMO Videos
Topic: Start Guild and adding ranks...
Replies: -1
Views: 1645

Re: Start Guild and adding ranks...

It's the column names. Identifiers may begin with a digit but unless quoted may not consist solely of digits. See http://dev.mysql.com/doc/refman/5.1/en/identifiers.html Also, as it seems that many of your errors are MySQL query related, you should learn how to use mysql_error() for debugging. See h...
by Winawer
Fri Aug 26, 2011 2:24 pm
Forum: Browser based RTS Videos
Topic: Problems with my RANK PAGE
Replies: -1
Views: 4832

Re: Problems with my RANK PAGE

Use .tableLink a, not a.tableLink

Etc.
by Winawer
Fri Aug 26, 2011 6:01 am
Forum: Advanced Help and Support
Topic: Still got battleproblems? ... :(
Replies: -1
Views: 556

Re: Still got battleproblems? ... :(

... if ($creature = 0) //this is wrong $creature = isset($_POST['creature'])? $_POST['creature'] : ""; ---> I really dont know wth this is trying to do. (if someone could tell me please) That's the same as if(isset($_POST['creature'])) { $creature = $_POST['creature']; } else { $creature ...
by Winawer
Wed Aug 17, 2011 6:04 am
Forum: Coding
Topic: Another PHP quandry with updating tables
Replies: -1
Views: 710

Re: Another PHP quandry with updating tables

Order is a reserved word in MySQL, so it needs to be in quotes if used as a column (or table, etc.) name.

Go to advanced search