Hey,
I was just wondering if some people could test out my blackjack/21 game. And tell me what you think and if there is anything wrong with it.
This is the link
http://gangster.game-design.djw-designs.com/test.php
I haven't yet incorporated the images for ace,jack,king or queen yet.
<?php
$timenow = date("Y-m-d h-m-s",strtotime("- 5 minutes"));
$select = mysql_query("SELECT last_active FROM user_details WHERE last_active >= '$timenow'") or die(mysql_error());
echo mysql_num_rows($select);
?>
This doesn't work on my page (to display amount of users online in the last five minutes)
but does work on my login page, but none of the main ones.
It did work and i have changed nothing, is there anything wrong with the code
I know how to @premiso i was asking what they would be
@revraz our rank table is
And what the user has is experience, e.g.
user1 has 0 exp (he has just joined)
but
user2 has 150 exp
@DarkerAngel, i think that has done it
My function returns blank
<?php
function get_rank($exp)
{
$sql = "SELECT * FROM rank WHERE start >= '".$exp."' AND end <= '".$exp."'";
$sql = mysql_query($sql);
$sql = mysql_fetch_assoc($sql);
return $sql['rank'];
}
?>
And when debugged found out that the query is returning zero rows.
But the $exp is 0 and in the database
it looks like
No!
We will not write a script for you, just because you don't want to try on your own.
Post in the freelance section (to hire someone to do it for)
Or try learning PHP and try making it your self, and when you come across a problem ask for help.
Their is no session start on your login page
and
session_register("username");
session_register("password");
should be
$_SESSION['username'] = $username;
$_SESSION['password'] = $password;
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.