Thanks for the reply
ok here is the closed php tags using the
<?php require_once("Connections\connect.php");?>
<form id="form1" name="form1" method="post" action="">
<label></label>
<div align="center">
<label>
<input name="keyword" type="text" id="keyword" />
</label>
<label>
<input type="submit" name="Submit" value="Search" />
</label>
</div>
</form>
<table width="800" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="118">
<?
$sql = "select * from drivers where id=" . $_POST['keyword'] . " and manufacturer='" . $_POST['keyword'] . "'";
$query = mysql_query($sql);
while ($row = mysql_fetch_array($query)) { echo "<p>",$row['os'],": ",$row['manu']; }
?>
</td>
</tr>
</table>
OK what i wanted this to do is search driver database for the existence of a required keyword in the fields os and manu there is other fields but if this could work i could just add the other fields later on.
When processing the search page i get this error
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in c:\wamp\www\search.php on line 22
Line 22 = while ($row = mysql_fetch_array($query)) { echo "<p>",$row['os'],": ",$row['manu']; }
Many Thanks Pinky