include('console/boot.php'); $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); $sql = "select text from blocks where name='privacy_policy'"; $result = mysql_query($sql) or die($sql.mysql_error()); $rows = mysql_num_rows($result); if ($rows) { $row = mysql_fetch_assoc($result); } mysql_free_result($result); ?>