Hi all,
When i use modx db api, and makea sql query, like
$table = $modx->getFullTableName("xtr_usercomments");
$sql = "select * from $table LIMIT $start,20";
$modx->db->query($sql);
how can i get the results? where are they returned?
thank you
alex.
one way could be
$table = $modx->getFullTableName("xtr_usercomments");
$sql = "select * from $table LIMIT $start,20";
$querry = $modx->db->query($sql);
while ($row = mysql_fetch_array($querry){
echo $row[’usercoment_content’]
}
Yeap, it works great! Thank you!
What’s the meaning of
?
I mean: why the empty square brackets?
Thanks teacher