php 随笔


mysql 代码 

<!DOCTYPE html>
<html>
<head>
    <title>sdfsdf</title>
</head>
<body>
 
</body>
</html>

<?php
 

 //echo  $_GET["id1"];	
 
 $admin= $_GET["id1"];
 
 $con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("catfish", $con);

$selectstr = "SELECT * FROM catfish_users where user_login='$admin'";
echo $selectstr;

//return ;

$result = mysql_query($selectstr);

while($row = mysql_fetch_array($result))
  {
  echo $row['user_email'] . " " ;
  echo "<br />";
  }

mysql_close($con);

?>


猜你喜欢

转载自blog.csdn.net/freshfox/article/details/76736364