Jump to content


  • Posts

  • Joined

  • Last visited


Contact Methods

  • Website URL

Profile Information

  • Gender
    Not Telling

frustrated's Achievements


Member (2/5)



  1. I like your idea for the navigation. I think it's original but as far as usability goes I think it's a bad idea. No one want to have to break their neck just to read the navigation. You should make it easy for people to use your site and that makes it very difficult. As far as the layout I mean it's pretty simple and clean..but I like clean. Seriously think about reworking that navigation.
  2. [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] yes you can implement it but its not that pretty [/quote] You're right about that, but I guess if that's the only way then it'll work. Thanks for the feedback.
  3. Hi, I'm not sure if it's called method overloading or property overloading but here's what I want to do. In a language like Java I could do something like the following (I'll use php syntax but let's pretend it's java) [code] class test {   private $id;      public function __construct()    {    }   public function __construct($id)    {       $this->id = $id;    } } [/code] If this were done in Java, when a test object was instantiated, based on if you passed it a parameter or not it would know how to set its self up. If you passed a parameter it would call the second constructor, if not it would call the first. You could do this with any methods...name them the same thing but give them a different amount of parameters, and based on how many parameters you pass the method it will find the appropriate one with the same amout of parameters. I'm trying to figure out if I can do this with PHP, I've been searching but I can't really find anything that makes sense. Could someone unveil this mystery for me please??
  4. Yea you're right about that. I always confuse ASC and DESC. I'm still wondering if there is a better or quicker way to get the last inserted row.
  5. Hello, I'm trying to figure out what is the best or most optimzed way to go about the following situation. All I want to do is retrieve the last row inserted into a table. It happens that one of the fields in my table has a date field, so my plan was to do something like this. [code] $sql = "SELECT id, name, date FROM the_table ORDER BY date ASC LIMIT 1"; [/code] So I think that's pretty self explanatory but I'm sure that's probably not the best way to go about to retrieving the last record. Anyone have any feedback on this topic for me?
  6. Nice, that helps a lot. I read the page you linked to. It would be nice to use that method but I don't think I have enough control over the database to do something like. I have no money and can only afford shared hosting
  7. Ok...I'm trying to insert the time into a database using the mysql NOW() function, but I wanted to offset the time to my actual time zone. For instance, the server the site is hosted on is in California, but I live in New Hampshire. I want the time in the database to reflect New Hampshire time as opposed to California time...it's like a 3 hour difference. My inclination was to do something like this $time_offset = /* Would equal the difference in time */ $sql = "INSERT INTO the_table (the_date) VALUES ((NOW() - $time_offset))"; Am I on the right track or is this not even possible with the NOW() function...or not possible at all? Thanks for any help.
  8. Yea ideally it would be nice if both the sites were hosted on the same server, but these aren't my sites and the owner has each site through a totally different hosting company...why...I don't know. I created a simple shopping cart for this person where they go into an admin area to add products. My hope was that they could go into the admin area through the .com site, add products to a database (either set up in the .com or .net), but then I could pull the products out through both the .com and .net. But...it doesn't look like that is going to be possible with the hosting plans she has. Thanks for all your help...have given me some good reading material.
  9. Thanks, you answered my question...though it wasn't what I wanted to hear. Let me ask you this...are there services out there that offer a mysql databases in this sort of situation...so that you can connect to them from numerous places?
  10. Here's the situation. I have two websites that are basically mirrors of each other. One is a .com and the other .net and each site is hosted through a different hosting company. My plan was to set up a mysql database on the .net site and then connect to this database through both the .com and .net site. So I setup the database on the .net site and then uploaded files to the .com site. I went to the files I uploaded, where a connection to this database was required and it was unable to make the connection even though I know all the connection info was correct. Can hosting companies make it where you can't connect to the database from other hosting companies...is there anyways to override this. Any feedback would be appreciated. Thanks.
  11. PHP 5 Objects, Patterns, and Practice by Matt Zandstra. I like this book.
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.