Wenns mal wieder brennt
Seite 1 von 1
Wenns mal wieder brennt
function alphaOnly(event) {
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == ;
};
<?php
$con=mysqli_connect("127.0.0.1","root","root","buchhandel");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con, "");
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "<td>" . $row['Author'] . "</td>";
echo "<td align='right'>" . date('d-m-Y', strtotime($row['Jahr'])) . "</td>";
echo "<td>" . (int)$row['Preis'] . "</td>";
echo "<form action='Buch_DEL.php'>";
echo "<td><input type='submit' value='löschen' >";
echo "<input type='text' style='visibility:hidden; height:0px; width:0px' name='delId' value='". $row['BuchId'] ."'/></td>";
echo "</form>";
echo "</tr>";
}
echo "
</table>
</body>
</html>";
mysqli_close($con);
?>
var key = event.keyCode;
return ((key >= 65 && key <= 90) || key == ;
};
<?php
$con=mysqli_connect("127.0.0.1","root","root","buchhandel");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con, "");
while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Name'] . "</td>";
echo "<td>" . $row['Author'] . "</td>";
echo "<td align='right'>" . date('d-m-Y', strtotime($row['Jahr'])) . "</td>";
echo "<td>" . (int)$row['Preis'] . "</td>";
echo "<form action='Buch_DEL.php'>";
echo "<td><input type='submit' value='löschen' >";
echo "<input type='text' style='visibility:hidden; height:0px; width:0px' name='delId' value='". $row['BuchId'] ."'/></td>";
echo "</form>";
echo "</tr>";
}
echo "
</table>
</body>
</html>";
mysqli_close($con);
?>
Seite 1 von 1
Befugnisse in diesem Forum
Sie können in diesem Forum nicht antworten
|
|