All Programs are Shifted!

Now find all gtu and other complex programs by going this link

in mobile you have to do a search!  else scroll down :p

connect PHP with database

<!DOCTYPE html>
<html lang=”en-US”>
<meta charset=”UTF-8″>
<style type = “text/css”>
table, th, td {border: 1px solid black};

$connect=new PDO(‘mysql:hostname=localhost;dbname=learn’,”root”);
print “<table> \n”;
print “<tr> \n”;
foreach ($row as $field=>$value){
print “<th> $field </th> \n”;
print “</tr> \n”;
foreach($data as $row){
print “<tr> \n”;
foreach($row as $name=>$value){
print “<td> $value </td> \n”;
print “</tr> \n”;
print “</table> \n”;
catch(PDOException $e) {
echo ‘ERROR: ‘ . $e->getMessage();

Continue reading “connect PHP with database”