Units kopen
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117, '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117, '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
Gewijzigd op 01/01/1970 01:00:00 door Jaap versloot
je escaped niet..
nu wel... maar dan doet hij er niks bij:(
- Geef relevante code
- Geef een duidelijke omschrijving
- Geef eventuele foutmeldingen
- Geef eventueel de URL
- Lees Adje's Slimme Vragen Stellen Tutorial
Elwin
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(sniper, navyseal, f117, rah66) VALUES ('13', '1','1, '1') WHERE
Gewijzigd op 01/01/1970 01:00:00 door jaap versloot
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117', '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117', '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
probeer dit eens..
Pepijn schreef op 22.03.2007 18:36:
probeer dit eens..
mag ik vragen wat je veranderd hebt... na mijn id niks.... en hij geeft nogsteeds dezelfde fout...:(Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117', '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('$esniper', '$enavyseal','$ef117', '$erah66') WHERE username = '$jezelf' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
probeer dit eens..
ja had een haakje vergeten in values. Ik zal nog ff kijken..
okj:D
Code (php)
1
2
3
4
5
6
7
2
3
4
5
6
7
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('".$esniper."', '".$enavyseal."','".$ef117."', '".$erah66."') WHERE username = '".$jezelf."' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units(sniper, navyseal, f117, rah66) VALUES ('".$esniper."', '".$enavyseal."','".$ef117."', '".$erah66."') WHERE username = '".$jezelf."' ";
$result1 = mysql_query($sql_query1) or die(mysql_error());
Gewijzigd op 01/01/1970 01:00:00 door GaMer B
Code (php)
1
2
3
4
5
6
7
8
9
10
2
3
4
5
6
7
8
9
10
<?php
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units SET sniper = '".$esniper."', navyseal = '".$enavyseal."', f117 = '".$ef117."', rah66 = '".$erah66."' WHERE username = ".$jezelf."";
$result1 = mysql_query($sql_query1) or die(mysql_error());
?>
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units SET sniper = '".$esniper."', navyseal = '".$enavyseal."', f117 = '".$ef117."', rah66 = '".$erah66."' WHERE username = ".$jezelf."";
$result1 = mysql_query($sql_query1) or die(mysql_error());
?>
is units wel een table??
(heb ff de quotezooi weggelaten, mag je zelf doen ;-) )
Edit: iemand was me voor.
Code (php)
1
UPDATE units SET sniper = $esniper, navyseal = $enavyseal , f117 = $ef117 , rah66 = $erah66 WHERE username = $jezelf
Gewijzigd op 01/01/1970 01:00:00 door Baarr
Code (php)
1
2
3
4
5
6
7
8
2
3
4
5
6
7
8
$esniper = $sniper+$vsniper;
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units SET sniper = '".$esniper."', navyseal = '".$enavyseal."', f117 = '".$ef117."', rah66 = '".$erah66."' WHERE username = '$jezelf'";
$result1 = mysql_query($sql_query1) or die(mysql_error());
$enavyseal = $navyseal+$vnavyseal;
$ef117 = $f117+$vf117;
$erah66 = $rah66+$vrah66;
$sql_query1 = "UPDATE units SET sniper = '".$esniper."', navyseal = '".$enavyseal."', f117 = '".$ef117."', rah66 = '".$erah66."' WHERE username = '$jezelf'";
$result1 = mysql_query($sql_query1) or die(mysql_error());
THANX