Assuming you know it will be three records:
$i = 1;
while(...) {
if($i==3) {
//Do the stuff for the last one
} else {
//Do the rest of the stuff here
}
$i++;
}
Assuming you don't know:
$count = mysql_num_rows($Result); //or
I would use some JavaScript on the client side to go through the table and
change the classes once the whole page is loaded.
Otherwise, for a pure PHP solution, I might either load the whole table on
an array, which is wasteful in memory, or defer the actual output of each
record until the
Sorry, I only saw the one response to this question so not sure if what I'm
going to propose was already mentioned and wouldn't work.
Two things come to mind.. first, it looks like blocoTextoLast just has
different margin settings, I assume because it's located on the right side of
the page
Hi,
Thank you all for your answers.
I solved the problem with:
div id=blocoNews
?php
include('config.php');
include('adodb/adodb.inc.php');
$debug = 1;
// connect to MySQL
$conn-debug=1;
$conn = ADONewConnection('mysql');
$conn-PConnect($host,$user,$password,$database);
//
4 matches
Mail list logo