I am working on the bidding system app, stuck on how to select the appropriate data and display. See the table screenshot. What I trying to retrieve is for example for bid_id p1 I want latest fbid,name, total amount of all 3 records having bid_id=p1. Answer I believe this is the query you are looking for̷…
Laravel 5 – How to check username & password is match with table?
I have created the below login form in Laravel 5 and I want to simply check if the username & password matches with that of the database table and if so, redirect to the dashboard page else stay on the login page. I am also trying to find the solution by myself but I am posting this question to get
PHP variable scope within Try/Catch block
In PHP, how do variable scope rules apply to Try/Catch blocks? Do variables declared within the try block go out of scope when the block has finished? Or are they in scope until the end of the function/method? For example: Is this valid? Or should $o = NULL; be set before the try/catch to keep $o in scope? (I…
Searching a sequence of bytes in a binary file in PHP?
I want to find a specific sequence of Bytes in a binary file using PHP. I represented this sequence in hexadecimal, to avoid typing too many 0s and 1s. The sequence to find is 0x4749524f. This is the …
FFmpeg – Resize Largest Video Dimension to 320
I’m trying to dynamically change the resolution of videos uploaded to a server via PHP, using FFmpeg. IE, I want to preserve portrait or landscape orientation – if Y is higher than X, I want to change …
inserting array value to database laravel
I have a form attributes called, name, description and features where features is a multiple checkboxes which is like feature 1 feature 2 feature 2 feature 4 User can select multiple checkbox at …
Reloading .env variables without restarting server (Laravel 5, shared hosting)
My Laravel 5 has run OK until the database was configured, then found this error: Doing some research it seems that I configured MySQL access too late, so I should restart the server in order to get the correct environment variables. Well, I’m using Dreamhost’s shared server and I just can’t…
FluentPDO cant seem to find a way of doing OR clause
So I have been using FluentPDO quite a bit, BUT I can’t seem to find a way of doing an OR clause, the where auto adds the AND and I don’t see a way around it. That is the type of SQL statement I need …
PHP Session not working no matter what – However other website works
Basically just making some back-end for my portfolio, in pretty early days right now so the code is messy and a lot of playing around still. I had sessions working but now they’re not. My website is …
PHP loop for TCPDF
please help this idiot. I know there are a lot of examples but none makes sense to me and cant get it to work. I need to create a loop (i think) to display all the records in the db. Currently only …