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


Recent Events
  • 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.

  • 21/11/2023 BLACK FRIDAY 23 is coming

    BIG SALE, 35% discount for all our extensions. Use BF23 coupon code. Hurry up the discount is valid till 27 November.


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?

[SOLVED] PHP decision to determine which Module
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: [SOLVED] PHP decision to determine which Module
#30817
[SOLVED] PHP decision to determine which Module 11 Years, 10 Months ago Karma: 2
So I would like to do this inside my article:

Code:

<?php
  if ($var == 'value') {
    {aridatatables moduleId="151"}
  } else {
    {aridatatables moduleId="150"}
  }
?>



Can something like this work? (Naturally, the aridatatables command can't be inside the php brackets.)
Last Edit: 2012/08/22 19:52 By JugglingReferee.
The administrator has disabled public write access.
 
#30818
Re:PHP decision to determine which Module to run 11 Years, 10 Months ago Karma: 5
you can use something like this:

Code:


<?
$table1 = "{aridatatables moduleId=\"192\"}";
$table2 = "{aridatatables moduleId=\"193\"}";

if ($var == 'value') {
echo "".$table1."";

else {
echo "".$table2."";

   }
?>




Trevor
The administrator has disabled public write access.
 
#30819
Re:PHP decision to determine which Module to run 11 Years, 10 Months ago Karma: 2
Bingo - that works!

Thank you.
The administrator has disabled public write access.
 
Go to topPage: 1