Skip to content

Instantly share code, notes, and snippets.

@pasindud
Created January 25, 2015 15:31
Show Gist options
  • Select an option

  • Save pasindud/a7771664ddcf8070be9f to your computer and use it in GitHub Desktop.

Select an option

Save pasindud/a7771664ddcf8070be9f to your computer and use it in GitHub Desktop.
<?php
ini_set('max_execution_time', 300);//increasing the code running time
$connect = mysql_connect('127.0.0.1', 'username', 'password');
$query1 = "SELECT id, word FROM `word_list_comments_stage2`";
mysql_select_db("irajw");
$result1=mysql_query($query1);
$numrows1= mysql_num_rows($result1);
if ($numrows1!=0) {
while ($row1 = mysql_fetch_assoc($result1))
{
var_dump($row1);
echo $row1['id'];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment