217 Posted Topics

Member Avatar for michael123

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 …

Member Avatar for Troy
0
193
Member Avatar for g0rb4ch3v

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"; } …

Member Avatar for Troy
0
94
Member Avatar for bling

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 …

Member Avatar for Troy
0
237
Member Avatar for michael123

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 …

Member Avatar for michael123
0
100
Member Avatar for kaoru

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 …

Member Avatar for Troy
0
429
Member Avatar for jeepj27

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 …

Member Avatar for Troy
0
150
Member Avatar for balu

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 …

Member Avatar for Troy
0
162
Member Avatar for qazs

"DELETE FROM table1 WHERE $localTime > Time; DELETE FROM table2 WHERE $localTime > Time";

Member Avatar for Troy
0
99
Member Avatar for jenkins_t

I just took a 1 minute look ad dadabik. If you are not a programmer yourself and/or you just want a simple interface--that is your interface and business logic demands are not strict or complex--then dadabik looks excellent.

Member Avatar for Troy
0
528
Member Avatar for fred999

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, …

Member Avatar for Troy
0
1K
Member Avatar for BryanM67

[php] $x = split(",", $a); $fname = trim($x[1]); $lname = trim($x[0]); [/php]

Member Avatar for Troy
0
78
Member Avatar for jonathan2005

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]

Member Avatar for Troy
0
84
Member Avatar for mrChiBai

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 …

Member Avatar for Troy
0
324
Member Avatar for michael123

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. …

Member Avatar for michael123
0
125
Member Avatar for xmeaw

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 …

Member Avatar for xmeaw
0
155
Member Avatar for classifieds100

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 …

Member Avatar for classifieds100
0
271
Member Avatar for aiden

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!

Member Avatar for aiden
0
158

The End.