|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread |
Rating:
|
Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#31
|
|||
|
|||
|
What should I do if I am getting this fatal error:Fatal error: Cannot redeclare <bold>somefunction()</bold> (previously declared in \somewhere\filename.php:line x) in \somewhere\filename.php:line x?
It means you have the same include file in two places. for example let us say you have a file name index.php and in index.php: <php> include("file1.php"); include("file2.php"); </php> and then let us say in file1.php: <php> include("file2.php"); </php> then you will get this fatal error. all you need to do is comment out include file2.php inside file1. |
|
#32
|
||||
|
||||
|
Quote:
Joao Prado Maia posted code on O'Reilly which also accomplishes this task - as this is easily one of the most asked questions, I thought to post a link to his PHP class for this functionality, as an addendum to AlCapone's own code. PHP Pagination Class Its fairly straightforward to implement and highly portable - JPM also allows use of this free of charge.
__________________
Give a person code, and they'll hack for a day; Teach them how to code, and they'll hack forever. Analyze twice; hack once. The world's first existential ITIL question: If a change is released into production without a ticket to track it, was it actually released? About DrGroove: ITIL-Certified IT Process Engineer - Enterprise Application Architect - Freelance IT Journalist - Devshed Moderator - Funk Bassist Extraordinaire |
|
#33
|
|||
|
|||
|
How to Populate a Multiple Select Option Box from the Database
#39 How to Populate a Multiple Select Option Box from the Database
This is an example of how to populate a Multi-Select Option Box from the database. A few times it has been asked in the forum but not been given a complete example. Hope this helps someone. PHP Code:
__________________
visit http://www.techsatcomputers.com |
|
#34
|
||||
|
||||
|
Quote:
I find it very useful to use one for my main output and the other for my debug statments that way I can easily search for debug statements and comment them out or use them. |
|
#35
|
||||
|
||||
|
I find melsana's idea of differentiating between the two for normal/debug output hepful, because I use echo for everything normally and print for all my debug output, so in my IDE, i can just do a search and replace all occurences of "print(" with "//print(" to comment all debug statements. It makes my coding easier to do search-replacing.
Good post. |
|
#36
|
|||
|
|||
|
CHmod in win2k?
Hi, how do i set CHmod (FIle Permissions) on Windows 2000 with APache 2/PHP and mysgl install on my personal webserver as i cant do it from my ftp client as its fro unix only
if i cant do it in windows 2000, i might hav to change my server OS to linuxcheers moe |
|
#37
|
||||
|
||||
|
this is a FAQ, not a thread to ask questions.
but to answer you, you can't chmod files in windows. you don't need to.
__________________
Snippet Library |
|
#38
|
|||
|
|||
|
#40. I put some text into a database, and when I pull it out all the newlines are gone! Ack!
A: No, they aren't. HTML treats newlines as generic whitespace. If you view your source, they're still there. Luckily, PHP provides a handy function, nl2br() that lets you convert newlines to HTML linebreak tags. |
|
#40
|
|||
|
|||
|
#41. How do I make a select list/drop down menu autopopulate depending on the value of another select list? This one must come up three times a day. Here is real code that I have used to great success; this snippet comes from a system that lets students in some of our chemistry courses do their labs via a PHP app. This snippet is from the administrative-side "edit a lab" script. I've tried to remove all custom functions PHP Code:
|