Sorry to relive this old topic, would you like to add an admin page? Where the administrator can remove old auction.
It's yes, but I'm not always on the host and I need to be quick to adjust some just for the website, understand?Isnt your mysql client good enough? =p
Ah I see. Anyways this release is very dated. I am sure there are better and new onesIt's yes, but I'm not always on the host and I need to be quick to adjust some just for the website, understand?
Anyway thank you very much for your attention.
Ah I see. Anyways this release is very dated. I am sure there are better and new ones
I am not sure if this old release works anymore =/ sryI'm clicking in submit and nothing happens, i tryed to put another thing like "@#$@ or ASDOPSAKD" to see some error but nothing happens too ...
Someone can help-me? please !
$players_from_logged_acc = $account_logged->getPlayersList();
$players_from_logged_acc->orderBy('name');
$main_content .= '<form action="" method="post"><select name="char">';
foreach($players_from_logged_acc as $player)
{
$main_content .= '<option>'.$player->getName().'</option>';
}
$charArray = array();
$acct = false;
$players_from_logged_acc = $account_logged->getPlayersList();
$players_from_logged_acc->orderBy('name');
$main_content .= '<form action="" method="post"><select name="char">';
foreach($players_from_logged_acc as $player)
{
$charArray[] = $player->getName();
$main_content .= '<option>'.$player->getName().'</option>';
}
if ($char && $price) {
$tmp = str_replace("'", '', $char);
if (in_array($tmp, $charArray )) { $acct = true; }
if ($char && $price && $acct) {
<?PHP
if($logged) {
$main_content .= '<center><b>Here you can put your level character on sale!</center></b><br>';
<?PHP
if($logged) {
$sellLevel = 100;
$main_content .= '<center><b>Here you can put your level '.$sellLevel .'+ character on sale!</center></b><br>';
foreach($players_from_logged_acc as $player)
{
$charArray[] = $player->getName();
$main_content .= '<option>'.$player->getName().'</option>';
}
foreach($players_from_logged_acc as $player)
{
if ($player->getLevel() > $sellLevel) {
$charArray[] = $player->getName();
$main_content .= '<option>'.$player->getName()'</option>';
}
}
Technically no, if you had used the code I posted previously, it checks the PHP created array to see if the character exists in it, as you are not adding the player to that list as the player is either lower than sell level or is online it shouldn't allow the code to trigger.But if u will use Inspect Element u still can add him.
$charArray[] = $player->getName();
if (in_array($tmp, $charArray )) { $acct = true; }