PHP search problem!
Hey.Jeg er igang med at lave en searchfunktion til min side.
SEARCH.PHP:
<?
include 'connect.php';
?>
<form method="POST" action="searchprocess.php">
Søg på klubnavn:
<input type="text" name="clubsearch">
<input type="submit" alt="Søg">
</form>
SEARCHPROCESS.PHP:
<?
include 'connect.php';
?>
<?php
$_POST['clubsearch'] = $soeg;
$query="SELECT * from skype, msn, steam where playername='$soeg'";
$query2=mysql_query($query);
$query3=mysql_fetch_array($query2);
print "<table border=0><tr><td>" . $query3['vname'] . "</td><td>har " . $query3['vid'] . " erfaringspoint</td><td>og " . $query3['accname'] . " Stykker Land.</td></tr></table>";
?>
Fejlmeddelelse, når man søger:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/a1270553/public_html/searchprocess.php on line 13
Hvordan fikser jeg det?