im just need the easiest way in php to navigate in this result:
$datos = mysql_query(“SELECT * FROM
usuariosLIMIT 0, 30 “);
I mean, how do i do an echo from $datos in each element of the table?
Ex.
Table:
ID Name LastName
1 Domingo Sarmiento
2 Juan Lopez
How can i read for example the second last name?
mysql_query, when used for SELECT statements, returns a resource which you can use to return the found rows:
Refer to the linked documentation for additional uses and functions.
Since you are learning PHP/MySQL it would behoove me to point out the preferred method of interacting with databases: PDO. PDO affords a consistent interface to all supported databases with added benefits such as prepared statements and lowered injection risk, to name a couple.