Jump to content

floridaflatlander

Members
  • Posts

    671
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by floridaflatlander

  1. As a note it's include/"upload_thumb.php" not update <<< upload_thumb.php uploads a photo, does the checks, resizes it and sizes it to a file I'm not uploading a file, this is a muiltipart form that I use to edit and upload a photo if I want to, in this case I don't want to upload a file. but I do want to edit other text info. // If everything's Okay Process the whole form if (empty($errors)) { //Run some of the script here // If I decide to upload a photo with name="image" this if will execute includes/upload_thumb.inc.php *** If I don't selesct a photo this if is bypassed if (isset($_FILES['image'])) { // Upload thumb if one is selected include_once ('../includes/upload_thumb.inc.php'); // run UPDATE query script to insert photo location and stuff in db } // run more script here } I'll have to think about it because $_FILES['image']['error'] == UPLOAD_ERR_OK assumes I want to or have uploaded a photo, I think
  2. Thanks for the reply The idea is for upload_thumb.inc.php not to be uploaded if I don't need it. I already have a jury rigged condition almost like your talking about it's if (isset($_FILES['image'])) { // Upload thumb if one is selected include_once ('../includes/upload_thumb.inc.php'); if($thumb_name) { run update query } } Thanks again
  3. In my example I don't want to upload a photo $_FILES['image'] should be empty. if (isset($_FILES['image'])) { // Upload thumb if one is selected include_once ('../includes/upload_thumb.inc.php'); }
  4. I have a multipart forum that can load a photo if needed. My problem is that if no photo is selected for upload it deletes any data in the database for the current row if there is a photo. What I'm trying todo is not load upload_thumb.inc.php if no photo is selected and not run the UPDATE query // If everything's Okay Process the whole form if (empty($errors)) { //Run some of the script here if (isset($_FILES['image'])) { // Upload thumb if one is selected include_once ('../includes/upload_thumb.inc.php'); // run UPDATE query script to insert photo location and stuff in db } // run more script here } What's happening if I have a photo and don't upload another photo the guery over writes the db info for the current photo. The idea with isset($_FILES['image']) was to not load upload_thumb.inc.php and not to run the UPDATE script Thanks S
  5. Look at your html and see if any div or closing tag is missing. Run both through http://validator.w3.org/ Also is a div floated on the register page and causes the bottom of the page div come up?
  6. Google announces privacy changes across products; users can’t opt out http://www.washingtonpost.com/business/technology/google-tracks-consumers-across-products-users-cant-opt-out/2012/01/24/gIQArgJHOQ_story.html?wpisrc=al_comboNE_b
  7. I think it's with POST or GET just like a regular variable.
  8. Ya'll are just mad because... Project managers never ask Chuck Norris for estimations…ever. Chuck Norris CAN divide by 0. Chuck Norris’ keyboard has 2 keys: 0 and 1.
  9. Hmmm, Dang, I wish I had known that before I laughed.
  10. http://www.codesqueeze.com/the-ultimate-top-25-chuck-norris-the-programmer-jokes/ A lot of the comments are funny too.
  11. Yea but they usually have the lawyers(from the good schools) to get or keep what they what and note that lawyers is plural.
  12. Sometimes I wonder if these guys even know what they are voting for or against.
  13. I know what I call a download counter, what do you call a download counter, what do you want it to do?
  14. I just did this about 15 minutes ago if ((empty($_POST['year'])) OR (empty($_POST['month'])) OR (empty($_POST['day']))) { $error [] = 1; $date_e = '<h5 style="color: red;">* You forgot to enter a date.</h5>'; } else { $date_yr = (int)$_POST['year']; $date_mth = (int)$_POST['month']; $date_day = (int)$_POST['day']; // Use checkdate as insurance that a date was entered if (checkdate($date_mth, $date_day, $date_yr)){ $date_pub = $date_yr.'-'; $date_pub .= $date_mth.'-'; $date_pub .= $date_day; } else { $error [] = 1; $date_e = '<h5 style="color: red;">* The date was not valid.</h5>'; } } Then it goes into a date field in the table. I was going to put it here on freaks to see if this is Okay anyway so here it is. Also I use <option value='01'>Jan</option> etc. as PFMaBiSmAd said.
  15. thanks for your reply can you please give me that mod name and details n if possible then can you provide me that mod i really need help. thanks I have a mod for SMF not VB so you need to chk with the VB people to see what they suggest you use.
  16. CHeck on the VB forum, I'm sure you can get suggestions there. I have a mod in smf that checks the IP, email and name of the registor against a list and if the registor has an ip email or name on this list they get rejected more or less.
  17. I'm not sure I know what your doing but can you use print screen then paste it in an image editor and trim as needed?
  18. The slashs are to escape the double quote to the statement will echo
  19. I always use double quotes in my inline styles, when you play with it make sure you remove your single quotes and don't have a space between $b_x & px style=\"position:absolute; left: $b_xpx; top: $b_ypx;\"></a>";
  20. Yea, my daughter just turned 16 and she says she can "finally drive now and the earth is going to blowup".
  21. You may have answered your own question, 18,446,744,073,709,551,615 is a big big number. Also I would think facebook and the like would or could have users spread over many tables if needed. Also I would think that all the other tables come into play to keep this auto-increment way down below the maximum number.
  22. As a note I posted this about a db to hold session data in not long ago. http://www.phpfreaks.com/forums/index.php?topic=350129.msg1652266#msg1652266, also if you're not logging the user out when they log out or when they close their browser like I am then I would see where a db would be a better idea. I also went to the link scootstah had above and it was a big help.
  23. I'm testing out magicjack now. I just installed it yesterday. You can go online and see their overseas pricing. You can buy it from them but I saw online where a guy suggested getting it from walmart so you can take it back easier if it's not what you need and that's what I did. Users at amazon give it a terrible rating but 78% of walmart reviewers said they'd suggest it to others. I think the main problem is that people's internet connection isn't fast enough, my magic jack works fine so far but the quality isn't as good as comcasts phone quality but I can work with it for this price(vs 600$ a year at comcast). "I think" I hear a small amount of static in the phone but I need to test it more and on longer conversations. The thingie cost 40 bucks, then 20$ a year after that and you can go anywhere with it and keep the same number, 911 only works at one location so that doesn't move, I transferred my comcast number to magic jack, that was another 20 dollars. This supposedly takes up to 10 business days. I started this tread several days ago and will post info as I play with it, if magic jack doesn't work I'll then try vonage which is still cheaper than comcast. http://www.phpfreaks.com/forums/index.php?topic=350833.msg1655975#msg1655975
  24. As a note and I'm not sure if this correct but $q = SELECT SUM(money) AS total FROM `systems` WHERE id = 3112 $results = mysql_query($q) or die(mysql_error()); while($row = mysql_fetch_array($results)){ $total = $row['total']; }
×
×
  • 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.