Home >Backend Development >PHP Tutorial >html中select语句读取mysql表中内容_PHP

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

WBOY
WBOYOriginal
2016-06-01 12:42:36893browse

MySQL语句


  $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";
?>

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