+ 2
what is role of php in database ?
4 Réponses
+ 2
Many PHP programmers learned how to access databases by using either the MySQL or MySQLi extensions. As of PHP 5.1, there's a better way. PHP Data Objects (PDO) provide methods for prepared statements and working with objects that will make you far more productive!
+ 1
role looks like....
<?
$user=$_POST ['USER'];
$pass=$_POST[ 'pass'];
$result=mysql_connect ("server","user","password") or die "not connect ";
mysql_select_db ("database name",$result) or die "no such database";
// commands
// to
//push data to database
?>
0
interacting with the user to provide your database with the information of the user.. I recommend you to learn mysqli or pdo
0
major role... to handles form data.... if u can imagine i made my whole sign up and sign in.. in my website
www.envie.tech
if u want to watch
and u want the code file u can send messages