BoFFiN
Новичок
ADODB: 1046: No Database Selected
Выдаёт примерно следующее:
[q]
1046: No Database Selected
adodb_mysqlt._execute(UPDATE section SET left_key = left_key + 2, right_key = right_key + 2 WHERE left_key > '8', false) % line 837, file: adodb.inc.php
adodb_mysqlt.execute(UPDATE section SET left_key = left_key + 2, right_key = right_key + 2 WHERE left_key > '8', null) % line 97, file: functions.php
create_node() % line 27, file: index.php
[/q]
Почему?! БД в запросе же указывается...
PHP:
$conn = &ADONewConnection($typeBD);
$conn->Connect($mySQLserver, $mySQLuser, $mySQLpassword, [b]$mySQLdb[/b]);
$conn->debug = true;
$conn->StartTrans();
$conn->Execute($sql);
$conn->Execute($sql_2);
$conn->CompleteTrans();
$conn->Close();
[q]
1046: No Database Selected
adodb_mysqlt._execute(UPDATE section SET left_key = left_key + 2, right_key = right_key + 2 WHERE left_key > '8', false) % line 837, file: adodb.inc.php
adodb_mysqlt.execute(UPDATE section SET left_key = left_key + 2, right_key = right_key + 2 WHERE left_key > '8', null) % line 97, file: functions.php
create_node() % line 27, file: index.php
[/q]
Почему?! БД в запросе же указывается...