+ 2

what is role of php in database ?

28th Jun 2016, 6:25 PM
Dinesh
Dinesh - avatar
4 Respuestas
+ 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!
28th Jun 2016, 6:31 PM
Dinesh
Dinesh - avatar
+ 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 ?>
30th Jun 2016, 11:26 AM
Madhvendra Singh Singh
Madhvendra Singh Singh - avatar
0
interacting with the user to provide your database with the information of the user.. I recommend you to learn mysqli or pdo
2nd Jul 2016, 1:25 PM
Mohammed Osama El-Morsy
Mohammed Osama El-Morsy - avatar
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
20th Jun 2017, 6:14 PM
Sudhanshu Prajapati
Sudhanshu Prajapati - avatar