Post by yorgol » Wed Sep 12, 2012 9:00 pm

I want to insert a new custom page using the information page, as a newer, I met a problem, I want to change the

Code: Select all

 <li><a href="<?php echo $information['href']; ?>"><?php echo $text_return; ?></a></li>
to export the URL of the information page if the id =11

is there any boday tell me how to make that ?

New member

Posts

Joined
Thu Aug 26, 2010 10:54 am

Post by Avvici » Wed Sep 12, 2012 9:38 pm

I have no clue what you are trying to say.....

However if you want to check for an info_id it needs to come from a $_GET just like in default opencart. This is how the info_id is passed as argument in the query (that get's the information page).

If you don't do that then you need to write a new query that just get's an information's ID.

The last alternative is to open up the information table in your phpmyadmin and get the information_id manually, thus using it in a conditional.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by yorgol » Wed Sep 12, 2012 11:19 pm

avvici wrote:I have no clue what you are trying to say.....

However if you want to check for an info_id it needs to come from a $_GET just like in default opencart. This is how the info_id is passed as argument in the query (that get's the information page).

If you don't do that then you need to write a new query that just get's an information's ID.

The last alternative is to open up the information table in your phpmyadmin and get the information_id manually, thus using it in a conditional.
I meant that to get the information's URL when the information_id=11 and insert them in the foot.php.

I am a newer and it not fimilar with the PHP, can you help me to wriet the code in the reply. thank you very much.

New member

Posts

Joined
Thu Aug 26, 2010 10:54 am

Post by Avvici » Thu Sep 13, 2012 3:28 am

??? Sorry man, I still can't decipher what you need. Maybe someone else will know how to read broken english.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC
Who is online

Users browsing this forum: Google Adsense [Bot] and 21 guests