News

Log In Sponsors
Partner Sites
Search for a Delaware Real Estate Professional or Agency




what kind of code?



1. [php] mysql_connect('localhost',$username,$password); @mysql_select_db('Database Name'); $query = 'whatever'; $result = mysql_query($query); mysql_close(); // et cetera et cetera [/php] 2.[php]$db=new mysqli('localhost','user','pass','database'); $query="select something from some_table"; $result=$db->query($query); //etc[/php] what kind of code should I use? First one is procedural, and second object orienteted, right? Which one is more up to date?

Click here to read the whole forum topic