Ah yes, I forgot to some quotes here and then,. but the code U stated didn't work either 
I think I'm making a major error here, let me first paste some code over here
PHP Code:
if ($Search == "Search") {
$sql = "SELECT naam FROM appel";
$eps = mysql_query("$sql");
This wil put the data of the column naam from appel into $eps, now I can get put this info into paragraphs (or tables)
PHP Code:
while ($row = mysql_fetch_array($eps) ) {
$naam=$row["naam"]; echo("<p>". $naam . "</p>");
And close the functions
Now i wish to search the database for specific data, and I've searched the mysql reference to make that happen
All i need to do is add a WHERE naam LIKE %$sid% line in the mysql console wich works perfectly, now adding it into my php code.. i chanched the $sql line into:
PHP Code:
$sql = "SELECT naam FROM appel" .
"WHERE naam LIKE %$sid%";
wich gives me an undefined call error,.. what's wrong with my aproach?, are there alternatives?
Bookmarks