php - Difference between echos with row and not -


Since I am learning PHP and MySQL, I feel that I have ever written to my $ line ['name']. and & lt ;? Php echo $ variable? & Gt; What is the difference between them? Is it all the same, or is there something different between these types of performance information? Why do some people not use the line and others?

When the mysql result is returned back to an array, it is usually just $ row . So you have all the returned columns in the $ row variable, and they have $ row ['id'] , $ row ['title'] $ line ['whatever'] .

echo $ id; Only the $ id variable.

Both resonate one variable, it is just that the first one is to an item's anchor and the other one is the code named $ id . .

Comments