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

60 Like 30 Dislike
Previous php-forum Next php-forum
Other php-forum

WORDPRESS - Multiple Loops Only Going to One Post?
I have various pages with multiple loops and i need them to be individual to all other categories.

Help with usergroups? prolly really quick
So were coding our own forums for a game system we made an we have the users level setup but now I n

query based on 2 conditions
I want to select if the doc_type is either s OR f but this doesn't work:

Code: [Select]$query

Please help with code for SMTP authenticated PHP email form
Hello, I'm creating a PHP email form, and for this particular server, I have to use SMTP Authenticat

PayPal Redirect Issue
When I have my paypal button set so that is redirects to http://empiremarketing.ca/order.php,it work

Error Messaging not working
I changed the way my form tells the user of an error. But I can't seem to get it to work properly.

Results from Db outputted twice
Hey guys.. for come reason my data is outputted twise shown in the image below and i cant figure out

Disable html within defined tags
I have a mysql database that allows users to enter content with html, but I also want to have a tag

XML Grouping
I'm using xml_parse_into_struct to get all my elements, but now I need to group them. For example, h

Renaming a file that a user uploads to site?
My site allows for registered users to upload images to the site under their own gallery. Currently

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