Jump to content
php.lv forumi

Vajag palīdzību news system scripta


Techno

Recommended Posts

$query = "select id, title, intro from news order by id desc";
$dataQuery = mysql_query($data);


while($line = mysql_fetch_array($dataQuery, MYSQL_ASSOC))
{
  echo $line['title'] . '<br />' . $line['intro'] . '<br />----------------<br />';
}

 

 

ideja skaidra ?

Edited by Vebers
Link to comment
Share on other sites

$query = "select id, title, intro from news order by id desc";
$dataQuery = mysql_query($data);
$data = mysql_fetch_array($dataQuery, MYSQL_ASSOC);

if(!empty($data)) foreach($data as $line)
{
  echo $line['title'] . '<br />' . $line['intro'] . '<br />----------------<br />';
}

 

 

ideja skaidra ?

 

 

ja tagad apmēram skaidra

Link to comment
Share on other sites

Nu var jau phpbb lietot + ezportal modifikāciju + rokas taisnā lenķī un ar svaigu prātu.

 

Kā piemērs:

 

http://www.notepad.lv

Link to comment
Share on other sites

×
×
  • Create New...