PageRenderTime 51ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/ext_mysql/mysql_fetch_array.php

http://github.com/facebook/hiphop-php
PHP | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | bce6062dc22dba40da20d3d549976efc MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. require_once('connect.inc');
  3. <<__EntryPoint>> function main(): void {
  4. $conn = mysql_connect($host, $user, $passwd);
  5. var_dump(create_test_table('fetch_array'));
  6. var_dump(mysql_query(
  7. "insert into test_fetch_array (name) values ('test'),('test2')"));
  8. $res = mysql_query('select * from test_fetch_array');
  9. $row = mysql_fetch_array($res);
  10. print_r($row);
  11. }