Hi guys and help would be appreciated just before hand I am not php expert
.
I have a small dbase (mysql) that has 3 fields make, model and scan code. So what I want to do is
Run a query with php to select the make and model then istshould display the scan code if that makes any sense.
So currently I have the following:
<?php
Mysql_connect(“localhost”, “whatever”, “morepasswd”) or die(mysql_error());
Mysql_select_db(“test”) or die(mysql_error());
$data = mysql_query(“SELECT * FROM test.table”) or die(mysql_error());
Print “<table border cellpadding=3>”;
While ($info = mysql_fetch_array( $data ))
{
Print “tr”;
Print “<th>Make:</th> <td>”.$info[‘MAKE’] .”</td>”;
}
?>
So this will print all the makes , I am not sure how to code the form function to only look for
A certain make and model ?
Any help / suggestion would be appreciated.
I have a small dbase (mysql) that has 3 fields make, model and scan code. So what I want to do is
Run a query with php to select the make and model then istshould display the scan code if that makes any sense.
So currently I have the following:
<?php
Mysql_connect(“localhost”, “whatever”, “morepasswd”) or die(mysql_error());
Mysql_select_db(“test”) or die(mysql_error());
$data = mysql_query(“SELECT * FROM test.table”) or die(mysql_error());
Print “<table border cellpadding=3>”;
While ($info = mysql_fetch_array( $data ))
{
Print “tr”;
Print “<th>Make:</th> <td>”.$info[‘MAKE’] .”</td>”;
}
?>
So this will print all the makes , I am not sure how to code the form function to only look for
A certain make and model ?
Any help / suggestion would be appreciated.