Jump to content

jameshumphries47

Member
  • Posts

    2,325
  • Joined

  • Last visited

Reputation Activity

  1. Like
    jameshumphries47 got a reaction from da na in Experiences with non-techies   
    ahh when people say "Why wont google give me any answers because what they write is like there life story
    here is some example
    people who dont know "So today i was making a sandwich looked in the fridge to find out that there is no ham, i was so annoyed were can i buy some ham from??"
    Normal peoople "Were to buy ham"
     
  2. Informative
    jameshumphries47 reacted to KQLY in Issue with monitor and graphics card   
    A list of spec's would help.
     
    But pulling the CMOS battery while the GPU is installed and the computer is off is a start.
     
    Also try using cables with no adapters preferably HDMI to HDMI straight to the monitor. I've had a problem like this when my HDMI TO DVI-D adapter was a slight bit loose just a complete black screen.
     
     
  3. Agree
    jameshumphries47 reacted to TeeTwo in Failed delidding attempt on a 4460   
    Nope, im too tall and heavy to be competitive and it got too expensive.
    Hunting, gaming and PC's is my go-to hobby now.
  4. Agree
    jameshumphries47 reacted to minibois in I'm Honestly Surprised There's No "Tools" Forum   
    Maybe this could be a sub forum to Hobby Electronics?  
  5. Like
    jameshumphries47 reacted to Kimmers in Guitar thread.   
    Just purchased this beautifulll GS Mini. It should be arriving at my place on Thursday and I'm very excited to play again.
  6. Like
    jameshumphries47 reacted to bchampion96 in Guitar thread.   
    Of course! If you don't have a great guitar that you love to play, what's the point?
    I have not tried a TS9 before, but as far as overdrives go, it's definitely one of the most popular
  7. Agree
    jameshumphries47 got a reaction from theminorseventh in Is anyone able to recommend any of TeckNet's mice/keyboards?   
    i just bought a tecknet battery bank! the quality is outstanding! i cant recommend them enough for the price!!!
  8. Agree
    jameshumphries47 got a reaction from Mr.McMister in Looking for a low cost domain registrar for hosting from home.   
    i love running servers. so i get the fun part haha. and yeah i prefer to have full control.
  9. Agree
    jameshumphries47 reacted to Gachr in classified website creation thread   
    I only did back end JS actually and meant that, so keep that in mind
  10. Like
    jameshumphries47 reacted to Lumi in website Proxy for only one website   
    It'd be pretty easy with php.
  11. Agree
    jameshumphries47 reacted to Brenz in classified website creation thread   
    The others are correct here. You may have more faith in your code but its likely to be much simpler and more vulnerable than the code made available by many frameworks which has not only been written by much more senior developers but also analysed and tested by hundreds of other developers and the code subsequently improved over many years.
     
    Also don't forget Unit tests, untested code is never good in the long run and likely has mistakes in it.
  12. Agree
    jameshumphries47 reacted to Sentryy in Amazon first day delivery BS   
    Yes, most of the things do come from that warehouse. And I Literally see vans pulling out and entering the warehouse. They almost 100% ship packages out of there.
  13. Like
    jameshumphries47 got a reaction from iUSEMAC in classified website creation thread   
    So it's the weekend and its time for me to stop putting this off, and give it a go! its a project ive had in mind for a while, and ive posted on here once before about it so ill try and explain it, then i will post updates as i do work on it. 
    Okay so im planning on creating a Classified site!  my idea is like bookoo which is where users take a photo of something they want to sell add a description and some contact details, they put it on someone contacts them and buys it... *Simples* but i want to do something different, i want to create the template/site then find someone online who lives in a city or town, they then advertise their city/towns website to their community through any means they want to. Then they get a cut of all the sponsored ads that have sold in that area. the response as will be an add the user pays i dont know $1.50 ????? for their add to be displayed either higher up in the search ranking or on the side of the page when similar product is searched for... like adwords. This means if the advertiser advertises lots and well he in theory should create more income. Now this is all ideas at the moment, and i would really like everyone's input. i would like to think i would have it complete at the end of June ish. Then each areas websites have sub categories for.... i dont know computer hobbiests to sell their items and so on. Any ideas,advice,opinions? I will add my updates to this thread so follow if your interested.
    ~James  
  14. Like
    jameshumphries47 got a reaction from Ghostay in classified website creation thread   
    So it's the weekend and its time for me to stop putting this off, and give it a go! its a project ive had in mind for a while, and ive posted on here once before about it so ill try and explain it, then i will post updates as i do work on it. 
    Okay so im planning on creating a Classified site!  my idea is like bookoo which is where users take a photo of something they want to sell add a description and some contact details, they put it on someone contacts them and buys it... *Simples* but i want to do something different, i want to create the template/site then find someone online who lives in a city or town, they then advertise their city/towns website to their community through any means they want to. Then they get a cut of all the sponsored ads that have sold in that area. the response as will be an add the user pays i dont know $1.50 ????? for their add to be displayed either higher up in the search ranking or on the side of the page when similar product is searched for... like adwords. This means if the advertiser advertises lots and well he in theory should create more income. Now this is all ideas at the moment, and i would really like everyone's input. i would like to think i would have it complete at the end of June ish. Then each areas websites have sub categories for.... i dont know computer hobbiests to sell their items and so on. Any ideas,advice,opinions? I will add my updates to this thread so follow if your interested.
    ~James  
  15. Funny
  16. Funny
    jameshumphries47 reacted to Enderman in anyone know great earbuds for sale?   
    these ones are great for sailing, they are waterproof

  17. Agree
    jameshumphries47 got a reaction from mikat in Windows 10 loves to re-arrange icons so I need a program to revert this   
    just take a screenshot bonus points if you set it as your desktop screensaver hahah
  18. Agree
    jameshumphries47 got a reaction from Fyfey96 in LED   
    what i do is i buy standard LED strips wire them to a molex connector on the door, so it can be disconnected, a switch in the case, and a molex to the powersupply costs like £10 MAX and has on/off function SUPER EASY!!
  19. Agree
    jameshumphries47 got a reaction from GeekJump in Who is renewing their vessel subscription   
    i cant seem to find it anywhere but i think its about $3 a  month
  20. Like
    jameshumphries47 reacted to immortalm3wtwo in Who is renewing their vessel subscription   
    bruh
     
    reddit.com/r/vesselrips
  21. Informative
    jameshumphries47 got a reaction from tomoki in What do people use for Website Creation?   
    i learnt python then php and i loved the php side of things so i decided to do web based coding. I sometimes use python. but i plan to learn C# when i get time. My advice learn the language that you believe you will enjoy the most, and that you will get th results you want out of it
  22. Like
    jameshumphries47 reacted to SSL in PHP/ MYSQLI problem   
    Sanitize your inputs. Never interpolate variables directly into a query string. Use prepared statements. Learn how to use exceptions. Multiple unrelated, nested if statements are messy and error-prone. Exceptions allow error handling to be done by the appropriate part of your application. Handle errors. In a production application, you will probably want to be more reticent about the errors that you display to the user. Try to recover from the error or at least perform cleanup and exit so that the application isn't left in a broken state. Separate concerns. Input validation should be handled in a separate file, preferably a class in some kind of object-relational model if you are going the OO route. Business and presentation logic should be in separate places for readability, maintainability, extensibility, testablity, and other -abilities. There is nothing I hate more than a PHP app where every page is an HTML file with PHP crap up at the top. Format your code. Use a real text editor that auto formats code as you type. No one wants to read code with inconsistent indentation and spacing. Use clear variable names. "result4" is obtuse and unhelpful. Use resources efficiently. You do not need to keep reconnecting to your database. Re-use the connection for the duration of the script. Don't modify globals. You unset a key from $_POST. This is generally bad as it can lead to difficult to find bugs. Ideally, don't use globals. Store what you need from the post array at the entry point of your application and pass around the values as function parameters. I mention all these things because if you do them, ultimately figuring out a simple issue like this will be much easier. Note that refreshing a POST request will re-submit the data. You may wish to have the form submission re-direct or be handled on a separate page.
  23. Like
    jameshumphries47 reacted to Mr_KoKa in PHP/ MYSQLI problem   
    You cannot not receive submitted data by the script but you can easily ignore them by adding token to your form that is just random number generated and strored in form hidden input and $_SESSION variable, so after your form is sent you can check if session-token is the same as input-token if they're the same then your form was sent firs time, you should change session token just after you found out that tokens match. After the change, when you hit F5 your browser wil resend data with old input-token and as you changed session-token they wont match and data won't be accepted again. As @Brenz stated you should change file names for your own so they won't overwrite, and rather keep their original names as db field if you need it.
     
    What I usually do is I hash files so if multiple users upload same file I won't end up with multiple copies of same data on my server. If user delets uploaded file from your server you can still keep control over it, and delete int only when last owner of the file deletes it (delete it when there is no reference in database to the file)
     
    You can also use getimagesize to check mime type of image, so you will know that someone isn't just sending other type of file just by adding right extension.
  24. Like
    jameshumphries47 reacted to Brenz in PHP/ MYSQLI problem   
    Just a few pointers with your code:
     
    1) Really you should rename files when they are uploaded, people are likely to have different images with the same name. Renaming them fixes this issue.
    2) You are still uploading the image even if the filename already exists
    3) You are still adding an entry to the DB even if the file upload fails
    4) $con and $con4 are connections to the same DB. You only need one.
     
    Your code structure in general is quite messy, query strings are defined and used in a different order or never at all. Also please try and format the code a bit better with closing brackets on new lines and correct indentation, it would make it a lot easier to read.
     
    On your original problem, this is due to the way browsers work. If a form submission gets you to a page a refresh of that page will prompt you to resubmit the form because without it you might see a different page.
     
    You can get around this by using a PHP header to redirect the user at the end of the script but you cannot have any output (echo's) before this header.
  25. Like
    jameshumphries47 reacted to cortexcortex in PHP/ MYSQLI problem   
    Basically, you would need to use Javascript to make the "Submit" form use an external file, I guess? Google would be a much better teacher than I.
×