查看文件: checkname.php
大小: 997 字节
类型: application/octet-stream
<?php require_once('../Connections/BE2.php'); $c=1; // echo $_POST['s'].",".$_POST['n1'].",".$_POST['n2']; if(isset($_POST['s']) && $_POST['s'] >0){ $s= $_POST['s']; if($s==1 && $_POST['n1']<>''){ mysql_select_db($database_BE2, $BE2); $sql = sprintf("SELECT * FROM cuser WHERE name = '%s'", $_POST['n1']); $Rtm2 = mysql_query($sql, $BE2) or die(mysql_error()); $row_Rtm2 = mysql_fetch_assoc($Rtm2); $totalRows_Rtm2 = mysql_num_rows($Rtm2); if( $totalRows_Rtm2 ==0){ $c=2 ;}else{$c=1 ;} mysql_free_result($Rtm2); }else if( $s==2 && $_POST['n2']<>'') { mysql_select_db($database_BE2, $BE2); $sql = sprintf("SELECT * FROM cuser WHERE webname = '%s'", $_POST['n2']); $Rtm2 = mysql_query($sql, $BE2) or die(mysql_error()); $row_Rtm2 = mysql_fetch_assoc($Rtm2); $totalRows_Rtm2 = mysql_num_rows($Rtm2); if( $totalRows_Rtm2 ==0){ $c=2 ;}else{$c=1 ;} mysql_free_result($Rtm2); } } echo $c.".png"; ?>
保存
取消
返回文件列表