Beste medetweakers, ik heb een probleem en kom er echt niet meer uit. Ik hoop dat een van jullie mij kan helpen hiermee.
Dit is mn source:
en dit is mn result met bv: url.php?sort=d
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%Druid%' at line 1
Dit is mn source:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
13
| if(strpos($sort, "l")!== false){$forder=("".$forder."OR class LIKE %Warlock% ");} if(strpos($sort, "w")!== false){$forder=("".$forder."OR class LIKE %Warrior% ");} if(strpos($sort, "p")!== false){$forder=("".$forder."OR class LIKE %Priest% ");} if(strpos($sort, "a")!== false){$forder=("".$forder."OR class LIKE %Paladin% ");} if(strpos($sort, "r")!== false){$forder=("".$forder."OR class LIKE %Rogue% ");} if(strpos($sort, "h")!== false){$forder=("".$forder."OR class LIKE %Hunter% ");} if(strpos($sort, "m")!== false){$forder=("".$forder."OR class LIKE %Mage% ");} if(strpos($sort, "d")!== false){$forder=("".$forder."OR class LIKE %Druid% ");} $result5=mysql_query("SELECT * FROM dkpchars WHERE id = 0 $forder") or die(mysql_error()); while($list5 = mysql_fetch_row($result5)){ extract($list5); |
en dit is mn result met bv: url.php?sort=d
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '%Druid%' at line 1
Intel Core i7 950 - Asus Sabertooth X58 - Asus GTX690 - BenQ XL2420T | Wallpapers | Flash Games