Jump to content

Stooney

Members
  • Posts

    1,093
  • Joined

  • Last visited

Everything posted by Stooney

  1. It's really all personal preference, but I would recommend a nice tempered glass desk. Easier to clean and last longer than cheap particle board desks. Make sure you have space for multiple screens.
  2. That's fantastic. I'm surprised I didn't find this via Google last night. Thank You. One last hurdle now, any suggestions on how would go about determining where to insert page breaks dynamically? Like is there a way to measure how much of a page X text with take up so I can insert the page break in the middle of a paragraph if necessary to leave room for the footer? This might be more of a javascript question though.
  3. Say I need to print a 5 page document. The data on the document is dynamic (entered by a user) and will vary in size. At the bottom of every page, there needs to be a footer. How would I put all this together to where the data is cut off near the bottom of every page for a footer, and then continued onto a next page? paragraph 1.............. ................................... ................................... Page 1 paragraph 2................ ................................... ................................... ---Footer-- ___________________________________ paragraph 2 continued... .................................. Page 2 paragraph 3............... .................................. --Footer-- ___________________________________
  4. notepad++ does this. You can choose vertical or horizontal, and have multiple tabs (files) open in each window, as well as the ability to save the whole deal as a session for later.
  5. I'd imagine being in the business of knowing which markets are about to boom would be quite lucrative.
  6. maybe http://code.google.com/speed/webp/
  7. some other ideas <?php if(!in_array(intval($news['accounttyperaw']), array(0, 1))){ //does not equal 0 or 1 } or <?php if(intval($news['accounttyperaw'])>1){ //Does not equal 0 or 1 }
  8. I think you'll need to post some code so we know more what your talking about. The error message is telling you that your trying to call a member function on a non-object variable. I'm not sure what this has to do with an iframe though.
  9. Read up on SQL Table Joins. This example isn't really a join, but may help you out for using multiple tables in a query. Note that the code isn't very meaningful, it's just to show the syntax. $result=mysql_query("SELECT table1.field_a, table2.field_c FROM sometable as table1, anothertable as table2 WHERE table1.field_b='$search_keyword' OR table2.field_c='$search_keyword'");
  10. I've got a decently large web app which works great in both Firefox and Chrome. Note: All of the javascript files depend on JQuery. Long story short: the index template file is loaded, filled with content, then output to the browser. There are multiple javascript files to load at this point. The include for the jquery file is in the header, and variably throughout the site other javascript files are included as needed. With IE, sometimes some javascript files get loaded it seems before the actual jquery file, causing errors like 'Object expected' at line 1 char 1, therefore breaking all of the javascript on the page. The only way around this is to keep refreshing the page until things load properly, at which point everything is fine. Is there a trick to get IE to load javascript files in a specific order? Or what am I missing?
  11. If you're going to be adding more cities in the future, it would probably be best to store all of this data in a database. Then you just use a simple query to determine the city size, and can have a quick little admin UI to add/edit cities in the list.
  12. The issue is here return Web Airlines; You need to return a variable. Try this instead: return 'Web Airlines'; The same goes for every return you have there, surround the string with quotes as I did above.
  13. $result=mysql_query("SELECT some_field FROM some_table WHERE date='".date('Y-m-d')."'"); If you are wanting to store a new value which includes the current date, you would use NOW()
  14. The following code works fine when using chrome or firefox, but fails with IE. Error: Requested site is either unavailable or cannot be found. Question: Does anyone see anything here that is a known bug with IE that I don't know about? public function download(){ if($this->validateFile()){ if(!headers_sent()){ header('Content-type: '.$this->getType()); header('Content-Disposition: attachment; filename="'.$this->name.'"'); readfile($this->file); } else{ echo 'Headers have already been sent and are preventing the file download from taking place.'; } return true; } return false; } //I felt this function might be relevant to the issue. I know, it's kind of a ghetto function, I'll improve on it some other time though. private function getType(){ $types=array( 'txt' => 'text/plain', 'mp3' => 'audio/x-mp3', 'jpg' => 'image/jpeg', 'jpeg' => 'image/jpeg', 'gif' => 'image/gif', 'png' => 'image/png', 'doc' => 'application/msword', 'swf' => 'application/x-shockwave-flash', 'flv' => 'video/flv', 'mpg' => 'video/mpeg', 'mpeg' => 'video/mpeg', 'avi' => 'video/x-msvideo', 'rtf' => 'application/rtf', 'pdf' => 'application/pdf', 'zip' => 'application/zip', 'exe' => 'application/octet-stream', 'xls' => 'application/msexcel', 'xlsxl' => 'application/msexcel'); if(!$types[$this->getExt()]==''){ return $types[$this->getExt()]; } return 'application/octet-stream'; }
  15. Use Sugarsync. It will not only back up everything online but it will also sync those same files to your server. All you do is install the client on each computer, choose what folders you want backed up/sync'd and it automatically does everything as the files get changed/added. I've been using it for over a year, there's only been one time where downtime affected me.
  16. Get laid (seriously). Women can be quite motivating in life. Also, take your laptop out somewhere public and work there (Starbucks or any other cafe with internet). As for the Starcraft addiction, that's fine. Not everyone has a hobby they truly enjoy and can spend hours doing.
  17. Try changing $szSort = "user_nicename"; to $szSort=user_nicename; This is just a guess as I don't know enough about the rest of the code. All I'm doing is using a constant here (assuming it exists, you'll know) Use this to shower 'player name:' <?php echo '<li>Player Name: ' . $user->player_name . '</li>';
  18. You need to use strlen() on the result. $data=mysql_fetch_assoc($usercheck); if(strlen($data['pet'])==0){ //Pet field is empty } else{ //Pet field not empty echo 'There was ' . $returned_rows . ' records found.'; }
  19. Let's say you're viewing an entire month. You can pull everything you need from the database in 1 query: <?php //Assuming September of 2010 SELECT * FROM table WHERE date='2010-09-%' That will give you everything for the month. Then just use php to sort through it and display it.
  20. Are you positive that the data isn't lost before the sql query? Also, did you accidentally set up the email field as unique?
  21. As random as your post is, I'm in the process of restoring my 1980 Corvette.
×
×
  • 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.