Home >Backend Development >PHP Tutorial >Use select statement in html to read data from mysql table

Use select statement in html to read data from mysql table

WBOY
WBOYOriginal
2016-08-08 09:33:591141browse

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

以上就介绍了html中使用select语句读取mysql表中数据,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

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