php...menu generation...
| From: | Bruce Douglas | Date: | Thu, 01 May 2003 23:03:54 +0000 |
| Subject: | php...menu generation... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-146024@lists.php.net to get a copy of this message | ||
Hey....
A quick question.... I'm creating a quick/dirty dropdown menu... The menu
will allow the user to select the number of items that are to be displayed
on a given page. At the bottom of the page will be the usual
first/prev/next/last links as well as the ability to select individual pages
for the items listed. The item list will be dynamically generated from a
mysql query.
I'd like the menu to look like:
Drop Down Menu
xxxx
-------------
50
100
200
.
.
.
A rough sample page would be
+-----------------------------------------------+
| | |
|
| |
| |
| |
| |
| |
+-----------------------------------------------+
I'd like the user to be able to
-----Original Message-----
From: Brian V Bonini [mailto:b-bonini@cox.net]
Sent: Thursday, May 01, 2003 3:55 PM
To: Ryan A
Cc: PHP Lists
Subject: Re: [PHP] echo problem
On Thu, 2003-05-01 at 18:44, Ryan A wrote:
> Hi,
> I have a file called messages.php
> In messages .php I have $demo_wrong="Demo feature has been turned off";
>
> I have a
> require 'messages.php';
> in file MainPHP.php and this:
>
> if($allow_demo=="N")
> {
> if($demo=="Y")
> {
> echo '$demo_wrong';
> exit;
> }
> }
>
> but when i execute the program everything works fine except i get the
output
> :
>
> $demo_wrong
>
> instead of :
>
> Demo feature has been turned off
>
>
>
> What am I doing wrong?
>
echo $demo_wrong;
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php