CSV import /export code
$db_hostname = 'localhost'; $db_username = 'root'; $db_password = ''; $db_name = 'db_csvtest'; $db_connection = mysql_connect($db_hostname, $db_username, $db_password) or die("Error:=>Could not connect"); mysql_select_db($db_name); ?> Untitled Document <?php include('dbconnect.php'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Export MYSQl Data to CSV/Excel file in PHP</title> <link rel="stylesheet" type="text/css" href="css/style.css" /> </head> <body> <div align="center" style="padding:20px;"> <table width="100%" cellpaddin