Hello.
Okey these of you that followed progress are being made and the journey to PHP Ninja is going good, however I am stuck and would appreciate some guidance
So I am working with SQL to manipulate data etc, but one website uses this and another website uses that and stackoverflow says dont use this use that.
So now I just want to know if someone can point out what I will have to look out for to see what is depreciated and what is still active.
For instance I should not use this:
But instead use this:
And here is where I get confused: Because the way I understand
means stuff like this is also wrong?;
I know this is a bit of a mess I am just trying to ask some guidance as to what I must and musnt use and if I understood the above section correctly regarding this:
What are the correct ways to do that?
Also does that mean this tutorial is incorrect?;
https://www.siteground.com/tutorials/php-mysql/display_table_data.htm
I really appreciate the replies in advance.
Okey these of you that followed progress are being made and the journey to PHP Ninja is going good, however I am stuck and would appreciate some guidance
So I am working with SQL to manipulate data etc, but one website uses this and another website uses that and stackoverflow says dont use this use that.
So now I just want to know if someone can point out what I will have to look out for to see what is depreciated and what is still active.
For instance I should not use this:
Code:
mysql_*
mysql_connect(localhost,$username,$password);
But instead use this:
Code:
$conn = new mysqli($servername, $username, $password, $dbname);
And here is where I get confused: Because the way I understand
Code:
mysql_*
Code:
mysql_query
mysql_fetch_array
mysql_num_rows
mysql_numrows
mysql_result
etc?
I know this is a bit of a mess I am just trying to ask some guidance as to what I must and musnt use and if I understood the above section correctly regarding this:
Code:
mysql_query
mysql_fetch_array
mysql_num_rows
mysql_numrows
mysql_result
etc?
What are the correct ways to do that?
Also does that mean this tutorial is incorrect?;
https://www.siteground.com/tutorials/php-mysql/display_table_data.htm
I really appreciate the replies in advance.