Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

mysql field parameters from url
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: mysql field parameters from url
#54073
mysql field parameters from url 9 Years, 8 Months ago Karma: 0
Hi,

I am a newbie and want to know how can we use the parameters taken from URL or alias of joomla articles:

for e.g

My urls are:
example.com/blue/
example.com/green/
example.com/red/

I am using external database (not joomla) and i have a column which contain fields 'colors'.
I want to give a statement to mysql query :

SELECT *
FROM `table 1`
WHERE Color = 'alias of the current article'

i have tried giving the php code which i use in articles with sources to get the alias or title of joomla article which is:

{source}<?php $option = JRequest::getCmd('option'); $view = JRequest::getCmd('view'); if ($option=="com_content" && $view=="article") { $idnts = explode(':',JRequest::getString('id')); $myarticle_id = $idnts[0]; $myarticle =& JTable::getInstance("content"); $myarticle->load($myarticle_id); echo $myarticle->get("alias"); } ?>{/source}


I want to use the same output as my field. Kindly help
The administrator has disabled public write access.
 
#54075
Re:mysql field parameters from url 9 Years, 8 Months ago Karma: 760
Hello,

Send your order number by email please.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#54081
Re:mysql field parameters from url 9 Years, 8 Months ago Karma: 0
Hi,

My client provided the module which he got upon my recomendation, im just making his website.

Can you please help?
The administrator has disabled public write access.
 
#54082
Re:mysql field parameters from url 9 Years, 8 Months ago Karma: 760
Ask your client about order number please and sent it by email.

Regards,
ARI Soft
The administrator has disabled public write access.
 
Go to topPage: 1