Home > Backend Development > PHP Tutorial > 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
Release: 2016-07-21 16:01:44
Original
1086 people have browsed it

  $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)...
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template