Re: setting a global var so that all pages can see var still :(
| From: | PAUL FERRIE | Date: | Mon, 17 Nov 2003 13:43:22 +0000 |
| Subject: | Re: setting a global var so that all pages can see var still :( | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-169928@lists.php.net to get a copy of this message | ||
How would i pass tablename in the submit button?
Check out edit record u wil see
http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html
Cheers
Paul
"Paul Ferrie" <info@innovativedesigns.org.uk> wrote in message
news:20031117113223.77893.qmail@pb1.pair.com...
> Hello again guys, thanks for the help over the past 48 hours :)
>
> Over the past week i have had the job of tweaking the php pages of a
friends
> site. so far so good :)
>
> Now i am onto the admin area for running the website. I downloaded one of
> the many db managers scripts from www.hotscripts.com
> Luckly its a very simple app, easy to mod. Anyways most of my php
knowledge
> is in conjuction with flash www.innovativedesigns.org.uk. most of the
> problems i have had here have been fairly simple to learn and fix.
>
> Now the job this week is with php+html (total newbie to this area). most
of
> the problems i have been able to fix with some help from here as well.
>
>
>http://thor.ancilenetworks.co.uk/~pferrie/vinrev/adm/myadmin.html
>
> ~This is the admin area. I manged to get the drop down menu working to
> select the revelent table and then set $tablename with the result being
> displayed in the next page as:
> <?
> print "MyAdmin database for <i>$tablename</i> table";
> ?>
> The new page has 4 links to load other php files to edit,delete, view, and
> add new data to the DB
> On the links have:
> <a href="edit.php?tablename=$tablename">View database</a><br>
>
> ~Now in the edit.php i have :
> $result = mysql_query("SELECT * FROM $tablename")or die("couldnt select
> table");
>
> $tablename is not being passed with the link.
>
> What am i missing?
>
>
> Cheers
> Paul