Current location: Hot Scripts Forums » Programming Languages » PHP » Deleting record from a registeration table in my database


Deleting record from a registeration table in my database

Reply
  #1 (permalink)  
Old 12-03-10, 07:35 AM
bebeinc bebeinc is offline
New Member
 
Join Date: Dec 2010
Location: nigeria
Posts: 2
Thanks: 1
Thanked 0 Times in 0 Posts
Deleting record from a registeration table in my database

please my able coders, am new to this forum and i need help...i want to delete record from register table in my using id. please i need code on deleting from a database. thank you
Reply With Quote
  #2 (permalink)  
Old 12-03-10, 09:49 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
PHP Code:

$userid = (int) $_GET['userid'];
mysql_query("DELETE FROM `users` WHERE `userid` = {$userid}") OR die(mysql_error()); 
... just an example. Post your current code if you need more help. Also, make sure no one unauthorized has access to the deletion page.
Reply With Quote
  #3 (permalink)  
Old 12-07-10, 01:15 AM
luckysophie's Avatar
luckysophie luckysophie is offline
Wannabe Coder
 
Join Date: Nov 2010
Location: London
Posts: 107
Thanks: 1
Thanked 0 Times in 0 Posts
Deleting record from App Designer doesn't drop the table in the database...

This has to be done manually...Also, to find out all such cases you can run
the DDAUDIT report which would show all the differences between PeopleSoft
Metadata and Database Metadata
__________________
My Favorite Tools:
flash banner | logo maker
Reply With Quote
Reply

Bookmarks

Tags
database, php


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML table cell data insert into database conmen80 PHP 2 05-26-09 09:40 PM
MYSQL database countll Database 2 06-19-07 04:20 PM
What do you think of my database structure? Oskare100 Database 5 12-27-06 07:43 AM
Can record arrays on database? mhs12grade1992 PHP 5 02-17-05 11:20 AM
Upload file to table so ONLY files tied to primary key are displayed in record? grafixDummy PHP 4 12-20-03 04:28 PM


All times are GMT -5. The time now is 08:46 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.