Page 1 of 1
error hanlder
Posted: Wed May 18, 2005 4:39 am
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
Posted: Wed May 18, 2005 6:44 am
by John Cartwright
"database abstraction layer" is what you are looking for.
viewtopic.php?t=32905&highlight=databas ... tion+layer
Posted: Wed May 18, 2005 9:53 am
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]