You are viewing our Forum Archives. To view or take place in current topics click here.
can anyone help php coding
Posted:
can anyone help php codingPosted:
Status: Offline
Joined: Feb 13, 201212Year Member
Posts: 59
Reputation Power: 2
Status: Offline
Joined: Feb 13, 201212Year Member
Posts: 59
Reputation Power: 2
im making a website a server stresser for my small servers and the boot time is linked to specific memberships and i want to have one boot time without having a active membership can anyone fix this codding
}
function maxtime(){
require 'db.php';
$username = $_SESSION['username'];
$query = mysqli_query($link,"SELECT * FROM `users` WHERE username='$username'");
$assoc = mysqli_fetch_assoc($query);
$package = $assoc['membership'];
$query2 = mysqli_query($link,"SELECT * FROM `membership` WHERE id='$package'");
$assoc2 = mysqli_fetch_assoc($query2);
$max = $assoc2['max'];
return $max;
}
function maxtime(){
require 'db.php';
$username = $_SESSION['username'];
$query = mysqli_query($link,"SELECT * FROM `users` WHERE username='$username'");
$assoc = mysqli_fetch_assoc($query);
$package = $assoc['membership'];
$query2 = mysqli_query($link,"SELECT * FROM `membership` WHERE id='$package'");
$assoc2 = mysqli_fetch_assoc($query2);
$max = $assoc2['max'];
return $max;
You are viewing our Forum Archives. To view or take place in current topics click here.