your not ment to MRES $IP otherwise for some reason in viewuser or staff.php doesnt show the ip
what you wanna do is just that
$IP = $_SERVER['REMOTE_ADDR'];
very lol a cron is a file that is run repeatildy every x mins or hours or whenever ie paying users money each day from their job refreshing users energy/brave etc and other stuff like that
im getting a problem after you upload a pic it doesnt give any of the messages just goes back to the pref main menu and it doesnt upload the pic
yes ive got the userdps fodler and chmodded it
yeah he does mean header. Last year some1 made a 3 column header but then it got deleted i was able to get the header page before it was delete but not the CSS sheet. I dont mind posting that
i was reading on the bbc.co.uk news site that there enough new ips in the pool to last another 18 months then its brown pants time after that for every1 so we wont have todo much til then
hi ive made this login and im looking for feedback about it, ino its abit crappy as im not the best artistic person round here, ill welcome all criticism or feedback if it helps me improve it. here it is
hi im just looking for quotes of what ppl charge for a custom unique looking login/reg page and header you have until the end of the month to give me your quotes as i dont get paid til then then once ive got paid ill get it touch with who ever i decide to go with if you would like to talk to me more either pm me or im: [email protected]
thanks
here you are it works on my game and ive made it a little more secure than what you posted up
<?php
include "globals.php";
$_GET['to'] = isset($_GET['to']) && is_numeric($_GET['to']) ? abs((int) $_GET['to']) : false;
if(!$_GET['to'])
{
print "Welcome to the Monorail Station.
Where would you like to travel today?
";
$q=$db->query("SELECT * FROM `cities` WHERE `cityid` != {$ir['location']} AND `cityminlevel` <= {$ir['level']}");
print "<table width=75% cellspacing=1 class='table'><tr style='background:gray'><th>Name</th><th>Description</th><th>Min
Level</th><th>Cost</th><th></th></tr>";
while($r=$db->fetch_row($q))
{
print "<tr><td>{$r['cityname']}</td><td>{$r['citydesc']}</td><td>{$r['cityminlevel']}</td><td>\${$r['citycost']}</td><td><a href='monorail.php?to={$r
['cityid']}'>Go</a></td></tr>";
}
print "</table>";
}
else
{
if($ir['money'] < $r['citycost'])
{
print "You don't have enough money. You need {$r['citycost']} to travel to {$r['cityname']}";
}
else if( ((int) $_GET['to']) != $_GET['to'])
{
print "Invalid city ID";
}
else
{
$qq=$db->query("SELECT * FROM cities WHERE cityid = {$_GET['to']} AND cityminlevel <= {$ir['level']}");
if(!$db->num_rows($qq))
{
print "Error, this city either does not exist or you cannot go there.";
}
else
{
$r=$db->fetch_row($qq);
$db->query(sprintf("UPDATE users SET money = money - %d, location = %d WHERE (userid = %d)", $r['citycost'], $_GET['to'], $ir['userid']));
print "Congratulations, you paid \${$r['citycost']} and travelled to {$r['cityname']} on the monorail!";
}
}
}
$h->endpage();
?>
dany it doesnt give me any problems doing it the way i do it tho it prob is a bad coding habit to have lol
I.E
$db->query(sprintf("INSERT INTO cars_inv (CI_ID, CI_USERID, CI_CAR, CI_QTY) VALUES (%d, %d, %d, %d)", ' ', $ir['userid'], $carid, $newcars));