Showing posts with the label php

[FIXED] I'm trying to do Signup and Login with PHP and MySQL

Issue I'm trying to do Signup and Login with PHP and MySQL.. but when I enter the same email it…

[FIXED] PHP - MYSQL insert_id issue

Issue i am getting data from a json file with curl and i want to add data id to my "tblcustomf…

[FIXED] How to echo SQL table data in auto created html/PHP table

Issue I have a SQL table named res having some rows and columns. For example: Name Class Sub1 Sub…

[FIXED] how to update stock number from sql if stock number is higher than required amount

Issue I would like to check the stock of each number before doing anything forward, and if it is in…

[FIXED] While and if statement in php with mysql

Issue I have this php code: if(mysqli_num_rows($query) > 0) { while($row = mysqli_fetch_arr…

[FIXED] How to list only active records with select from?

Issue I need to make a query to return only active records which in this case are imo_status == 1 …

[FIXED] Laravel - Load a JSON file from /resources folder for API

Issue Within a Laravel project, I have an API that is powered by a flat JSON file. I'd like to …

[FIXED] How to keep json_encode() from dropping strings with invalid characters

Issue Is there a way to keep json_encode() from returning null for a string that contains an inva…

[FIXED] enctype and file upload

Issue i made a form page to upload files <form role="form" action="portfilio.p…

[FIXED] PHP: move_uploaded_file() failed to open stream: No such file or directory

Issue I'm trying to get PHP to move an uploaded file from the tmp directory to somewhere perman…

[FIXED] PHP File upload not working in linux server

Issue The file upload works with xampp in windows but not working when I moved it to a production c…

[FIXED] Why does PHP not GET the form input from this HTML form?

Issue <form method="post" enctype="multipart/form-data" name="formUploa…

[FIXED] Amazon S3 - Your proposed upload is smaller than the minimum allowed size

Issue I'm having problems when I want to upload an image to my amazon s3 bucket. I'm tryi…

[FIXED] File upload PHP JPG issues

Issue I'm getting confused while working with an file upload HTML form and some PHP to handle t…

[FIXED] Removing apacheinstallation from multiple package-managements

Issue I am pretty new at this Mac OS thingy and I tried installing PHP54 on it. I know, there is a …

[FIXED] PHP setcookie "SameSite=Strict"?

Issue I recently read "RFC 6265" on the attribute "Same Site", I looked at some…

[FIXED] Php can't read cookie for 2 minutes

Issue my problem is, php can't read the cookie on server for 2 minutes. After 2 minutes it wor…

[FIXED] symfony Delete remember me cookie when logging out

Issue There is a delete_cookies in the security configuration file: rel="nofollow">ht…

[FIXED] How would I test if a cookie is set using php and if it's not set do nothing

Issue I've tried $cookie = $_COOKIE['cookie']; if the cookie is not set it will gi…

[FIXED] PHP Count Unique Visitors ,, Not Works

Issue I am willing to count unique visitors once landing on a specific page, I wrote the below code…