Page 1 of 1
when information_id=11 then echo $information['href']
Posted: Wed Sep 12, 2012 9:00 pm
by yorgol
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 ?
Re: when information_id=11 then echo $information['href']
Posted: Wed Sep 12, 2012 9:38 pm
by Avvici
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.
Re: when information_id=11 then echo $information['href']
Posted: Wed Sep 12, 2012 11:19 pm
by yorgol
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.
Re: when information_id=11 then echo $information['href']
Posted: Thu Sep 13, 2012 3:28 am
by Avvici

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