Home  >  Article  >  Backend Development  >  Select statement in html to read the contents of mysql table_PHP tutorial

Select statement in html to read the contents of mysql table_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:01:441021browse

  $record=0;
  $db=@mysql_pconnect('localhost','root');
  @mysql_select_db('1234',$db);
  $strsql="select * from 1234_data";
  $result=@mysql_query($strsql);
  $data=@mysql_fetch_array($result);
  $record=@mysql_num_rows($result);

  echo "n";
?>

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/316757.htmlTechArticle? $record=0; $db=@mysql_pconnect('localhost','root'); @mysql_select_db('1234',$db); $strsql=select * from 1234_data; $result=@mysql_query($strsql); $data=@mysql_fetch_array($result)...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn