Skip to content

Instantly share code, notes, and snippets.

@javiervivanco
Created November 5, 2012 14:21
Show Gist options
  • Save javiervivanco/4017425 to your computer and use it in GitHub Desktop.
Save javiervivanco/4017425 to your computer and use it in GitHub Desktop.
php connect
<?php
$r = mysql_connect($host, $user,$PASS);
$query = mysql_query('SELECT name FROM USER',$r)
mysql_query('INSERT user VALUES (1,2,3,)',$r)
while($row = mysql_fetch_assoc($query)){
$['name'];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment