Page 1 of 1

Help with coding

Posted: Tue Mar 08, 2011 5:17 am
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?

Re: Help with coding

Posted: Tue Mar 08, 2011 7:34 am
by litebearer
Perhaps if you showed us your code we might have a place from which to start

Re: Help with coding

Posted: Tue Mar 08, 2011 10:13 am
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

Re: Help with coding

Posted: Sun Mar 13, 2011 11:30 am
by phpCig
Oh well I have solved the problem :D