Thread: MySQL help
View Single Post
Old 08-19-2004, 04:39 AM   #1 (permalink)
Limit
Inactive
 
Join Date: 10-29-03
Posts: 249
iTrader: 0 / 0%
Latest Blog:
None

Limit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the roughLimit is a jewel in the rough
MySQL help

i have this script:-

[code:1:68334ec501]<?php
$disable = 0;

if ($disable == 1) {
echo "Disabled";
exit;
}
?>[/code:1:68334ec501]

But i need it to look at a MySQL database and see the value in it.

I have a database called 'web' and a table in it called 'test'. In the test table there is two fields 'testname' and 'testvalue'.

and the first entry in the testname field is 'disable' and in test value '0'. However i need the script above so that when the disable value is 1 the disabled message will be displayed. Any ideas?
Limit is offline   Reply With Quote