0
I wish I had one while
of a query
and fetch the data and create 3 variables separately with this information. For example:
$sel_exclui=mysql_query("SELECT * from tabela order by id DESC LIMIT 0,3");
I thought I’d use mysql_fetch_array
but I don’t know how to use it. If that’s the solution, how can I do it?
I know mysql is deprecated
but this project was being done by someone else and I took possession of the project and not to have to change everything, I have worked with him.
But I would like to store these values in variables to use after off the
while
– I_like_trains
I made the change, just assign in the variables
– Wictor Chaves
But then the variable will always be right?
– I_like_trains
this way you can build an array
– Wictor Chaves
I did as I said, it worked but I did print_r of the array and it appears to me like this
Array ( [68] => Array ( [0] => 68 ) [67] => Array ( [0] => 67 ) [66] => Array ( [0] => 66 ) )
– I_like_trains
You have to put the 'id', 'name' and 'other' according to your bank, to know what is coming from a print_r in $Row.
– Wictor Chaves
Let’s go continue this discussion in chat.
– Wictor Chaves
Problem solved :)
– I_like_trains