Skip to content

Problem pasting one image into another PHP

I want to paste the $original image into the center of $fondo image, i write the following code: The result i got is this: As you can see the cyan color is affecting original image: Any ideas on what i’m wrong? Thank you! Answer the solution is: Creating the image as imagecreatetruecolor instead of imag…

Current time from SQL Server to PHP for compare

Need get info, is EndDate expired or not (EndDate is row, where typed info about date of buyed user premium) connectuser2db(); $bile_sql = “SELECT EndDate FROM tbl_rfuser WHERE Serial = ‘” . …

Stopping old XAMPP background processes

I reinstalled an old XAMPP program on my PC because an error occurred on the old one. Unfortunately, I forgot to stop the three servers before uninstalling. Now I always get an error XAMPP: Stopping …

Getting error when accessing the variable from service

I am new to PHP. I am facing an issue while login. login.php Member Service When I click on the login button, I am getting the following error message: What am I doing wrong here? Answer You’re trying to use a variable as an array while it is a null (most possibly not declared/instantiated). An example …

Random Unique IDs for Secret Santa/Kris Kindle

I gat a database table, which filed in with names and unique EntryIDs. My goal is to Match every unique EntryID to another Unique EntryID. I all ready tried this post here but it doesn’t work for that …

How to get next and previous id on CodeIgniter3?

I have the following DB. As you can see, the ID is missing a tooth. so you cannot get a valid previous or next ID by simply adding or subtracting 1 to the current ID In SQL, to get a valid back and forth ID, I would write the following. I want to get this kind of record retrieval in

PHP Session variable is empty when it’s not empty

I’ve got a login system set up, and there are no problems with staying logged in. Both userid and username are stored as session variables (and stored in a table in the database), and I can access them for use within the html on the pages themselves just fine. I have a form with several multiple choice …