[PHP] Searching with Date Ranges

2003-09-11 Thread Seth Willits
If I want to show events (records in a MySQL table) for the next 10 days (and I do), what would be the best approach to searching with this range? (The dates in my table are stored as a string in the format /MM/DD.) Seth Willits

Re: [PHP] Date Confusion

2003-09-07 Thread Seth Willits
On Sunday, September 7, 2003, at 02:50 PM, Seth Willits wrote: A few things I'm trying to do: 1) Turn "MM/DD/YY" into an array like that returned from getdate(). I don't want to explode it or split it, I want to get an array just as if I used getdate() when the current

[PHP] Date Confusion

2003-09-07 Thread Seth Willits
27;m supposed to do those, then the rest I will understand. Thanks, Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for REALbasic Developer Magazine - h

[PHP] PDF Fonts

2003-09-07 Thread Seth Willits
;", then it reports "PDFlib error [2516] PDF_findfont: Metrics data for font 'Times New Roman' not found" on line 2 also. finished"; ?> Thanks, Seth Willits --- President and Head De

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
all up. Thanks. Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for REALbasic Developer Magazine - http://www.rbdeveloper.com Webmaster for REALbasic Game Central -

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:06 AM, Seth Willits wrote: Lots of Awesome. Thanks for the quick reply. Hmm.. Actually, how does this work with php & html? This is actually what I'm trying to do. I should have said this in the first place

Re: [PHP] Block HTML Control

2003-09-02 Thread Seth Willits
On Tuesday, September 2, 2003, at 12:03 AM, Jason Wong wrote: Lots of Awesome. Thanks for the quick reply. Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist

[PHP] Block HTML Control

2003-09-02 Thread Seth Willits
'; } else { print ' '; } This works, but it destroys the syntax coloring of the html making it all one solid color. I'd love to know if there's a better way OTHER than inclu

Re: [PHP] Can't Make Directories Now

2003-09-01 Thread Seth Willits
t isn't creating it. I already did that and like I said, it's always the correct path. Look at the very first line of the code above which was in the original path. Thanks for the tip on is_dir. Actually -- using is_dir made

Re: [PHP] Can't Make Directories Now

2003-09-01 Thread Seth Willits
x27;; A print("false $buildingPath") might yield as to why it isn't creating it. I already did that and like I said, it's always the correct path. Look at the very first line of the code above which was in the original path. Tha

[PHP] Can't Make Directories Now

2003-09-01 Thread Seth Willits
s prints false signaling that mkdir has failed. This is the last remaining issue on getting my site finished. Well except for uploading, but I don't need that just yet. Seth Willits --- President and Head Dev

Re: [PHP] Can't Connect Within Function?!

2003-09-01 Thread Seth Willits
On Monday, September 1, 2003, at 11:33 AM, Mike Morton wrote: You need to read up on the scope of variables within functions. Ohh, I didn't even think of that. Thanks. Seth Willits --- President and Head Develop

Re: [PHP] Display one element at a time

2003-09-01 Thread Seth Willits
latter, the "different" page would also have to add the answer to the record. Hope this helps, Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnis

[PHP] Can't Connect Within Function?!

2003-09-01 Thread Seth Willits
== '') { // Connecting, selecting database $link = mysql_connect($shs_MySQLServer, $shs_MySQLUser, $shs_MySQLPassword) or die("MySQL Connect Error : " . mysql_error()); etc } } Seth Willits --- P

Re: [PHP] Re: Simple File Error

2003-09-01 Thread Seth Willits
directory to the user www, and or the group (www i suppose) With some help from a friend, I chmod'ed my site folder and it all works well now. Thanks, Seth Willits --- President and Head Developer of Freak Software -

Re: [PHP] Re: Simple File Error

2003-08-31 Thread Seth Willits
r the user 'www' and one other that is under 'root'. Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for REALbasic Developer Magazine - http://

[PHP] Simple File Error

2003-08-31 Thread Seth Willits
$g_ih); imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0, $g_iw, $g_ih, $g_is[0], $g_is[1]); imagejpeg($img_dst, $g_dstfile, $g_imgcomp); imagedestroy($img_dst); } else return false; } Seth Willits ---

[PHP] Error Log

2003-08-31 Thread Seth Willits
This may be obvious, but I even looked in a few books and didn't see it, but where are PHP errors logged? No errors ever appear on the page yet the online documentation refers to error messages and such, so I'm assuming there must be some log somewhere. Thanks, Se

Re: [PHP] Re: Error Log

2003-08-31 Thread Seth Willits
drive and it's not there. I'm running on OS X and am using the built-in Apache web server. Crazy... Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist

[PHP] Session Timeout

2003-08-30 Thread Seth Willits
user to be required to log in if they've been inactive for 10 minutes, or if they closed the browser window and opened another one. Sorry for all the basic questions :) Seth Willits --- President and Head Develope

Re: [PHP] Session Issue

2003-08-30 Thread Seth Willits
On Friday, August 29, 2003, at 07:44 PM, Curt Zirzow wrote: Does the next page call session_start()? all pages that use $_SESSION, must call that first. Ohhh... ok. Thanks :) Seth Willits --- President and Head

[PHP] Session Issue

2003-08-30 Thread Seth Willits
> And later in the same page, I include another file which has the links to the pages within the secured section of the site: From there, when I go to another page, that same line of doesn't work, as the links are not shown. Any idea

[PHP] Approaches to Logging In

2003-08-29 Thread Seth Willits
n, you can't see this page." Are sessions the way to go? Seth Willits --- President and Head Developer of Freak Software - http://www.freaksw.com Q&A Columnist for REALbasic Developer Magazine - http:/

Re: [PHP] Form Parameters

2003-08-29 Thread Seth Willits
alized that the names are case sensitive, so $_POST['username'] and $_POST['Username'] are completely different. Thanks, Seth Willits --- President and Head Developer of Freak Software - http://www.frea

[PHP] Form Parameters

2003-08-29 Thread Seth Willits
This might be staring straight at me, but I can't seem to figure out how to reference form parameters in php code. For example: Thanks, Seth Willits --- President and Head Developer of Freak Software -

[PHP] Absolute URLs with Require & Include

2003-08-29 Thread Seth Willits
Is there anyway to get an absolute URL to work with Require & Include? Why doesn't it work already? I did see the tip about using $_SERVER, but this slows down page-loading considerably. Seth Willits --- Pres