error hanlder

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
MBDesktop
Forum Newbie
Posts: 3
Joined: Fri May 13, 2005 3:51 am
Contact:

error hanlder

Post by MBDesktop »

Ermm..hello guys..just want to know how can i create a funtion for error handler..the function should have a variables that i can save into database with different tables..guide me, thanks
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

"database abstraction layer" is what you are looking for.

:arrow: viewtopic.php?t=32905&highlight=databas ... tion+layer
MBDesktop
Forum Newbie
Posts: 3
Joined: Fri May 13, 2005 3:51 am
Contact:

Post by MBDesktop »

thanks for your reply..after i gone thru the database abstraction layer, i think it's almost what i need, but i totally new in php.. before this i used asp.net and vb to develop error handler and its makes me confuse a lot with php..maybe its funny for experience programmer..but i still need a guider for this..

ermmm..i want to ask you something.. let say i have 4 tables in one database, each table has field name CODE that represent auto increment integer.

Example.

Tables Message_Title.

Code | Display_text
1 | Delete Password


Tables Feedback_Message

Code | Message
1 | Are you Sure want to delete it.

Tables ICON

Code | Icon_Image
1 | Delete.jpg

Tables Action_Button

Code | Button
1 | Yes



Okay...is it possible if i create a function that calls a Display_Text, MESSAGE, Icon_Image and button by refering to the code field in each table.

seriously i haven't experience in php function at all.. please assist me..

thanks in advance.

[/u]
Post Reply