Li1M0ST3Rz
I <3 Bianca
- Sep 13, 2010
- 269
- 166
PHP:
if(isset($_GET['buy']))
{
$re = "SELECT * FROM info_sell WHERE id='".$_GET['buy']."' AND added='".$row['username']."'";
$res = mysql_query($re) or die(mysql_error());
$buy = mysql_fetch_array($res);
$b = $row['credit'];
$s = $buy['price'];
if($b < $s)
{
echo '<font color="red">Cannot buy with '.$row["price"].'</font>';
}
if($b > $s)
{
echo '<h1>this work!</h1>';
}
}
Last edited: