Function


Posted on 16th Feb 2014 07:03 pm by admin

How can I make this function that once you click the link in the code it takes you to a new page without html but so the menu_name and content load in it.

Code: function public_navigation($sel_subject = null, $sel_page = null) {
$subject_set = get_all_subjects();
// 5. Use returned data
while ($subject = mysql_fetch_array($subject_set)) {

echo "<div class="menu-name">"; echo "<a href="buying.php?page=" . urlencode($subject["id"]) .
"">{$subject["menu_name"]}</a>"; echo"</div>";
echo "<div class="buying-text">"; echo "{$subject["content"]}"; echo"</div>";

echo "<div class="image">"; echo"</div>";




}
}

Thanks

No comments posted yet

Your Answer:

Login to answer
60 Like 30 Dislike
Previous forums Next forums
Other forums

Data storage spaces in varchar2
Trying to understand what's happening.
I am selecting a value from a table that is defined as c

Problem with HTML form
Hello,

I made a HTML form with some fields and check box.
Everything works fine except whe

session variables not working anymore
hello,
i use sessions to handle authentication within my site. my host has been changing a lot of

PHP and Javascript
Hello Everyone,

I have a page that needs a javascript code to be written between PHP code but

Table trouble
i have been reading the forum for a few weeks and decided to join. i like the format and the advice

Grouping and sorting results
Please help with this query.

I have 2 tables in a database, countires and cities. states look

Need help with a mail notify function
I was tasked with setting up a site that's been prewritten. The site is basically a form that captur

Access database inside of a validation class
Hello,

For quite some time, I have been using functions to validate form input and access the

iMatch stored value with the current value in a loop
Hello,

I have a MySQL db were I store articles in.

I have a form to fill these article

Delete all from a table
I can not get the following code to work. If I run the sql statement in the db it will delete all t

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash