php中关联多张表の问题
前一张页面:rem_list.php
<頭>
session_start() ;
include_once("../include/conn.php") ;
$rem_id=$_SESSION["rem_id"] ;
$rem_name=$_SESSION["rem_name"] ;
$sql="select order_number from rem_table , order_table where rem_table.rem_id=order_table.rem_id and rem_table.rem_name='$rem_name'" ;
$mysql=mysql_query($sql) or die("クエリできませんでした。".mysql_error()) ;
$info=mysql_num_rows($mysql) ;
if($info==""){
$html_info="暂時間は承認なし。" ;
}
それ以外{
$str=mysql_fetch_array($mysql) ;
$html_info="
" ;
}
?>
欢迎 登陆