Storing Different Objects in Different TablesInserting a Raw Image into a Tablegetimagesize Doesn’t Return a File Sizefile_get_contents Does What You Think It DoesINSERT the ImageYour Binary Data Isn’t Safe to Insert…YetPrinting a String to a VariableGetting the Correct ID Before RedirectingConnecting Users and ImagesInserting an Image, then Inserting a UserJoining Tables with WHEREConnect Your Tables Through Common ColumnsAlias Your Tables (and Columns)Show Me the ImageDisplaying an ImageGame Plan Your ScriptGet the Image IDBuild and Run a Select QueryGet the Results, Get the Image, and Deal with Potential ErrorsTell the Browser What’s ComingSend the Image DataCatching and Handling ErrorsTest, Test, Always TestEmbedding an Image Is Just Viewing an ImageAll You Need is an Image IDA Script Can Be an Image srcSo Which Approach is Best?OK, If You Insist on an Answer…