Esta no seria otra manera de realizarlo, pero me tira error igualmente. alguien tiene alguna idea de que puede ser en lo que fallo
Código:
<?php
connect::selectDB('nombrebasededatos');
while($row = mysql_fetch_assoc($result))
{
$acct_id = account::getAccountID($_SESSION['cw_user']);
$craft_db = $row['nombrebasededatos'];
connect::selectDB($craft_db);
$result = mysql_query('SELECT account_data FROM nombredebasededatos WHERE account='.$acct_id);
while($row = mysql_fetch_assoc($result)) {
?>
<?
account::isNotLoggedIn();
$acct_id = account::getAccountID($_SESSION['cw_user']
$sql = "UPDATE account_data SET dp = dp + 100 WHERE id = ".$acct_id;
mysql_query( $sql, $db );
<?