$host = "localhost" ;
$user = "******" ;
$pass = "******" ;
$db = "tuts" ;
$table = "php" ;
$show_all = "SELECT * FROM $table" ;
mysql_connect ($host,$user,$pass) or die ( mysql_error ());
mysql_select_db ($db)or die ( mysql_error ());
$result = mysql_query ($show_all) or die ( mysql_error ());
while ($row = mysql_fetch_array ($result))
$view_db .= "Tutorial Name: ".$row[ "tutn" ]."<br>";
$view_db .= "Website: ".$row[ "ws" ]."<br>";
$view_db .= "Tutorial Number: ".$row[ "id" ]."<br>";
echo ( "$view_db" );
that works fine.. thats getting the information out of the database
its getting tutorial name, website, tutorial number out of it but theres tutorial in there to i dont want that listed on that page...
i dont have anything there yet.
i need to make it so that on tuts.php it shows the tutorial name as a link to showtut.php?id=1 like that if thats the tutorial number its actually the id INT
what would i put on showtuts.php to show the tutorial?
Tutorial Name: Testing Name (the actual name Testing Name is a link to that tutorial
Website: that shows the persons website as a link
Tutorial #: shows the id of it
on showtuts.php i want whatever tutorial name they click on that tutorial comes up..
this is all mysql not query strings.
sorry for the long post though