Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature may not be available in some browsers.
ini_set('display_errors', 'Off');
error_reporting(-1);
ini_set('display_errors', TRUE);
ini_set('display_startup_errors', TRUE);
or die (mysql_error())
mysql_result
Notice: Constant HOST already defined in /home/public_html/zed/index.php on line 33
Warning: Cannot modify header information - headers already sent by (output started at /home/public_html/zed/index.php:26) in/home/public_html/core/cms.php on line 538
Notice: Undefined index: search in /home/public_html/zed/index.php on line 39
Notice: Undefined index: page in /home/public_html/zed/index.php on line 40
Notice: Undefined variable: i in /home/public_html/zed/index.php on line 60
Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in /home/public_html/zed/cat_title.php on line 5
Notice: Undefined variable: rows in /home/public_html/zed/cat_title.php on line 8
Notice: Undefined variable: table in /home/public_html/zed/cat_title.php on line 25
Ошибки по фигне, открой файл cat_title.php и там заменирабочий он на 1.10.1
mysql_query
$inDB->query
mysql_fetch_assoc
$inDB->fetch_assoc
count
$inDB->num_rows
Notice: Constant HOST already defined in /home/public_html/zed/index.php on line 33
Notice: Undefined variable: i in /home/public_html/zed/index.php on line 60
Warning: mysqli_num_rows() expects parameter 1 to be mysqli_result, array given in /home/public_html/core/classes/db.class.php on line183
Notice: Undefined variable: table in /home/public_html/zed/cat_title.php on line 25
У тебя есть некие знания PHP ?Все также, не отображаются категории куда залить новости..
$inDB = cmsDatabase::getInstance();
$query = "SELECT id,title FROM cms_category";
$res = @mysql_query($query);
while ($row = mysql_fetch_assoc($res)) {
$rows[]=$row;
}
$query = "SELECT id,title FROM cms_category";
$result = $inDB->query($query);
$rows= array();
while ($row= $inDB->fetch_assoc($result)){
$rows[] = $row;
}
$last_id = count($rows);
$last_id=$inDB->num_rows($rows)
for($i=1;$i<=$last_id;$i++)
{
$name = iconv('UTF-8','UTF-8',$rows[$i]['title']);
if($name){
if($_GET['cat_id']==$rows[$i]['id'])
{
$table .= '<option value='.$rows[$i]['id'].' selected >'.$name.'</option>';
}
else
{
$table .= '<option value='.$rows[$i]['id'].' >'.$name.'</option>';
}
}
}
return $table;
$cats = include('cat_title.php');
print_r($cats); die();
http://сайт.info/news/politika/priznan-papom-goda%3Cbr%20%3E%3C/a%3E%3Cb%3EWarning%3C/b%3E:%20%20mysql_result()%20expects%20parameter%201%20to%20be%20resource,%20object%20given%20in%20%3Cb%3E/home/public_html/zed/insert.php%3C/b%3E%20on%20line%20%3Cb%3E140%3C/b%3E%3Cbr%20/%3E%3Cbr%20/%3E%3Cb%3EWarning%3C/b%3E:%20%20mysql_result()%20expects%20parameter%201%20to%20be%20resource,%20object%20given%20in%20%3Cb%3E/home/public_html/zed/insert.php%3C/b%3E%20on%20line%20%3Cb%3E157%3C/b%3E%3Cbr%20/%3E.html
На самом деле тут урл такой из за ошибок, он склеил ошибки с уролом, смотри, вот что я декодировалБоюс из за таких урлов с %20%%20%%20% меня заблочит хостер)
http://сайт.info/news/politika/priznan-papom-goda<br ></a>
<b>Warning</b>: mysql_result() expects parameter 1 to be resource,
object given in <b>/home/public_html/zed/insert.php</b> on line <b>140</b><br />
<br /><b>Warning</b>: mysql_result() expects parameter 1 to be resource,
object given in <b>/home/public_html/zed/insert.php</b> on line <b>157</b><br />.html
$id = mysql_result($id,0,id);
$id=$inDB->fetch_assoc($id);
$id=$id['id'];
$id_tags = mysql_result($tags,0,id);
$id_tags=$inDB->fetch_assoc($tags);
$id_tags=$id_tags['id'];
$id=$inDB->fetch_assoc($id);
$id=$id['id'];
print_r($id);die();
$id=$inDB->fetch_assoc($id);
print_r($id);die();
$id=$id['id'];
Notice: Undefined index: cat_id in /home/public_html/zed/cat_title.php on line 15
Notice: Undefined offset: 18 in /home/public_html/zed/cat_title.php on line 13