hiphop-php /hphp/test/slow/ext_mysql/mysql_query.php

Language PHP Lines 18
MD5 Hash 5bbbbcf717a764740b29cd72753e5716 Estimated Cost $260 (why?)
Repository git://github.com/facebook/hiphop-php.git View Raw File View Project SPDX
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
<?php
require_once('connect.inc');

$conn = mysql_connect($host, $user, $passwd);
var_dump(create_test_table('query'));
var_dump(mysql_query(
  "insert into test_query (name) values ('test'),('test2')"));

$res = mysql_query('select * from test_query');
$row = mysql_fetch_assoc($res);
print_r($row);

$row = mysql_fetch_assoc($res);
print_r($row);

$row = mysql_fetch_assoc($res);
var_dump($row);
Back to Top