Jump to content

Code issues


Jemoh
 Share

Recommended Posts

Ok thnx. But w@s the relevance of the foreach loop function ?

Link to comment
Share on other sites

foreach is to loop through the array element. it is getting each element on each iteration

  • Like 1
Link to comment
Share on other sites

foreach is to loop through the array element. it is getting each element on each iteration
I see U R saying that mysql is not safe can you please tell me how to install mysqli and is it still the same as mysql ?
Link to comment
Share on other sites

You enable the mysqli extension the same way you enable any other extension. If this is a server that you're not the administrator of then it's probably already enabled. It's not the same thing as mysql, or else there would be no reason to need a new one.

Link to comment
Share on other sites

you should have the mysqli already installed. you can run <?php phpinfo();?> in a page. it will show you all installed and activated library. you can see it if it is there. mysql api for prior to mysql 5.1 engine and mysqli for later ones. they are not same but you will find similarity in API of mysql and mysqli procedural style.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...