Jump to content

taith

Members
  • Posts

    1,514
  • Joined

  • Last visited

Everything posted by taith

  1. agreed... parsing does take some time(usually low, but it really depends on the programmer/ing)... if lots of people are trying to get to the same page at the same time... it can/will slow data transfer down a bit... but regardless... that still doesnt affect your max bandwidth :-)
  2. bandwidth is measured sending information from your server, to the client... not the parsing that the server does as far as a transmitted page thats 2kb big... sallgood
  3. no problemo! i guess i'll excuse it then... seriousally tho... ajax would prolly be your best bet
  4. agreed... you strtotime() today's date... aka "now" which gives you the unix timestamp, then mktime() it +1 month :-) then date() it back to readable time :-)
  5. i've said this time and time again... NO! php is server sided! it has nothing to do with the browser... now... if you use ajax/javascript, they are client side... to technically... yes you can... but not with php files directly. woah... that was wierd... posted in php, then moved to javascript while i was typing... lol
  6. $file=file_get_contents('yourhtmlfile.html'); #get the contets of the html file $file=str_replace(" ", "^", $file); #to take care of the " "(2) in the file... while ignoring the " "(1) while(strpos($file,'^^')) $file=str_replace("^^", "^", $file); #to cleanup the ^^ --> ^ $content=explode('^',$file); echo $content[1];
  7. true... but you can still do an if(empty($result[])) break; so if it reaches an empty file, it cuts the while() off...
  8. also... you closed your select tags in there...
  9. from the error... theres a few possibilities from whats going wrong here 1) incorrect username/password/database 2) oracle isnt set up correctly/completly/properly ... thats all of the reasons i can think of currently...
  10. not sure about your class there but it "should" run as long as it finds rows from the database... i know mysql_fetch_array/assoc() work that way...
  11. agreed... indefinate break; dependant loops are a icky at best idea... besides... whynot simplify that? $sql="SELECT item_id FROM phpbb_lms_items ORDER BY `id`"; while($result = $db->sql_query($sql)){ $i++; if (!$db->sql_fetchrow($result)){ $sql = "INSERT INTO phpbb_lms_items (item_id, ...) VALUES ('". $i ."', ...")"; if(!$db->sql_query($sql)){ message_die(GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql); } } }
  12. do yourself a favor... start... once you start, you can always add to it later(autoreply, shiny stuffs, etc)
  13. paypal is a GREAT tool for payments... low charges, easy to setup, accepts everything... credit, debit(through a paypal account)
  14. personally... i prefer the oldschool notepad... but as said... its really 100% down to personal preference...
  15. might be a stupid question... but do you have the greek language file installed into your computer?
  16. i'm just going to not that if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } does squat... as the querys are already ran, and $sql is empty...
  17. more then likely... you have an indefinate loop... it goes and goes and goes intill it goe kapoot...
  18. lol... no prob... functions make the world go round ;-)
  19. echo '<select>'; $query=mysql_query("SELECT * FROM `brands` ORDER BY `brand`"); while($row=mysql_fetch_assoc($query)){ echo '<option>'.$row[brand].'</option>'; } echo '</select>';
  20. wow... um... "); } } } ?> that makes no sense... a) you cant loop inside of a variable, b) prolly just cut that off
×
×
  • 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.