Re: How can i deledet and update from table ???????
Quote originally posted by slade ...
I think he wants to know how to do it via php...
that is how you do it. it would be
<?php
mysql_connect (mysql location, username, password) or die(mysql_error());
$tb_delete = "DELETE FROM tabl WHERE field='value'";
mysql_query($tb_delete) or die(mysql_error());
mysql_close();
that would be most of the code that you would see, or part of it.
Re: How can i deledet and update from table ???????
Quote originally posted by astm ...
thank you Killer_Typo
now i want to now how i can make update
should be around the same as what i said before, but use the UPDATE syntax. if you open up the mysql manual and do a search by going to edit, find on page. and type in the word you will most likely find all of the information you need to know about correct mysql syntax.
also i forgot to to mention that in the code that i listed above i forgot to add the line for selecting the correct databse. wich would be
$use = "USE database";
mysql_query($use) or die(mysql_error());
somthing along those lines should select the databse for the table you wish to modify (ive been writing my own custom database management tool, so ive been trying to get good with mysql syntax)
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.