wow, i was just going back to my topic and i already had scott d post with minutes. and one of your scripts you posted for someone on database....<?php
if($submit)
{
$dbhost = "localhost";
$dbuser = "root";
$dbpass = "";
$dbname = "dbase name";
$db = mysql_connect($dbhost,$dbuser,$dbpass);
mysql_select_db("$dbname",$db);
mysql_query("SELECT * FROM $dbtable WHERE firstname LIKE '%$keyword%'");
{
//get columns
$name = $row[0];
$address = $row[1];
//blah blah
print ("<table><tr>\n<td>$name</td>\n");
print ("<td>$adress</td>\n</tr>\n");
//blah blah blah
print ("</table>");
}
}
else
{
print ("<form action='$PHP_SELF' method='post'>");
print ("<input type='text' name='keyword'><br>");
print ("<input type='submit' name='submit' value='Submit'>");
print ("</form>");
}
?>
you had a variable $row i got confused cause i am not sure what $row is refer to, or going to be refered to? i can understand like $dbhost you are going to use it for the database connection. and i guess i don't understand $row [0]
you know what is cool, is the time you guys give to awnser some this stupid questions. ok i sound like i am kissing someones butt 🙂
Thanks though