Hi
ich hab da ein problem
wenn ich eine SQL abfrage außerhalb einer function aufrufe funktioniert es prima aber sobald ich es in einer function versuche geht es nicht mehr
PHP-Code:
function IN_DB_Suchen($xkoord, $ykoord, $Gala)
{
$sql = "SELECT * FROM Sonnensystem WHERE XKoords = '$xkoord' AND YKoords = '$ykoord' AND Gala = '$Gala'";
$result = mysql_query($sql) OR die(mysql_error());
$num_rows = mysql_num_rows($result);
echo $num_rows.'<br>';
}
so und dabei bekomm ich als egebnis in der funktion immer null
danke für die hilfe im voraus