<?php
$newu_db = mysqli_connect('localhost', 'erecruiting', 'mittweida', 'erecruiting');
$newu_sql = 'UPDATE test_db SET (text1 = ?, text2 = ? WHERE ID = '1')';
$kommando = $newu_db->prepare($newu_sql);
$kommando->bind_param('ss', $_POST['text1'], $_POST['text2']);
$kommando->execute();
$kommando->affected_rows;
$newu_db->close();
?>
<html>
<head></head>
<body>
<form method="post">
<fieldset>
<legend>Test UPDATE</legend>
<table align="left" class="tabelle">
<tr>
<td>text1</td>
<td><input type = "text" name = "text1"></td>
</tr>
<tr>
<td>text2</td>
<td><input type="text" name="text2"></td>
</tr>
<tr>
<td></td>
<td><input type = "submit" name = "speichern" value = "speichern"></td>
</tr>
</table>
</fieldset>
</form>
</body>
</html><?php
$newu_db = new mysqli('localhost', 'erecruiting', 'mittweida', 'erecruiting');
$newu_sql = 'UPDATE test_db SET text1 = ?, text2 = ? WHERE ID = 1';
$kommando = $newu_db->prepare($newu_sql) or die($newu_db->error);
$kommando->bind_param('ss', $_POST['text1'], $_POST['text2']);
$kommando->execute();
$kommando->affected_rows;
$newu_db->close();
?>
suche ein script für ein terminkalender mit php und sql
timoxy 23.06.2007 - 117 Hits - 4 Antworten
SQL-DB über HTML via PHP befüllen - wie ?
Tumulus 20.05.2008 - 36 Hits - 9 Antworten
Textsuche über HTML Suchmaske in SQL-DB über php geht nicht !!
steindesign 12.06.2008 - 26 Hits - 5 Antworten
Datum aus php mit Datum aus sql vergleichen
Mossili 30.06.2008 - 98 Hits - 2 Antworten
SQL Timestamp mit PHP bearbeiten
Timi_79 16.07.2008 - 52 Hits - 1 Antwort