Jump to content

Setting a maximum in an Integer Field


markvaughn2006

Recommended Posts

is 1 added to the database? then make a query and check the number.

 

$query = mysql_query("Select * from tablename");

$row = mysql_fetch_row($query);

 

if($row['energy'] == 100)

{

echo "We have reached the maximum entry allowed";

}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.