Jump to content

ohdang888

Members
  • Posts

    1,285
  • Joined

  • Last visited

    Never

Contact Methods

  • Website URL
    http://apps.facebok.com/profile-links

Profile Information

  • Gender
    Male

ohdang888's Achievements

Advanced Member

Advanced Member (4/5)

0

Reputation

  1. Ya, that seems to be straightforward. When you transfer files back to live, do you use rsync?
  2. Hey guys, I've got my first beta testers on board, and now I need to setup a development environment as I can clearly no longer develop on the live site. What do you find is the best way to do this? currently I have my public_html directory structured like this: public_html/ site/ app/ api/ Would be it best to just create a beta_site/ folder, and beta_app/ folders, and then when those are ready, just transfer the files over? How do you setup your development environments and methods? Thanks!
  3. Is it a normal or standard practice to set an object var to a MySQL wrapper i.e. $api = new API(); $api->db = new MySQLwrapper(); and in the api methods, they call things like $this->db->query("blah blah blah"); Or should the API class inherit from the MySQLwrapper? Thanks
  4. hm. Well it can be done with another query but thats inefficient. try copying that $result2 into another variable, like $result2copy and use $result2copy in the 2nd loop
  5. 1) We can't see line numbers, be more specific 2) "how to syntax" - say what? your example could simply end the PHP and begin it again ?> <div class="navigation"> <ul> <li><a href="test.php"<?php if($pageOn == 'test.php'){?> id="selected"<?php }?>>home</a></li> <li><a href="book.php"<?php if($pageOn == 'book.php'){?> id="selected"<?php }?>>books</a></li> <li><a href="movie.php"<?php if($pageOn == 'movie.php'){?> id="selected"<?php }?>>movies</a></li> <li><a href="contact.php"<?php if($pageOn == 'contact.php'){?> id="selected"<?php }?>>contact</a></li> </ul> </div> <?php
  6. well, first thoughts: this should be throwing an error: echo $email'; Remove the '
  7. Check it out at http://www.crambu.com/index.php I changed the homepage. Basically my question is this: Do you understand what Crambu is after landing on the homepage? Thanks!
  8. try <?php if (!isset($error)) //if no errors add to DB { mysql_query("INSERT INTO Reg_Profile_Private (UIN, firstname, lastname, email, phone, password, username) VALUES ('$uin', '$firstname', '$lastname', '$email', '$phone', '$passwordenc', '$username')"); } else { //else print errors foreach($error as $key => $myvar) {print "$myvar </p>\n"; } } ?>
  9. well this: " SELECT userid FROM ads WHERE adid='$this_adid' " will ALWAYS be translated as this: "SELECT userid FROM ads WHERE adid='' " because its nested within an empty caluse. Are there any records that have NOTHING in adid column? you should always try print_r on the results
  10. Ya i used date_default_timezone_set("America/New_York"); before anything. And that's what I'm getting. I'm assuming I needed to set it to EST because the time is in EST and i want it to match
  11. Thanks! knew it should that simple. BUT from that exact string i'm getting this time: using Sun Nov 06 2011 09:30:00 GMT-0500 (EST) getting 2011-11-06 4:30:00 using <?php echo date('Y-m-d G:i:s', strtotime(url_decode($_GET["start"]))); ?> I changed the timezone to EST, and its still coming up with the same thing. I've tried messing around with it, but not getting it to work. How do i adust for this difference? thanks
  12. I'm given something like this: Sun Nov 06 2011 09:30:00 GMT-0500 (EST) And i'm trying to turn that into 2011-11-06 09:30:00 I started by using explode and trying to loop through the day and month to figure it out, but that seems inefficient and overly complicated. Am i missing something? Thanks
  13. Google Spreadsheets/Forms always work fine with me.
  14. Hey guys, random question: Does anyone have knowledge of pulling data from the view of an image? For example, I have an image of a map that I'm putting on GoogleMapsApi. Instead of the user drawing a bunch of polygons, I'd like to be able to know where the lines in the image are, and i'd automatically trace the polygon. It'd be a simple black and white image [white background, a few black lines]. Anyone know a solution or method for this? Thanks.
×
×
  • 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.