<?php $server = "localhost"; $user = "user"; $password = "pass"; $db = "db_name"; $table = "table_name"; $link = mysql_connect($server, $user, $password); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Всё работает!'; mysql_select_db($db) or die(mysql_error()); $sql = "SELECT * from $table"; $result = mysql_query($sql) or die(mysql_error()); ?>
<?php $server = "localhost"; $user = "root"; $password = "****"; $db = "nuke"; $table = "nuke_users"; $link = mysql_connect($server, $user, $password); if (!$link) { die('Could not connect: ' . mysql_error()); } echo 'Всё работает!'; mysql_select_db($db) or die(mysql_error()); $sql = "SELECT * from $table"; $result = mysql_query($sql) or die(mysql_error()); ?>
<?php if (stristr(htmlentities($_SERVER['PHP_SELF']), "config.php")) { Header("Location: index.php"); die(); } [color=blue] $dbhost = "localhost"; $dbuname = "root"; $dbpass = "****"; $dbname = "nuke"; $prefix = "nuke"; $user_prefix = "nuke"; $dbtype = "MySQL"; $sitekey = "SwSDsyrgF23$$5%*ddw3$D-2Df/%(-0394·$%/"; $gfx_chk = 0; $subscription_url = ""; $admin_file = "admin"; $tipath = "images/topics/"; $nuke_editor = 1; $display_errors = false; [/color] ........ и тд ?>