Hi,
Thank you all for your answers.
I solved the problem with:
debug=1;
$conn = &ADONewConnection('mysql');
$conn->PConnect($host,$user,$password,$database);
// insert subscription values
$recordSet = &$conn->Execute("SELECT id_news, date, now, title, lead,
body FROM news ORDER BY n
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
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 nex
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 equivale
4 matches
Mail list logo