Results 1 to 10 of 10
Thread: MySQL update?
Hybrid View
-
15th October 2008 16:32 #1
MySQL update?
! , update- . , , ,
. id user , points .
!
-
15th October 2008 16:43 #2
-
15th October 2008 16:48 #3
"UPDATE table_name SET column1=value, column2=value2,... WHERE some_column=some_value"
sourceEP 9NPA+ U (HR-05/IFX)| 4200+X2@2.8GHz (IFX-14) | 2x1GB KINGSTON (DDR430 3-4-3-6-1T@2.7V) | GB 8800GT (512MB) | WD6401AALS | CFT-750-14CS
-
15th October 2008 19:12 #4
........................update.php...... ..................
<?php
mysql_connect("localhost","xxx","xxx");
@mysql_select_db("xxx") or die( "MySQL die");
UPDATE nova
SET points='0'
?>
.............................. ..................
Parse error: syntax error, unexpected T_STRING in /home/a4eka/public_html/game/update.php on line 4
........................................ .......................
, "nova"!
-
15th October 2008 19:14 #5
-
15th October 2008 20:02 #6
Last edited by OgiDogi; 15th October 2008 at 20:12.
-
15th October 2008 19:38 #7
-
15th October 2008 19:42 #8PHP Code:
$setPoints = @mysql_query("UPDATE `nova` SET `points` = 0");
if(@mysql_affected_rows() == $setPoints ) {
echo " !";
} else {
echo " !";
}
-
15th October 2008 19:52 #9
-
15th October 2008 20:48 #10




Reply With Quote

...
Lenovo ThinkPad 15 IdeaPad 15
5th May 2023, 22:16 in