include('include/menu.php'); ?>
print $index_content['index_left']; ?> | print $index_content['index_right']; ?> |
require('console/boot.php'); $sql = "select name,`text` from blocks where name like 'index%'"; $result = mysql_query($sql) or die($sql.mysql_error()); $rows = mysql_num_rows($result); $index_content = array(); if ($rows) { while ($row = mysql_fetch_assoc($result)) { $index_content[$row['name']] = $row['text']; } } mysql_free_result($result); $sql = "select name,value from data where name='mp_address' or name='mp_phone'"; $result = mysql_query($sql) or die($sql.mysql_error()); $rows = mysql_num_rows($result); if ($rows) { while ($row=mysql_fetch_assoc($result)) { $mp_data[$row['name']] = $row['value']; } } mysql_free_result($result); ?>
print $index_content['index_left']; ?> | print $index_content['index_right']; ?> |