Gliuk na PHP
ia pishu:-=armMD=- Delete Lector if(!IsSet($HTTP_POST_VARS[Delete_Lector_Hidden])) {echo "Nu aveti acces de administrator";die();} include("../connections/db.inc");$dbh=odbc_connect ($host, $un, $pw) or die ('I cannot connect to the database');//// get nume si prenume lector ce va fi eliminat ///////$query="Select Nume_Lector,Prenume_Lector from Lector where ID_Lector=";$query.=$HTTP_POST_VARS[Lector];$result=odbc_exec($dbh,$query);$var1=odbc_result($result,1);$var2=odbc_result($result,2);odbc_free_result($result);$query1="delete from Lector where ID_LEctor=";$query1.=$HTTP_POST_VARS[Lector];$result1=odbc_exec($dbh,$query1);echo "lectorul ";echo $var1," ",$var2;echo " a fost eliminat";?>