$q = "SELECT * from Yxforum where fl=". $fl. "ORDER BY dt DESC";
if ($p = = "") $p = 0;
$MR =mysql_query ($q, $m);
$f =mysql_num_fields ($MR);
$ra =mysql_fetch_row ($MR);
$i = 0; $p 1= $p *15; /* Skip the specified number of pages in the corresponding line * *
while ($i < $p 1)
{$i + +;
$ra =mysql_fetch_row ($MR);
if (! $ra) break;
<textarea name= "ZW" cols= "rows=" ></textarea>
<input type= "Submit" name= "Submission" value= "submitted" >
</form>
</tr></table></center>
<center> Forum Program version 0.25 design tools:php+mysql<br>
<a href=mailto:fhl@cgi.hnpts.ha.cn> Gu Qitzing Sword </a> production <br><a href=http://www.fhlfox.dhs.org> Xiaoyao Flying Fox Multimedia Workshop </a> </center>
</span>
</body>
addnew.php:
$m =mysql_connect ("localhost", "xxx", "xxxxx");
mysql_select_db ("xxxxx", $m);
$ZW =ereg_replace ("<", "<", $ZW);
$ZW =ereg_replace (">", ">", $ZW);
$ZW =ereg_replace ("n", "<br>", $ZW);
$ZW =ereg_replace ("", "", $ZW);
$tt =ereg_replace ("<", "<", $TT);
$tt =ereg_replace (">", ">", $tt);
if ($nm = = "") $nm = "Nameless Treasure";
if ($em = = "") {$nm. = "<--is a rookie without mail"; $em = "No";}
$err =strlen ($TT) *strlen ($ZW);
if ($err ==0)
$msg = "<font color=red> don't be lazy!" Fill out the form before submitting it later. </font> ";
else {$q = "insert into Yxforum (dt,tp,ct,fl,ip,un,em,num) values"
." (Now (), "". $tt. "," ". $zw." "," ". $fl.", "". $REMOTE _addr. "", "". $nm. "", "" $em
mysql_query ($q, $m);
$q = "Select Num,fl from Yxforum where id=". $FL;
$FL _a= $FL;
do {$mr =mysql_query ($q, $m);
$ra =mysql_fetch_row ($MR);
$num = $ra [0]+1;
$q = "Update yxforum set Dt=now (), num=". $num. "Where id=". $FL;
$FL = $ra [1];
mysql_query ($q, $m);
$q = "Select Num,fl from Yxforum where id=". $FL;
while ($FL >0);
$msg = "<font color=green> your opinion has been successfully submitted!" </font> ";
}
?>
<script language= "Javascript" >
function Go ()
{document.location= "index.php?fl=<?print ($FL _a);? >&p=<?print ($p)?> ";
}
</script>
<body onload= "settimeout (' Go () ', 3000);" >
<?print ($msg);? ><br>
The system will automatically return after 3 seconds. If you cannot return or you are anxious, please press <a href=index.php?fl=<?print ($FL _a); >&p=<?print ($p)?>> </a>
</body>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.