<?
include "Tittle.txt";
$released = true;
if($released == true){
$Replay = "Thanxx";
}
?>
<?
include "Tittle.txt";
$released = true;
if($released == true){
$Replay = "Thanxx";
}
?>
Not tested!
PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
while (odbc_fetc_array(odbc_query($dbc,"SELECT * FROM Account WHERE UgradeID='253'")) = $row) {
foreach($row as $var => $val) {
echo $var.' = '.$val."\r\n";
}
echo '-------------------------------------';
}
?>
Ty, but not working D:
Try this i just tested this one
PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
$query = odbc_exec($dbc,"SELECT * FROM Account WHERE UgradeID='253'");
while ($row = odbc_fetch_array($query)) {
foreach($row as $var => $val) {
echo $var.' = '.$val.'<br />';
}
echo '-------------------------------------<br />';
}
?>
ya, nice =) working
but, maybe you can make it only to post the Account ID(name) and its Characters,, this will be very useful
Thanks in advance....
Try this ;
PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
$query = odbc_exec($dbc,"SELECT * FROM Account WHERE UgradeID='253'");
while ($row = odbc_fetch_array($query)) {
echo "".$row['AID']." ".$row['Character']."<br>";
}
?>
Not sure what table name, just change the AID & the Character to the correct one..
it is only showing the banned users number D: but, ty =)
Well, what do u want exactly?
That the banned users(Name) with there characters(Name) to be posted, i don't want that all the table data to be posted D:
Thanks again :)
This should work...
not tested on characters as i dont have a database that contains any he he..
PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
$acc_query = odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");
while ($acc = odbc_fetch_array($acc_query)) {
echo $acc['UserID'].'<br />';
$char_query = odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$row['AID']."'");
while($char = odbc_fetch_array($char_query)) {
echo '> '.$char['name'];
}
echo '--------------------<br />';
}
?>
Wow cool , shadow-xx one is the best one of them... it says only Name... easier but else are good too :o
or got a idea make first thing like shadow-xx , if press on name get reason and details of banning for the user... but that is like need to make new shit xD
i dont got a DB either,
Shadows script looks fine ;). i think you mean that.
well, ya.. that php is working all right, but it still doesn't show the character for the posted account name, but anyway, thanx alot shadow-xx & sayuta :)
Forgot the capital N T_T
Offtopic :PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
$acc_query = odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");
while ($acc = odbc_fetch_array($acc_query)) {
echo $acc['UserID'].'<br />';
$char_query = odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$row['AID']."'");
while($char = odbc_fetch_array($char_query)) {
echo '> '.$char['Name'];
}
echo '--------------------<br />';
}
?>
If anyone has a nicely filled db feel free to donate it will make things easier.
Ty,, but same, only account names shown =)
Inserted some characters in my db..
And then tested this..
i forgot to change ".$row['AID']."'"); Into ".$acc['AID']."'");
Stupid mistakes T_T
PHP Code:<?php
$database['name'] = 'GunZDB';
$database['user'] = 'sa';
$database['pass'] = '';
$dbc = odbc_connect($database['name'],$database['user'],$database['pass']);
$acc_query = odbc_exec($dbc,"SELECT AID,UserID FROM Account WHERE UgradeID='253'");
while ($acc = odbc_fetch_array($acc_query)) {
echo $acc['UserID'].'<br />';
$char_query = odbc_exec($dbc,"SELECT Name FROM Character WHERE AID='".$acc['AID']."'");
while($char = odbc_fetch_array($char_query)) {
echo '> '.$char['Name'].'<br />';
}
echo '--------------------<br />';
}
?>
Wanted to say that, but u fixxed it already xD
lol, nice guys, thanks a lot for your help =)
Your welcome o.o
This doesn't matter, his php is working fine by me, that's good... ty
thanks!!!