/hphp/test/slow/ext_mysql/mysql_query.php
http://github.com/facebook/hiphop-php · PHP · 18 lines · 15 code · 3 blank · 0 comment · 0 complexity · db88c4e9748c76be41a4938a525083ba MD5 · raw file
- <?hh
- require_once('connect.inc');
- <<__EntryPoint>> function main(): void {
- $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);
- }