ok ive got a mafia game and it has a feature called credits which a player can buy and use for special items. this is my script.
<?
include_once "includes/functions.php";
$query=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");
$info = mysql_fetch_object($query);
$query1=mysql_query("SELECT * FROM users WHERE username='$username' LIMIT 1");

what i want it to do is either give the user the item or message a admin with what the player chose so that the admin can give it to the player. can someone help me with this please.

iLLin

04-05-2007, 05:28 AM

Good luck getting someone to go threw all of that.

Locked

04-05-2007, 11:33 PM

Honestly looks like he downloaded a game template and now wants us to customize it =p

aedrin

04-06-2007, 12:44 AM

<title>Untitled Document</title>

Must be Dreamweaver or something. :P

I think you need to learn how to use the database better.

}}}}}}

This is quality.

Mhtml

04-06-2007, 04:02 AM

And to separate your presentation and business logic.. But in all honesty, that "script" is absolute garbage. If you created that I suggest you start again and read through some posts on these forums about code layout and building scalable applications.