note 106922 added to language.types

From: Date: Mon, 19 Dec 2011 09:21:26 +0000
Subject: note 106922 added to language.types
Groups: php.notes 
Request: Send a blank email to php-notes+get-185130@lists.php.net to get a copy of this message
exemplu de update <head> <title></title> </head> <body> <?php include "conexiune.php"; $query="SELECT * FROM proba WHERE id='$id'"; $result = mysql_query("SELECT * FROM proba"); $num=mysql_num_rows($result); mysql_close(); $i=0; while ($i < $num) { $id=mysql_result($result,$i,"id"); $nume=mysql_result($result,$i,"nume"); $prenume=mysql_result($result,$i,"prenume"); ?> <form action="updated.php" method="post"> <input type="hidden" name="ud_id" value="<? echo "$id";?>"> Nume: <input type="text" name="ud_nume" value="<? echo "$nume";?>"> Prenume: <input type="text" name="ud_prenume" value="<? echo "$prenume";?>"> <input type="Submit" value="Modifica"> </form> <?php ++$i; } ?> </body> </html> <head> <title></title> </head> <body> <?php include "conexiune.php"; $query="UPDATE proba SET nume='$ud_nume', prenume='$ud_prenume' WHERE id='$ud_id'"; $checkresult = mysql_query($query); if ($checkresult) { echo "Modificare efectuata"; } else { echo "Modificare neefectuata"; } mysql_close(); ?> </body> </html> ---- Server IP: 69.147.83.197 Probable Submitter: 193.231.19.18 ---- Manual Page -- http://www.php.net/manual/en/language.types.php Edit -- https://master.php.net/note/edit/106922 Del: integrated -- https://master.php.net/note/delete/106922/integrated Del: useless -- https://master.php.net/note/delete/106922/useless Del: bad code -- https://master.php.net/note/delete/106922/bad+code Del: spam -- https://master.php.net/note/delete/106922/spam Del: non-english -- https://master.php.net/note/delete/106922/non-english Del: in docs -- https://master.php.net/note/delete/106922/in+docs Del: other reasons-- https://master.php.net/note/delete/106922 Reject -- https://master.php.net/note/reject/106922 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#185130) next »