Forum Moderators: coopster
The search I want to do will be on First Name and Surname. And the Database is called Work_Experience.
Thanks in advance
Latch
but now how do I query it (i.e. perform a two criteria search)?
---this will open your connection
$conn = mysql_connect($hostName, $dbUser, $dbUserPw) or die ('Error connecting to database');
mysql_select_db($dbName);
How do i link the database to the web page?
I don't quite understand your question but if you mean how will you display your data , you should fetch the query result first and put it on variables.
How do I write the query and link the query to my web page? And how do I link the results to my web page?
---this is your query
$query = "select surname, firstname from `work_experience`.mytable where surname='$surnamecriteria' and firstname='$firstnamecriteria'";
---this will query your table
$result = mysql_query($query);
---this will fetch your data and put it in variables
list($surname, $firstname)= mysql_fetch_row($result);
---this will display the variables
echo "Search match is $firstname and $surname";