Forums

Chronoconnectivity rows number column

federico85 29 Aug, 2010
Hi, I'm a newbie using php, chronoforms and chronoconnectivity but I've been able to set up a component for my website for managing registrations and ranking of a competition.
There i encountered two problems i can't solve. I googled a lot but I didn't find an answer to my problems.
1) I'd like chronoconnectivity to add a coloumn on the left side of my table with a progressive rows number.
2) I'd like to add a code in the server side validation of my registration form which doesn't allows users to insert the same data twice.
eg. If data inserted in the form fields: name , surname and date_of_birth are already inserted in the same row of the database return 'Data already exist!'.

I don't know much of php and I hope someone could help me with a step by step explanation.
Thanks in advance!


[[>> Greyhead : I copied this over from the ChronoForms forum. I'll reply to the CF part of the question there. <<]]
GreyHead 29 Aug, 2010
Hi federico85 ,

Please try this: In the Header box put
<?php
global $i;
$i = 0;
?>
In the Body box add
<?php
global $i;
$i++;
?>
. . .
<td><?php echo $i; ?></td>


Bob
This topic is locked and no more replies can be posted.