PageRenderTime 55ms CodeModel.GetById 26ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/ext_mysql/mysql_fetch_row.php

http://github.com/facebook/hiphop-php
PHP | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | f163d68dd4dff5983e5a0349b480d4e3 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_row'));
  6. var_dump(mysql_query(
  7. "insert into test_fetch_row (name) values ('test'),('test2')"));
  8. $res = mysql_query('select * from test_fetch_row');
  9. $row = mysql_fetch_row($res);
  10. print_r($row);
  11. }