Показать сообщение отдельно

  #3  
Старый 25.02.2009, 21:47
Napas
Новичок
Регистрация: 30.11.2008
Сообщений: 15
С нами: 9181428

Репутация: 16
По умолчанию

пробую эту фишку - http://forum.antichat.ru/showpost.php?p=663815&postcount=2
скуля, 8 полей,во второе вттыкаю кавычку в хексе,вылазает ошибка,пробую подобрать во втором запросе колонки,ниче не получаеццо ( скрипт прочитал бажный, вот код, должна ли тут работать эта фишка или меня глючит?
PHP код:
<?php

// Libraries
include '../php-bin/PageFunctions.php';
include 
'../php-bin/lib/querylib.php';

$nid = @$_GET['nid'];
$category = @$_GET['category'];

// If no nid, exit
if ($nid == "")
{
    echo(
"Error: no article ID");
    exit;
}

// Create a PageFunctions object
$objPFunc = new PageFunctions();

$query = new Query('localhost''root''4dm1n777'"www");

// Year hash
$tmonth = array();
$tmonth['1'] = "January";
$tmonth['2'] = "February";
$tmonth['3'] = "March";
$tmonth['4'] = "April";
$tmonth['5'] = "May";
$tmonth['6'] = "June";
$tmonth['7'] = "July";
$tmonth['8'] = "August";
$tmonth['9'] = "September";
$tmonth['10'] = "October";
$tmonth['11'] = "November";
$tmonth['12'] = "December";

$getitem $query->SQL("select * from newsitem where nid = " $nid " limit 1");
$item mysql_fetch_assoc($getitem);

$gettext $query->SQL("select * from newstext where nid = " $nid " limit 1");
$text mysql_fetch_assoc($gettext);

$getcat $query->SQL("select ctitle from newscategory where cid = " $item['cid'] . " limit 1");
$cattext mysql_fetch_assoc($getcat);

$query->Disconnect();

?>
add: бажный параметр - nid

Последний раз редактировалось Napas; 25.02.2009 в 21:51..
 
Ответить с цитированием