This is a discussion on "deleting a record from a database" within the Databases section. This forum, and the thread "deleting a record from a database are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
deleting a record from a database
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
My database is coming on leaps and bounds. Now I'm trying to delete a record from it, but what seems to be happening is the record is being blanked, but not deleted. This is the script I have:
|
|
|
|
|||
|
Re: deleting a record from a database
I just used your code on a different database and table (obviously) and it worked fine. Personally I keep my database details on a separate file and call it on a require_once(), that way you only need to change one page when your database details change. You could even set up a class to connect.
|
|
|||
|
Re: deleting a record from a database
I think you mean when you click on the table in phpmyadmin that is meant to be deleted the table needs optimizing?
|
![]() |
| Tags |
| deleting, record, database |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] display a image record from a database with a set size | longstand | PHP Forum | 8 | Oct 19th, 2007 19:18 |
| Add/Delete/Modify Database Record form | David Blake | Starting Out | 6 | May 1st, 2007 16:22 |
| display first only part of a database record. | Daddyohhh99 | Other Programming Languages | 0 | Feb 3rd, 2006 14:49 |
| newbie simple create database to record web page input | jfb130 | Databases | 3 | Aug 28th, 2005 16:37 |
| display the number of record exist in the database | Monie | Databases | 1 | Aug 24th, 2004 08:10 |