View Single Post
Old 25.12.2006, 09:27   #91
DevilsAssociate
Архивный участник
 
Join Date: Jul 2006
Posts: 81
Default

Hel
if you make another version this one is kinda useful

displays all the chars from an account by entering the account name

Code:
<option value=203>--Get char name from an account--</option>
Code:
		case 203:
			$get_account_name=htmlspecialchars($_POST["param1"]);
			if(strlen($get_account_name)<1){ ?>
				<form method='post' action='cached.php'><b>Get char on an account: </b>
				<br>Enter account name:<input type='text' name='param1'><br><input type='hidden' name='funcid' value='203'>
				<br><input type='button' value='Go' onclick='doSpecialFunc()'></form><?php }
			else{
				$con_sql=mssql_connect($mssql_host,$mssql_user,$mssql_pass);
				mssql_select_db($mssql_base,$con_sql);
				$result=mssql_query("SELECT char_name FROM user_data WHERE account_name='$get_account_name'");
				while($row=mssql_fetch_array($result)) { print "$row[0]<br> $row[99]";
				}
				mssql_close($con_sql);}
			break;
DevilsAssociate is offline