Home  >  Article  >  Backend Development  >  html中select语句读取mysql表中内容_PHP教程

html中select语句读取mysql表中内容_PHP教程

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


  $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