Jump to content

phpnoobx

New Members
  • Posts

    2
  • Joined

  • Last visited

phpnoobx's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hey guys, i have a simple script here which didnt work: <html><body><?php $con = mysqli_connect("","root"); mysqli_select_db($con, "firma"); $sql = "update personen set gehalt = gehalt * 1,04"; mysqli_query($con, $sql); $num = mysqli_affected_rows($con); echo "<p>Es wurden $num Datensätze geändert</p>"; mysqli_close($con); ?><p>Alle Datensätze <a href="db_tabelle.php">anzeigen</a></p></body></html> i want all numbers from money * 1,04 but it didnt work. so maybe somebody can help me or say whats wrong with it. the script is local that means i use xampp
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.