V
victorianec
Прохожие
- Автор темы
- #11
Они стоят то. Но все равно даже когда прописываю код
То отображается что в <? ?> А что у меня написано в
не хочет отображаться. Только выводит ошибки которых нет.
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\victorianec\admin\config.php on line 12
Warning: mysql_select_db( supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 24
Warning: mysql_query( supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 28
Warning: mysql_num_rows( supplied argument is not a valid MySQL result resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 29
Warning: mysql_fetch_array( supplied argument is not a valid MySQL result resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 30
PHP:
<?PHP
function phpWrapper($content) {
ob_start();
$content = str_replace('<'.'?php','<'.'?',$content);
eval('?'.'>'.trim($content).'<'.'?');
$content = ob_get_contents();
ob_end_clean();
return $content;
}
$content = file_get_contents('feedback.php');
$content = phpWrapper($content);
?>
PHP:
<table width=213 border=0 cellspacing=0 cellpadding=0>
<?
error_reporting(E_ALL);
include "admin/config.php";
$db=connect_db();
$db_name=db_name();
mysql_select_db($db_name,$db);
$hold=1;
$sql="select id, nazvan, text from news ";
$result=mysql_query($sql,$db);
$nr=mysql_num_rows($result);
while($myrow=mysql_fetch_array($result)) {
$nazvan=$myrow["nazvan"];
$id=$myrow["id"];
$text=$myrow["text"];
echo '<tr><td width=46 rowspan=2 scope=col><img src=/images/bullet.jpg width=51 height=34></td>
<td scope=col><div style=padding-left:5pt>'.$nazvan.'</div></td></tr><tr><td scope=col><div style=padding-left:5pt>'.$text.'</div></td></tr>';
}
?>
</table>
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\AppServ\www\victorianec\admin\config.php on line 12
Warning: mysql_select_db( supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 24
Warning: mysql_query( supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 28
Warning: mysql_num_rows( supplied argument is not a valid MySQL result resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 29
Warning: mysql_fetch_array( supplied argument is not a valid MySQL result resource in C:\AppServ\www\victorianec\conf.php(14) : eval()'d code on line 30