Help with coding

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
phpCig
Forum Newbie
Posts: 12
Joined: Mon Jan 31, 2011 8:32 am

Help with coding

Post by phpCig »

I am basically trying to code php via a HTML link

i.e.
If I or any other users click on a link, I want to change variable(s) to a certain value, how would I go about doing this?
litebearer
Forum Contributor
Posts: 194
Joined: Sat Mar 27, 2004 5:54 am

Re: Help with coding

Post by litebearer »

Perhaps if you showed us your code we might have a place from which to start
phpCig
Forum Newbie
Posts: 12
Joined: Mon Jan 31, 2011 8:32 am

Re: Help with coding

Post by phpCig »

Code: Select all

1. <div id="divMenuBar">
2.     <ul>
3.         <li><a href="#">Food</a></li>
4.         <li><a href="#">Toiletries</a></li>
5. </ul>
</div>

What I want to do in MySQL and OOPs is to display the list of foods when I click the link in line 3 and the list of toiletries in line 4. but using OOPs in order to only that keyword e.g. 'food' as in line 3 and 'toiletries' in line 4

I want to send this data so I can query the database, rather than make separate pages for them
phpCig
Forum Newbie
Posts: 12
Joined: Mon Jan 31, 2011 8:32 am

Re: Help with coding

Post by phpCig »

Oh well I have solved the problem :D
Post Reply