Thursday, 15 August 2013

php - What is the difference between mysql and mysqli in WAMP? -



php - What is the difference between mysql and mysqli in WAMP? -

this question has reply here:

why shouldn't utilize mysql_* functions in php? 10 answers

so downloaded wamp , found out mysql deprecated, wondered if there else need downlaod wamp in order of mysql work or should leave , dont worry bout it? not pro programmer!

after ran code showed im connected:

<?php $conn = mysqli_connect('localhost','root',''); if(!$conn){ die('not connected'); }else { echo 'connected'; } ?>

mysqli , pdo, both php apis accessing mysql, bundled wamp. there's nil else download. should go.

good noticing deprecation of mysql!

if you're doing project larn dbms technology in general, might consider working pdo: can utilize same apis (with little variations) connect other dbmss, including postgresql, oracle, , ms sql server. though of expensive commercial products, can free evaluation copies learning purposes run on own machine.

php mysql mysqli

No comments:

Post a Comment