function tep_db_connect($server = 'server62.hostinger.ru' $username =u602904802_chel1, $password =qwe346111, $database =u602904802_chel, $link = 'mysql.hostinger.ru') { global $$link; Ошибка: Parse error: syntax error, unexpected '$username' (T_VARIABLE), expecting ')' in /home/u602904802/public_html/includes/functions/database.php on line 13 Подскажите что делать, пожалуйста.
Warning: mysqli_query() expects parameter 1 to be mysqli, null given in /home/u602904802/public_html/includes/functions/database.php on line 50 Warning: mysqli_errno() expects parameter 1 to be mysqli, null given in /home/u602904802/public_html/includes/functions/database.php on line 50 Warning: mysqli_error() expects parameter 1 to be mysqli, null given in /home/u602904802/public_html/includes/functions/database.php on line 50 - select configuration_key as cfgKey, configuration_value as cfgValue from configuration [TEP STOP]
function tep_db_connect($server = 'server62.hostinger.ru', $username ='u602904802_chel1', $password ='qwe346111', $database ='u602904802_chel', $link = 'mysql.hostinger.ru') { --- Добавлено --- стоооп function tep_db_connect('server62.hostinger.ru','u602904802_chel1', 'qwe346111', 'u602904802_chel', 'mysql.hostinger.ru') { нафига переменные то тут - ну и кавычки