Re: [Linux-programlama] Mysql - Update Hakkında

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Ba Kubah (bakubah@gmail.com)
Date: Sat 30 Jul 2005 - 20:02:44 EEST


Aşağıdaki örneği incelersen bu soruna çözüm üretebileceğine inanıyorum.

<?php
// Connect to MySQL
// Get Sandy's record from the "example" table
$result = mysql_query("UPDATE example SET age='22' WHERE age='21'")
or die(mysql_error());

$result = mysql_query("SELECT * FROM example WHERE age='22'")
or die(mysql_error());

// get the first (and hopefully only) entry from the result
$row = mysql_fetch_array( $result ); echo $row['name']." -
".$row['age']. "<br />";
?>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.