Jump to content

[PHP] Code didnt work :(


phpnoobx

Recommended Posts

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
Link to comment
https://forums.phpfreaks.com/topic/285060-php-code-didnt-work/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.