require "admin/config.php"; $serverid = mysql_connect($db["host"], $db["user"], $db["pass"]) or die("Не могу создать соединение !"); @mysql_select_db($db["dbName"]) or die("Не могу выбрать базу данных!"); $sql_query="select * from $servicetable where lang='eng' order by number asc"; $result = mysql_query($sql_query) or die(mysql_error()); if ($row = mysql_fetch_array($result)) { do { $i=$row["number"]; $text[$i]=$row["text"]; $description[$i]=$row["description"]; } while ($row = mysql_fetch_array($result)); } mysql_close($serverid); ?>
|