Jump to content

teamatomic

Members
  • Posts

    1,202
  • Joined

  • Last visited

Everything posted by teamatomic

  1. if you keep you notices in a table then store the ID of closed notices in another table then- when you grab the notices to display use UNIQUE to display only wanted notices HTH Teamatomic
  2. Put the cats into an array then store the array in a session var. Then you can write a function that will build a category list where ever you wish. HTH Teamatomic
  3. You can put the evaluation code at the start of the commit.php page. That way if the data is not valid you can just redirect via a header() back to the form page passing an error message with the url as a get. Pretty simple to do and easy to understand. HTH Teamatomic
  4. Do what it says, put the directive in a php.ini file and see what happens. HTH Teamatomic
  5. Put the user into an array and then use array_rand($array, $number_needed); HTH Teamatomic
  6. From a quick glance at your page source try going from strict to transitional: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> HTH Teamatomic
  7. Put them into a multi array and array_shift and array-push each week. HTH Teamatomic
  8. Why dont you just convert it to inches? then you can compare and when you want to display just divide by 12 and use the modulus. $num=145; $ft=floor($num/12); $inch=$num%12; echo "$ft'$inch\"";//12'1" HTH Teamatomic
  9. put the data into a session var and use it from there. HTH Teamatomic
  10. When a user logs in you usually do something like set their username or similar in a session var. Just check if that var isset and if it is show the image. HTH Teamatomic
  11. Try: header("Location: index.php?$gets&phpsession=$phpsession"); HTH Teamatomic
  12. Say you have a link for cakes. change it to use http://domian.com/cakes.php?landing=cakes then where the code you want to change is do this: $landing=$_GET['landing']; if($landing != '') { include("/path/to/landing/templates/$landing.php"); } else { include("/path/to/landing/templates/$default.php"); } [code] HTH Teamatomic
  13. If you dont want a password to be used then use a anonymous FTP and all you need to pass is any old email address. If that is not acceptable then you will want to figure out a way without using FTP. HTH Teamatomic
  14. <meta http-equiv="refresh" content="time_in_seconds"> HTH Teamatomic
  15. Round will round up or down depending on the decimal. If you want 100% you can fudge it and if its 99 add 1 to the lowest, if its 101 subtract 1 from the highest. HTH Teamatomic
  16. If you want it I have a set of folders for the states with folders for all cities that has an info.txt file with county|lat|long|zip I use for 7 day forecasts(which require lat|long as per the NWS soap server). HTH Teamatomic
  17. thats here, google_weather_api.php HTH Teamatomic
  18. $name = $product->software->name; $description = $product->software->short_description; $software_id = $product->software->attributes()->id; HTH Teamatomic
  19. Check if the Bday is past, if it is increase the year by 1 or you could take the -days and subtract it from 365. HTH Teamatomic
  20. Get rid of the line breaks in the display function and use no-break-spaces for spacing or put it in a table and use padding. HTH Teamatomic
  21. geoip, the lite version is free HTH Teamatomic
  22. Then if you have added thesite.com via the cpanel at mysite.com for remote access you should use mysite.com as the replacement to localhost in the code on thesite.com. HTH Teamatomic
  23. Then the first thing to do is us basename on each string to get usernamexxx.jpg. Then use str_replace to change the username to nothing so you get xxx.jpg. Then explode on the dot so you get xxx and subtract 1 from it. HTH Teamatomic
  24. You explanation is still not really clear but...this is what I might do. work the username to see if it fits what I need then use str_replace to replace the username with nothing in the string I want to use. Make sense? HTH Teamatomic
×
×
  • 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.