[PHP] Counting Occurrences within an If statement

2008-07-20 Thread Mark Bomgardner
I have been working on the something for the last day and can't figure it out. I am pulling 7500 rows from a MySQL database, but I only want to display a certain numbers of rows based up an if statement. I want to count the rows within the if statement. mysql query result if(x < y){ d

[PHP] Log files

2008-07-02 Thread Mark Bomgardner
I am writing an application in which I want to create log files. I am weighing the difference between using text files and using a database to house the data. It appears to me that there is really no advantage either way or is there? There are pros and cons to both methods, but I am concerned ab

[PHP] String to date

2008-06-30 Thread Mark Bomgardner
I need to convert a date retrieved from user input to a mysql date. Here the problem, I need to convert one of three possible combinations, either 01/01/2008,01-01-2008 or 01.01.2008. I can't use explode because it's limited to one character to explode on. I would prefer not to use regexp, but t

[PHP] Two word array Value

2008-05-14 Thread Mark Bomgardner
I am trying to use array's to populate a group of check boxes for a form. I am getting the checkboxes to print OK, but when the form is posted I am only getting part of the array. Form Page: $vars = array("Main Classroom" => "Main Classroom", "Break Out Classroom" => "Break Out Classroom",

Re: [PHP] webserver for mac

2003-08-26 Thread Mark Bomgardner
[PHP] webserver for macIf your company is using MAC OS X, apache is the built in webserver. If they are using less than that, apache is not going to work. I would suggest that you have your client use OS X. You can use the single user version if you are going to host just one site, if it's go