|
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?
|