Jemoh Posted July 11, 2012 Share Posted July 11, 2012 anyone good with php programming to please explain to me this code coz am stuck @ http://pastebin.com/3hAMaFVt Link to comment Share on other sites More sharing options...
justsomeguy Posted July 11, 2012 Share Posted July 11, 2012 What are you stuck with? It's a function to flatten a multidimensional array into a single dimension array, except it uses global variables when it doesn't really need to. 1 Link to comment Share on other sites More sharing options...
Jemoh Posted July 11, 2012 Author Share Posted July 11, 2012 Ok thnx. But w@s the relevance of the foreach loop function ? Link to comment Share on other sites More sharing options...
birbal Posted July 11, 2012 Share Posted July 11, 2012 foreach is to loop through the array element. it is getting each element on each iteration 1 Link to comment Share on other sites More sharing options...
Jemoh Posted July 11, 2012 Author Share Posted July 11, 2012 foreach is to loop through the array element. it is getting each element on each iterationI 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 More sharing options...
justsomeguy Posted July 11, 2012 Share Posted July 11, 2012 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 More sharing options...
birbal Posted July 11, 2012 Share Posted July 11, 2012 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now