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();
Did you know?Explore Trending and Topic pages for more stories like this.
// 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

Windows 7
Windows 7 default user account control worries experts. Corporate IT departments should be pleased w

Give me all your tricks for minimizing jar file size

Hi, I'm coming close to releasing my J2ME game... I am kicking up against the 64k size barrier w

MySQL issue
I am taking sentences through a form on page. Then checking some condition and trying to insert them

pagination - need help on passing of search query.
Hi, i have been trying for days but couldn't get this sorted out. Would like some professional help

an interesting question
Greetings folks, got to ask an interesting question...

let say
i have created a function s

Error querying database.
I get the above error when trying to insert some values to a datatable.
Here's the code :

extract data
Code: <div class="post hentry uncustomized-post-template">

Undefined variables
hi
----------------------------------------------------------------------------------------------

Insert data in Mysql and move to another page
I'm stuck with this simple problem. I need to insert data in Mysql and then hit submit and move to a

Using CSS to format MySQL query
Hi,

If i want to have a news page on my site, which displays all records of a table in descen

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