<?php $host = ""; $username = ""; $password = ""; $db_name = ""; $tbl_name = ""; mysql_connect($host, $username, $password) or die("can't connect"); mysql_select_db($db_name) or die(mysql_error()); $sql = "SELECT * FROM $tbl_name "; $result = mysql_query($sql); $count = mysql_num_rows($result); ?> 

Here is the connection, and how to withdraw later?

    1 answer 1

     while($row = mysql_fetch_array($result,MYSQL_ASSOC)){ print($row['colname']);// вывод значения ячейки столбца с именем colname } 

    Duplicate question: the question was repeatedly answered in the context of other problems. At least here: 31643

    PS Are you again for your?