PHP prepared statements error checking
Hello people ! For a while now I've been using prepared statements, but there's something that is bothering me. So far, on php.net manual the process is $mysqli = new mysqli(...); if($mysqli){ $stmt = $mysqli->prepare($stmt); if($stmt){ $stmt->bind(..) if(....).... } } My question is, is there a way...
You are going to have a fun time.
If you haven't yet installed arch, you could go with a pre-configured distro like Archbang, Cinnarch, Manjaro, etc. You can find the full list here Archwiki - Arch Based Distributions
I myself had arch in the beginning and after some breakage, reformatted and put Archbang, to take the GUI hassle away, and I suppose since you are a beginner it could be useful ! You get to use pacman as well, which is a great package manager!
Suggestion though, if you have a pc now that is live and running, try installing VirtualBox and installing the OSs you would like to try in a VM first, before committing to one permanently.
why the hate? a good programmer will write good code in <lang>, a bad programmer will write bad code in <lang>.
please keep us posted with the reply!
no, just make sure you are using prepared queries to minimise the risc of SQL injections. that is to say, avoid doing things like
or similar silly things. I would also recommend using PDO (even though I use mysqli myself as well, find it less complicated), as you will have a lot less to worry aabout in case you switch your DB backend