Die einfachsten Sachen funktionieren nicht. Ich habe folgendes script:
	
Wenn ich jetzt nach "test" suche, was definitiv in meiner DB vorkommt, findet er trotzdem nichts. Hat jemand ne idee?
PS: $_GET hat auf jeden Fall Inhalt
PPS: Was mich außerdem wundert: Er scheißt noch ne MySQL Fehlermedlung raus (mysql_num_rows(): supplied argument is not a valid MySQL result resource in [...]), sollte er das nicht nicht tun?
					PHP-Code:
	
	
$res = mysql_query("SELECT * FROM recent_source WHERE rs_source LIKE %".$_GET["search"]."%");
if (mysql_num_rows($res) == 0) {
   echo "Nichts gefunden";
} else {
    while($row = mysql_fetch_assoc($res)) {
        echo $row['rs_source'];    
    }
} 
PS: $_GET hat auf jeden Fall Inhalt
PPS: Was mich außerdem wundert: Er scheißt noch ne MySQL Fehlermedlung raus (mysql_num_rows(): supplied argument is not a valid MySQL result resource in [...]), sollte er das nicht nicht tun?
 
          
 
							
						
Kommentar