Thanks for the insight. I have not used classes yet. I will take your advice and research it. I'll eventually redo my CMS since I've learned so much since I started it. And using classes seems...
Type: Posts; User: chris.cavage
Thanks for the insight. I have not used classes yet. I will take your advice and research it. I'll eventually redo my CMS since I've learned so much since I started it. And using classes seems...
Well, that was easy!
Thanks a ton.
I found a function that will find how long ago a date occurred:
function get_time_ago($time_stamp)
{
$time_difference = strtotime("now") - $time_stamp;
if ($time_difference >= 60...
On my login page now, when a user logins, multiple session variables are created for: user_id, default_location, default_provider. This information is used to auto complete forms and for queries on...
Thank you for the responses... I'll get to work on this.
I created a CMS using PHP/mySQL.
My login page is a simple form: username and password.
If a user is not logged in and tries to visit an admin page, then he/she is automatically directed to the...
I bought the new macbook pro retina, 15 inch, 16 gm ram, 256 hdd. Also bought 2TB time capsule... LOVE IT.
Good advice all around. Thanks.
I was thinking of getting a good NAS drive to use as external storage instead of upgrading to 512 gb SSD (that is, if I ever need more storage). Do you use one?...
I wanted to revive this thread. I never got a new laptop.
However, I am on the verge of buying the newest Macbook Pro w/ Retina display.
The one I am thinking of getting is this one:
...
Thank you so so much. tr333, that solved my problem. I owe you.
I will read more about your suggestions also.
I love playing guitar.
One of my biggest regrets in life was stopping my guitar lessons when I was around the age of 9. I had a great teacher who showed me amazing things. He left and was...
I used php to create a CMS.
I made an autosuggest text box that queries my db using ajax. The autosuggestions have been popping up perfectly for almost a year. And then suddenly something...
Thank you very much for that link. I couldn't find anything like that. It helped solve my problem.
I'm trying to move a file to my server and restrict/remove apostrophes from it.
Here's what I have now:
move_uploaded_file(str_replace("'", "", $_FILES["File"]["tmp_name"]),...
*phew*
Glad to hear.
Thanks penagate!!!!!
Thanks penagate. I was researching arrays and the implode function prior to posting this.
I didn't know you could implode an array by "\r\n". That solved my problem nicely.
I query my db...
I am using Zend mail to send an email to people on their birthdays.
On my php page, I query my mySQL database and form an array of information:
mysql_select_db($database_connect,...
Thanks. I did reference the script and used it, but for some reason I got the same issue. I can also use your suggested code above - as I see that works just fine. Thanks a lot!
Thank you for taking the time to respond. I was messing around with that library. I like it a lot.
It was giving me the same problem though.
I figured out how to solve it actually...
Hello!
Here's the code I am using to add 6 months to today's current date.
It uses jQuery also. When the "6months" checkbox is checked, I want to have 6 months added to the current date and...
A-ha! I figured it out!
Should end like this:
if (isset($_SESSION['PrevUrl']) && true) {
$MM_redirectLoginSuccess = $_SESSION['PrevUrl'];
}
Thanks FunkyDexter!!
Using php/mysql.
I have a form to submit info to a table.
On the form I have a multiselect list box. Is it better to store a comma delimited string to one single field in the table once the...
Using php/mysql.
Based on access levels, if someone tries to get to an admin page (if they are not logged in) then the user is directed to admin.php
The URL of admin.php has a URL variable...
Using php/mysql
This is tricky! I am setting up a CRON job to run a php file daily.
I have a record for customer information. The contacts table has the info for them with fields like:
...
Lenovo, eh? I heard good things about them.
Thanks.
I will check into the Mac Pros for now.
I am wondering if a mac is worth it.... do they last longer? Easier to use? Hmm...
Oh, ok.
*ten minutes later...*
Wow, quad core with 8gb for around $2000!
Rhino, did you buy the best mac pro they have and then added more ram?
Thanks for the advice.
Glad to hear others have the mac pro and it's recommended.
I liked the portability of the air, that's the main reason I wanted it.
I read that just maybe in a few...
I have been using a Dell Inspiron 14" 640m for over 5 years. Runs Windows Vista.
I have been thinking of replacing it.
I spend most of my time doing php development using Dreamweaver. I also...
Ok, I adjusted the .htaccess file to disable it.
I see!
How do you turn off directory indexing so a list of all the files in a folder will not appear? I like that idea. Any downside to that? I think I could definitely do that instead.
Even though no one else should guess it, could someone find the file in my public directory anyway and open the page, thus running the query?
I didn't know crawlers won't go to it if it isn't...
I didn't know that. Thanks. I'll make the changes.
I created a CRON job that runs a .php page every day.
The php page queries a mysql db to find all appointments from yesterday and then sends them a thank you email.
It works just fine.
I was...
penagate, I see what I did there. No sure why I did that. I made the necessary changes.
Feras - yes! I can't believe I did that too!!! That was a homerun for me, making that change.
In...
Using php/mysql.
I had this form working just fine and something happened!
It's a simple upload file and information form to my db.
The user can add upload a file to his directory (directory...
Thanks for the advice. I got this sorted now.
Users can delete the records if they are not tied to anything else. Otherwise, they can make them inactive.
Thanks!
Ok. I am going to allow them to delete if nothing is tied to it. Otherwise they could only disable the categories.
I have a ton of work to do on that - I have multiple administration options...