- Joined
- Dec 24, 2006
- Messages
- 1,655
- Reaction score
- 480
Re: FlyFF Web Shop! v2 BETA Released!
Use v2 only.
must use v1 and v2? or only v2?
Use v2 only.
must use v1 and v2? or only v2?
$q = "UPDATE characters SET penya='$total'"."WHERE penya='$penya'";
Use v2 only.
how about register page? serv rank ? status server?
so, if everyone starts with 100k, I buy something that worths 90k, everybody that isnt logged in and have 100k will now have 10k? change it to where id = $charid '-'Code:$q = "UPDATE characters SET penya='$total'"."WHERE penya='$penya'";
i got errors when i try to buy (i didn't tried the another versions)
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\shop\buy.php on line 31
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\shop\buy.php on line 31
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\shop\buy.php on line 34
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\AppServ\www\shop\buy.php on line 34
Warning: Cannot modify header information - headers already sent by (output started at C:\AppServ\www\shop\buy.php:31) in C:\AppServ\www\shop\buy.php on line 37
ack mail system isnt working for me, im gonna work on having the webshop insert the item in the character's bank, bag, or last inventory space, and release it as soon as i am done
$select = mysql_query("select inventoryslot from inventory where charid = $id and backpack_number = -1 order by inventoryslot asc");
$found = 'false';
for ($cont = 0; $cont <= 41; $cont++)
{
$reg = mysql_fetch_row($select);
if ($reg[0] != $cont)
{
$found = 'true';
break;
}
}
if ($found == 'true')
{
$insere = mysql_query("insert into inventory(itemid, charid, inventoryslot, count, addedByQuestID, backpack_number) values($itemId, $charId, $cont, $quantity, -1, -1)");
$update = mysql_query("update characters set penya = $penya where id = $charid");
if (mysql_affected_rows() != 0)
{
echo "<h3>Successfull bought the item.</h3>";
}
else
{
echo "<h3><font color='#FF0000'>Error</font>: Error trying to buy.</h3>";
}
}
else
{
echo "<h3><font color='#FF0000'>Warning</font>: Your inventory is full.</h3>";
}