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?

Number of row in arijtablesorter
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Number of row in arijtablesorter
#3205
Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 0
Hi,

Can I add automatically a number of row with the plugin arijtablesorter ?

(I wrap query from arisqltable)

Code:



{arijtablesorter}
{arisqltable}
{arisqltablecolumns}

{arisqltablecolumn id="visiteur" alias="Visiteur"}
{arisqltablecolumn id="resultat" alias="Score"}

{/arisqltablecolumns}
{arisqltablequery}

SELECT  visiteur, resultat 

FROM table

where x=1 

order by visiteur desc limit 0,5 

{/arisqltablequery}
{/arisqltable}
{/arijtablesorter}





Can you help me ?

Regards
The administrator has disabled public write access.
 
#3206
Re:Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 760
Hello,

Could you explain what you mean? You want to use variable for LIMIT clause in SQL query or something another?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#3207
Re:Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 0
Hello,

No, I just want numbering automaticly rows of table with the plugin arijdatatable (not arijtablesorter, sorry).

Regards
The administrator has disabled public write access.
 
#3208
Re:Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 760
Hello,

Unfortunately the plugin doesn't support this possibility, but you can submit feature request here and we'll implement this in one of the future releases.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#3319
Re:Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 0
Hi,

I want to use DIRECTPHP to assign a number at each row of my table (1, 2, 3 ...) with arijdatatable and arisqltable

Code:


<?php

$number = 1;
?>
.
.
.
{arisqltablecolumns}

{arisqltablecolumn alias="N°" virtual="true"}
        {coltemplate} <?php echo $number; $number=$number+1;?> {/coltemplate}
{/arisqltablecolumn}
.
.
.



But at each row $number is '1' ????

Can you explain me why ?

Thank's
The administrator has disabled public write access.
 
#3320
Re:Number of row in arijtablesorter 14 Years, 9 Months ago Karma: 760
Hello,

It happens because this code will be executed only once. It doesn't contains any loops contructs.

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