Skip to content

Tag: php

DELETE rows with prepared query in PHP and MySQL [closed]

Closed. This question needs debugging details. It is not currently accepting answers. Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question. Closed 8 years ago. Improve this question This …

Generating crypt() sha512 hashes in Go

I am working on my authorization module in GoLang. Before we used PHP5 with the crypt function. The hash was generated like SHA-512: And stored like that in the database. But now I need make it work also in GoLang. I have searched on Google and tried different things, such as: But all generate different thing…

MySQL show all rows and sum at the end

I’ve read through about 20 different answers regarding this question, but either I’m mis-understanding the answers, or its just not clicking. Here is my situation: I have a table that lists ingredients for a recipe. Columns in the table are: ingredient_id, ingredient_title, ingredient_oz, ingredie…

installing laravel –prefer-dist

I am following the Laravel installation on their website and I came across this line composer create-project laravel/laravel –prefer-dist Now, what exactly does the –prefer-dist part mean? I can’t see anything on their documentation. Thanks in advance. Answer It’s all available here: h…

Ignore empty form fields when sending PHP

I’m fairly new to PHP so I understand enough to get myself confused, but not enough to accomplish anything productive. I have a sign-up form that allows the user to add up to five students. The form fields for each student is wrapped in their own div class (.student1, ,student2, .student3, .student4, an…