This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
function displayData() { | |
$mysqli = new mysqli('localhost', 'telahaus_clio3', 'clio3Rocks!', 'telahaus_clio3'); | |
$query = "SELECT id, name FROM battle"; | |
$result = $mysqli->query($query); | |
while($row = $result->fetch_row()) { | |
printf("%s: <strong>%s</strong><br>", $row[0], $row[1]); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//connect to database | |
$con = mysql_connect('localhost', 'root', 'root'); | |
//check connection | |
if (!$con) { | |
die('Could not connect');} | |
/*else{echo 'Success';}*/ | |
mysql_select_db('maury1'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Update Cartoon Database</title> | |
</head> | |
<body> | |
<h2>Add New Cartoon to Database</h2> | |
<form method="post" action="updatedev.php"> | |
<?php include 'connect-db.php'?> |