//********** PHP Area ********** //add_records.php include ("inc/login.inc"); //the database you want to use $db_name =$_POST["db_name"]; //the table you want to use $tb_name = $_POST["table_name"]; //connect to database $connection = @mysql_connect("localhost",$uname,$pw) or die(mysql_error()); $db = @mysql_select_db($db_name,$connection) or die(mysql_error()); //create the SQL query $sql ="SELECT * FROM $tb_name"; //execute the query $result = mysql_query ($sql,$connection) or die (mysql_error()); //==========begin creating fields form for data entry ========== $form_block ="
"; ?>