217 Posted Topics
Re: michael123, since nobody has replied, I thought I might just answer to let you know that I struggled with how to run PHP apps with root privs WHEN NEEDED or to run as specific users. I'm trying to recall all the brick walls I ran into, but seems a major … | |
Re: The first thing that came to my mind was a javascript solution, but here is a php solution: [PHP] <?php if (date('Y-m-d',strtotime('6/1/2005')) >= date('Y-m-d',time())) { echo "<br />June 1: Game 1, blah, blah, blah"; } if (date('Y-m-d',strtotime('6/15/2005')) >= date('Y-m-d',time())) { echo "<br />June 15: Game 2, blah, blah, blah"; } … | |
Re: Hey Bling, here is some very simple code that will take whatever form you POST to it, and email the results to you. If you don't know, the lines beginning with # are comments. Modify and uncomment the last line if you want to redirect to a page after the … | |
Re: I assume you already checked to make sure config.php does not actually echo or print anything to the buffer! Look at your closing ?>. Is there a blank line after it? I've seen this cause the problem you describe. Delete anything after the closing tag. Also, if you are using … | |
Re: I noticed nobody has replied. Have you made any progress? I don't have exact information for you, but I'm fairly familiar with phpBB, and am very familiar with data conversion/migration/integration techniques. As for php-nuke, I have no experience with it. It's obviously used by a lot of sites, so it … | |
Re: madmital's post is good except one mistake. [QUOTE=madmital] [CODE]SELECT * FROM table_name WHERE field_name LIKE 'some text'[/CODE] ...will return wors where 'some text' is included in 'field_name' [/QUOTE] Should be [CODE]SELECT * FROM table_name WHERE field_name LIKE '%some text%'[/CODE] Notice the % signs? They act as wildcards meaning anything before … | |
Re: If you want to know AVERAGE per 15 minute period: [code] select count(1)/96 from table1 where trans_dt = '2005-06-09' [/code] 24 hours * 4 15 minute periods per hour = 96 If you actually want to know how many records per each individual 15 minute period, you'll have to run … | |
Re: "DELETE FROM table1 WHERE $localTime > Time; DELETE FROM table2 WHERE $localTime > Time"; | |
Re: First, you said you had the import working, but you ended up with double quotes in your values. You can strip those using code like: [php] $val = str_replace('"', '', $val); [/php] Here is example code that shows you how to connect to a mysql server, select a specific database, … | |
Re: [php] $x = split(",", $a); $fname = trim($x[1]); $lname = trim($x[0]); [/php] | |
Re: I'm not exactly sure what you are asking, but perhaps the curl functions are what you are looking for. [url]http://us2.php.net/manual/en/ref.curl.php[/url] | |
Re: You did not specify which database you are working with. This is important, but I will assume mysql. Here is a code example that will show you how to connect to mysql, how to select a specific database, execute a query, then work with the returned recordset. [php] <?php $server … | |
Re: That's a lot of questions in one. It would be nice to know what you already know. To develop a login script using sessions stored in a database, you'll need to know how to: [list] [*]Program with PHP [*]Connect to a database to insert, update, and select data using PHP. … | |
Re: By breaking it down to individual steps, you'll be able to find exactly which line is failing. That's how you need to approach code troubleshooting--one step at a time. Just looking at your code, I don't notice obvious issues, although I don't know what the parseInt() user-defined function does. It … | |
Re: I'm not 100% clear what you want to do, but if I'm correct, you have a form where user data will be submitted. When it is submitted, you want to do two things with that data. [list=1] [*]Add the info to your autoresponder system [*]Send an email with the data … | |
Re: Thank you for following up. This information helps me. Your follow up post is what many threads are missing--a final solution follow up to help the community of seekers that come after you. Thanks! |
The End.