variables over 2 pages w/ a table.

From: Date: Wed, 01 May 2002 21:53:01 +0000
Subject: variables over 2 pages w/ a table.
Groups: php.general 
Request: Send a blank email to php-general+get-95613@lists.php.net to get a copy of this message
Hey, i've got a little problem: I have two php pages index.php and news/index.php now in index.php there is a table which shows news/index.php $left = "news"; $ltitle = "index"; $lext= "php"; include ("$left/$ltitle.$lext"); now this allows me to keep the layout the same, but change the pages within the table using URL commands index.php?left=news&ltitle=index&lext=php now news/index.php takes a variable: $start if (empty($start)) $start= "0"; $end = $start+8; $Query = "SELECT * from $TableName ORDER BY postdate DESC LIMIT $start, $end"; this is to show eight(8) news articles at a time. now also on the news/index.php page there is a link next to show the next 8 articles. <a href=index.php?lext=php?start=8>next</a> so this should link to the index page, which calls upon news/index.php, opens it in the left column of the table, and gives $start the value of 8. but it gives me this error: Warning: Failed opening 'news/index.php?start=8' for inclusion (include_path='') in /home/blindtheory/web/newweb/index.php on line 31 so how can i solve this and get the articles to show in groups of 8? thanks in advance. Jule -- Jule Slootbeek jslootbeek@clarku.edu http://blindtheory.cjb.net

« previous php.general (#95613) next »