Jump to content

PHP echo and links help...


Mohamedwaly

Recommended Posts

hello

it's a beginning  question

i make a php page in Joomla and make it as Article

for example the link of this page is as following

http://localhost/11/index.php?option=com_content&char=Z&no=0&view=article&id=14:lorem-ipsum&catid=13:example-category&Itemid=42

 

i want to make a link to same page and change "&no=0&char=S" without know the address

 

for example i try to make this

 

<a href="<?php echo curPageURL().($no /20)+2; ?>">Next</a>

 

but it didnot work

<a href="<?php echo  .($no /20)+2; ?>">Next</a>

 

not work

 

i try <a href="<?php printf (curPageURL(),($no /20)+2); ?>">Next</a>

the output is 

http://localhost/11/http://localhost/11/index.php?option=com_content&char=Z&no=0&view=article&id=14:lorem-ipsum&catid=13:example-category&Itemid=42

 

 

 

 

i just want to change $no and $char in same link of page

 

 

how can i do

 

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/208660-php-echo-and-links-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.