[PHP] copy tables

2003-10-15 Thread Gronquist, Jim M
I've set up dev and prod webservers. Users can go into the dev webserver content and edit it. The content is in a mysql database. I have a button on the webpage that says push content live. When the button is pushed I want it to run a php script that will copy the dev mysql table data into the prod

[PHP] SOLUTION [PHP] including .shtml file within my php script

2003-08-27 Thread Gronquist, Jim M
The solution to using .shtml files from within your PHP scripts is as simple as: include ("somefile.shtml"); Very handy if you have header, sidebar, footer templates setup using SSI. -Jim -Original Message----- From: Gronquist, Jim M Sent: Wednesday, August 27, 2003 11:13 AM

[PHP] including .shtml file within my php script

2003-08-27 Thread Gronquist, Jim M
I have an open source php script to add items to a mysql database. I want to wrap the page using a .shtml file Currently, the .shtml file is: http://bursar.indiana.edu/gotcha/index.shtml The php script is: http://bursar.indiana.edu/gotcha/g_add_gotcha.php I believe that I should be

[PHP] SOLUTION: [PHP] Re: funcky parse error message due to { } or not sure what else might cause

2003-08-14 Thread Gronquist, Jim M
Ugh I replace one double quotes with two single quotes and it works like a charm. Thanks very much! -Original Message- From: Shena Delian O'Brien [mailto:[EMAIL PROTECTED] Sent: Friday, August 08, 2003 4:24 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: funcky parse error message due to {

[PHP] RE: funcky parse error message due to { } or not sure what else might cause

2003-08-09 Thread Gronquist, Jim M
I added one term to a listing - if ( $follow_up == ") { $error=true; } and now I'm getting a parse error Ugh I can't see anything that is causing this. The script worked before. Any idea where I might start to debug? When

RE: [PHP] Re: php path statement appears on my webpages

2003-07-31 Thread Gronquist, Jim M
Ivo, Thanks, but if I leave off this line then I get an error when I try and view my pages. Jim -Original Message- From: Ivo Fokkema [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2003 9:51 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: php path statement appears on my webpages If yo

[PHP] php path statement appears on my webpages

2003-07-31 Thread Gronquist, Jim M
I include #!/usr/local/bin/php4 at the top of my Php files so that it knows where to find php. Unfortunately the path appears in my web pages. Is there a way for me to turn this off? Is it a setting in Apache or is it something that I change in My php files. #!/usr/local/bin/php4 --

[PHP] solution/thanks re: date format

2003-07-30 Thread Gronquist, Jim M
Great! I actually had 2 dates - using your suggestion as follows worked: $mailed=3D$row["mailed"]; $payment=3D$row["payment"]; $ID=3D$row["ID"]; $Timestamp=3Dstrtotime($row[mailed]); $mailedf=3Ddate("F d, Y",$Timestamp); $Timestamp=3Dstrtotime($row[payment]); $paymentf=3Ddate("F d, Y",

[PHP] formating date

2003-07-30 Thread Gronquist, Jim M
My script currently works; printing the date that it extracts from mysql table. It prints the date as: 2004-01-29 $mailed=$row["mailed"]; $payment=$row["payment"]; $ID=$row["ID"]; echo "$mailed$payment"; I'm trying to change the format so that the date appears as: January 29, 20