What is wrong with this code? class Pg_Error { private static $errors = array(INTEGRITY_CONST_UNIQUE => 'uniqueness constraint violated'); .... public static function getMessage($ec) { $text = ''; if (array_key_exists($ec, Pg_Error::$errors)) { $text = Pg_Error::$errors[$ec]; ... 28 Apr 2010 09:29
auto indentation Hi everyone. I got a quickie LOL is there a way to auto indent code. I'm using Kate and I have it set so the tab is only 4 spaces, but I was wondering if there was an easier way than to have to hit the tab key 1x then 2x then 3x then 2x then 1x to create nice laid out code like this: ----- ----- ---... 28 Apr 2010 10:37
finding out datasets in a certain distance of a zip code Hi there, I am trying to find mysql db entries inside a tabel with the help of php that are in the distance of a certain amount of kilometers from a given zip code. Unfortunatelly something must be wrong, as I do not get the desired results. Has anybody experience with that? Here is the code I wrote: ... 27 Apr 2010 12:13
Weird while issue Hi guys, I have some issues with while. I have an HTML Form, that uses GET to process its contents. Then there's a PHP Script that receives the data, and evaluates the fields. So, in some instance of the code, I do something like : if (empty($a) AND empty($b)) { echo "something"; echo "something"; echo ... 27 Apr 2010 09:55
special character problem hello friends, I have used preg_replace('/[^0-9a-zð\~\!\@\$\%\^\*\(\)\;\,\.\'\/\_]/i', ' ',$match); for remove the special characters. its work fine. but the problem I want to remove special characters from this kind of sentence /// #: "'''''Amor''' é fogo que arde sem se ver,'' #: ''é ferid... 27 Apr 2010 07:40
Error handling strategies (db related) How do you guys handle errors during, say, db insertions. Let's say you have an ongoing transaction which fails on the n-th insert. Ok, you roll back the transaction, no problem. How do you then inform the user? Just using the text from pg_result_error or something? ... 28 Apr 2010 09:29
Contact form.... Hey guys, so ive coded a sucessfull contact form before, but for some reason this bit of code is giving me the run-arroundl.... so my HTML end is: <form action="send.php" method="post" enctype="multipart/form-data"> <table border="0" cellspacing="2" cellpadding="0"> <tr><t... 26 Apr 2010 19:31
Admin Panel Ebook Hello Guys, I've bought a couple ebooks, especially from orielly, on PHP development and they are mostly dealing with front end stuff about user interface and PHP development. Could anyone refer me an ebook on back end programming ie Admin Panel development in PHP especially for social websites hence it should i... 26 Apr 2010 16:06
php quiz script/tutorial I'm considering my options for making quizzes mostly multiple choice type of thing, but also 'filling in the gaps'. This is in support of educational materials I'm working on. So far I've looked at Flash and javascript but have concerns about accessibility for both of these. Does anyone have any experience of wri... 27 Apr 2010 15:40
LDAP import a csv file from php Hallo there everyone.. first thing first i would like to thank everyone for the help that this mailing list has provided me throughout my project.. i have found many answers and got me out of black point many times!!! now i am on my last step on my project and i would like to see if there are any ideas on how t... 27 Apr 2010 03:15 |