explain the problem or what you wanted in detail(specific). so that if some know / can help.. might post a solution.
as gate2vn stated. look into php manual and sample or tutorials.
a sample mysql connection :
Quote:
$db = mysql_connect("localhost", "myusername", "mypassword");
mysql_select_db("school_database", $db);
$getFile=mysql_query("SELECT * FROM student_table WHERE category = 1 ORDER BY id,title",$db);
if ($fileInfo=mysql_fetch_array($getFile)) {
do {
echo $fileinfo[name] . "<br/>"
} while($fileInfo=mysql_fetch_array($getFile));
}
|