Jump to content

MadTechie

Staff Alumni
  • Posts

    9,409
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by MadTechie

  1. check your script for a extra } EDIT: also surely you mean (will also cause the problem) ($id == $Area_01){$id = $Area_02;} not ($id == $Area_01){$id == $Area_02} on every if
  2. check the manual
  3. Variable variable see manual
  4. ok that seams fine.. must be the target.. add error_reporting(E_ALL); at the top of the script and see if you get a better error ? other things to check. 1. the target exists 2. the target had write access.
  5. Maybe this will help (untested) <script language="javascript"> function TheDay() { Stamp = new Date(); document.write('' + (Stamp.getMonth() + 1) +"/"+Stamp.getDate()+ "/"+Stamp.getYear() + ' <br> '); var Hours; var Mins; var Time; Hours = Stamp.getHours(); if (Hours >= 12) { Time = " P.M."; } else { Time = " A.M."; } if (Hours > 12) { Hours -= 12; } if (Hours == 0) { Hours = 12; } Mins = Stamp.getMinutes(); if (Mins < 10) { Mins = "0" + Mins; } document.getElementById('timer').innerHTML = '<B>Todays Time:</b> ' + Hours + ":" + Mins + Time + ''; } </SCRIPT> <body onload="setInterval('TheDay();', 1000);"> <div id="timer"> </div> </body>
  6. Use AJAX, Frames, javascript.. nothing thats PHP based really..
  7. try this $newsql = preg_replace('/^AND|AND$/si', '', $oldqry); EDIT: Opps Ltrim version $newsql = preg_replace('/^AND/si', '', $oldqry); Rtrim version $newsql = preg_replace('/AND$/si', '', $oldqry);
  8. do a print_r($_FILES); just before the line echo "There was an error uploading the file, please try again!"; whats the error number ?
  9. maybe change to perm_inven_import[$UserID] in the check boxes
  10. do a print_r($remote_addr), so check the array, it should reveal the problem
  11. if (!preg_match('/\s/', $string)) { # No Space } else { # Has a Space }
  12. or an ActiveX, or a BHO.. which can't be written in PHP..
  13. this is a html/css issule not php...
  14. in that case your not inserting the correct time ?? not helpful, try fixing it
  15. this may help a simple post that uses multiple file upload http://www.phpfreaks.com/forums/index.php/topic,156653.msg681151.html#msg681151
  16. try this $string= preg_replace('/\r\n|\r|\n/', '<br>', $string);
  17. more detail in $_FILES['imagefile'] do a print_r($_FILES); see Chapter 38. Handling file uploads
  18. NO NO By default, MySQL searches are not case sensitive , so $sql = "SELECT * FROM member WHERE name='Test' $sql = "SELECT * FROM member WHERE name='test' $sql = "SELECT * FROM member WHERE name='TEST' will all find the same thing EDIT: worst case, $sql = "SELECT * FROM member WHERE LCASE(name)=LCASE('tEst')
  19. read the pinned post about headers
  20. Humm, if you goto Options -> contents -> filetype (Manage button) i think that controls the mime
  21. try this Project menuitem -> Properties -> Java Build Path menuitem -> Source Path tab > Default Output Folder at the bottom -> Choose, and choose the folder you want to use PS wrong forum
  22. you from the UK as well (being 3:20am too)
  23. humm, the code looks ok, so unless the DB is wrong i can' think why your having problems as for the addslahes i personal encode the data first.. are the sizes etc being stored correctly ? also i assume the file is under 16mb and the contents is a "MEDIUMBLOB"
  24. quick note add imagedestroy($image); to the end, to release the memory (don't want memory leakage)
  25. if (move_uploaded_file($file_tmp,$upload_dir.$file_name)) { echo "File $i: ($file_name) Uploaded.<br>"; to if (move_uploaded_file($file_tmp,$upload_dir.$file_name)) { echo "File $i: ($file_name) Uploaded.<br>"; chmod($upload_dir.$file_name, 0755);//<--Add this
×
×
  • 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.