//if($REQUESTTYPE<>"POST"):
//echo "you must use post method";//display html to remind user.
//else:
/*
This file is for generating large amount user.
outside parameter:$databasename($databasename must be a string),$account
*/
$databasename="sedb";
$link=mysql_pconnect("localhost","root","Mysql@mask")
or die ("connect database failed.");//connect first, if failed, then stop.
mysql_select_db($databasename,$link)
or die ("select database fail");//$databasename was a string
//**************
$account="account";
$username="username";
$uid="uid";
$query="select $uid,$username from $account order by username ASC";
$alluser=mysql_query($query);
$howmanyuser=mysql_num_rows($alluser);
#$test=;
#$test="";//$test= -> wrong
#echo $test;
#echo $alluser;
echo "\n";
#echo $alluser[1];
echo "\n";
#echo $alluser[2];
echo "\n";
#echo $alluser[3];
echo "\n";
#echo $alluser[4];
echo "\n";
if(list($uid,$username)=mysql_fetch_row($alluser)){
//print("
|
|
|
|
Send
A Link | Printer Friendly Format | Feedback
| Site Map |
|
©
2001 Searcher Team. All rights reserved. |
|
|
|