Skip to content

Instantly share code, notes, and snippets.

View blinoale's full-sized avatar

Alexander blinoale

  • creametrix
  • moscow
View GitHub Profile
<?php
$username="root"; $password=""; $database="exam_codes";
$con = mysql_connect("localhost",$username,$password) or die( "Unable to Connect database");
mysql_select_db($database,$con) or die( "Unable to select database");
// Table Name that you want
// to export in csv
$ShowTable = "blogs";
$FileName = "_export.csv";
$file = fopen($FileName,"w");