Jump to content
php.lv forumi

Kāds var palīdzēt ar sql dzēšanu?


Orfius

Recommended Posts

Kā lai mainīgajam $id = piešķir vajadzīgā ieraksta id? Paldies jau iepriekš!

 

 

if ($_POST['del'] == "Dzest") 
{
 $id =
 result = "DELETE FROM tabula1 WHERE id='.$id.' " ;

} 


do
{
echo '<table style="border : 1px solid black">
   <tr>
       <td style="width : 100">'.$myrow['id'].'</td>
       <td style="width : 100">'.$myrow['vards'].'</td>
       <td style="width : 100">'.$myrow['uzvards'].'</td>
       <td style="width : 50"><form  method="post"><input type="submit" name="del" style="width:50;border:1px solid;height:20" value="Dzest"></form></td>
   </tr>
</table>';

}
while ($myrow = mysql_fetch_array($result)); 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...