Revision 164
Added by ryan about 19 years ago
trunk/wb/framework/initialize.php | ||
---|---|---|
35 | 35 |
// Get website settings (title, keywords, description, header, and footer) |
36 | 36 |
$query_settings = "SELECT name,value FROM ".TABLE_PREFIX."settings"; |
37 | 37 |
$get_settings = $database->query($query_settings); |
38 |
if($database->is_error()) { die($database->get_error()); } |
|
39 |
if($get_settings->numRows() == 0) { die("Settings not found"); } |
|
38 | 40 |
while($setting = $get_settings->fetchRow()) { |
39 | 41 |
$setting_name=strtoupper($setting['name']); |
40 | 42 |
$setting_value=$setting['value']; |
Also available in: Unified diff
Added some DB checking code to initialize.php