still not getting any results. I am searching for a word in a sentence name that i put in to the database, so it should work. and i want it to display on the same page underneath the search box. Here is the code i have now:
<table width="30%" border="0">
<form action="membersArea.php" method="post">
<tr><td><input type="text" name="articleSearch"></td><td><input type="submit" name="search" value="Search"></td></tr>
</form>
</table>
<?php
if ($search)
{
$db = mysql_connect("localhost", "******", "******");
mysql_select_db("the-coff_maitland",$db);
$select = mysql_query("SELECT * FROM article WHERE name LIKE '%".$_POST['search']."%'",$db);
while ($myrow = mysql_fetch_array($select))
{
printf("%s, ", $myrow["name"]);
}
}
?>
Can't see what the problem is. i have even used the correct case(lower).
Thanks