Beverage World
dbname =$dbname; // database name $db->offset = 'page'; // ## GET var used for links $db->limit = 20; // result per page $db->number_type = 'number'; // 'alpha' or 'number' format for pages number $db->connection($dbhost,$dbuser,$dbpass); // connect to db ## execute query $db->execute("SELECT * FROM pages WHERE newscatid=$catid or newscatparent=$catid ORDER by date DESC"); ## show results while($myrow = mysql_fetch_array($db->sql_result)) { $id = $myrow["id"]; $newscatid = $myrow["newscatid"]; $title = $myrow["title"]; $title_eng = $myrow["title_eng"]; $date = $myrow["date"]; $pretext = $myrow["pretext"]; $pretext_eng = $myrow["pretext_eng"]; $text = $myrow["text"]; $text_eng = $myrow["text_eng"]; $date = $myrow["date"]; $date=substr($date,0); $dat1=explode(" ",$date); $dat=explode("-",$dat1[0]); $date="$dat[2]-$dat[1]-$dat[0]"; // $date="$dat[2]-$dat[1]-$dat[0] $dat1[1]"; (this line shows date+time stamp) $cat = $myrow["cat"]; $albumID = $myrow["albumID"]; ?>
show_num_pages('«','« ','»',' »','|','class=moi'); // show pages // OUTPUT THE NAV print $pages; ?>
show_info(); print $info; ?>

ERGOCNC : Λεωφ. Παλ. Καβάλας 191 • Περιστέρι, Αθήνα 12131 • Τηλ: 216 7002002

© 2013 ERGOCNC.GR • Development & Web Design: RubyRed advertising