hi,
i have a question about $criteria as far as the pagination is
concerned

in the database i have 3 tables
table1 (one of the rows is client_id)
table2 (one of the rows is client_id)
table3 (there is no client_id)

my problem is that in the pagination i need to show data from table3
linked to the logged client (that in my controller is
$_SESSION['activeClient']['id'] )

i understand that $criteria is a WHERE

then it should be something like
WHERE table1.client_id = table2.client_id AND client_id =
$_SESSION['activeClient']['id']

or something like

$strsql3 = "select count(*) as numero from table1 WHERE client_id =
$_SESSION[activeClient][id]";
$query3 = mysql_query($strsql3);

$row3 = mysql_fetch_array($query3);
$numero = $row3["numero"];

mysql_free_result($query3);
$criteria = $numero;

but how can i "translate" this into cakephp?

thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to