| | |
How can i deledet and update from table ???????
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
•
•
Originally Posted by slade
I think he wants to know how to do it via php...
<?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.
Dont forget to spread the reputation to those that deserve!
•
•
•
•
Originally Posted by astm
thank you Killer_Typo
now i want to now how i can make update
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)
Dont forget to spread the reputation to those that deserve!
![]() |
Similar Threads
- Update table row without firing trigger? (MS SQL)
- Update one table with another tables values (MS SQL)
- 2 tables, combobox update second table (VB.NET)
- update the whole table (ASP.NET)
- unable to update my table (PHP)
Other Threads in the PHP Forum
- Previous Thread: Problem Unsetting Variables?
- Next Thread: Code Problem
| Thread Tools | Search this Thread |
advanced alerts apache api archive array autosuggest beginner binary broken cakephp checkbox class clients cms code cron curl database date datepart display dynamic echo email emptydisplayvalue eregi error execute explodefunction file files folder form forms function functions google hack head href htaccess html if...loop image include insert ip javasciptvalidation javascript joomla keywords library limit link login mail matching menu mlm multiple mysql number object oop password paypal pdf php phpincludeissue query radio random recursive remote script search searchbox server sessions shot smarty source space speed sql syntax system table tutorial update upload url validator variable vbulletin video web website youtube





