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

Include with Parameters
In a particular page I would like to include a file that requires $_GET parameters.

when I go

Reading waves
Hi,

I am trying to find a way of finding the highs and lows on a graph line, the line points

Remove values in array2 from array1
I have two arrays.

Array 1 is where the array key holds various different numbers. For exampl

db entry based on primary key
My "topics" table contains 10 entires
*--------------*
topicid topic
------

Table Control
Hi Guru's,

I've created a Module pool program, which contains the Table Control.

Hom to make one url to open together with another url
I have a chat, which i want to be opened, as soon as the users login to the site. As it is now, when

Place specific image in html page when specific name is typed.
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

Warning: mysql_num_rows() expects parameter 1
When i add quote at the end of this link
example:http://localhost/articlemania/category.php?cid=3

why isn't this PHP code working ???
it's suppose to find a name on the database.

<?php

$s = $_POST["lname&

Referential Integrity problem when inserting into 2 tables at same time
Hello Everyone,

Im relativity new to PHP and MySQL and i have come up against a problem. i h

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