I have built an ISBN generator using PHP. However, Once ISBN Number is generated it’s not stored in the database. Here is the index.php Here is the isbn.php Here is the generate-isbn.php Why the values are not passing? Save the book to the database code in the generate-isbn.php. Values are generated but only one value is stored in the database.
How can I center my div content responsively with sidebar and top menu on the same page?
I’m trying to center my div content responsively with a sidebar menu and a top menu using bootstrap. But my div content is placed at the bottom of my page when I require the side-menu file and I don’t know why. I’m not using any CSS file, just Bootstrap 5.2, but if your solution requires CSS that’s okay. INDEX SIDE
i want to assign the last element from chars array to the first index of arr array
what is wrong with the for loop logic? i want to assign the last element from chars array to the first index of arr array . Answer if you want to invert the array, in your example : you can just use array_reverse() like this : If you still want to create your own loop, you can do something like
Do not want to close modal after submit data in modal PHP
I want to stay same modal after submitting this form genarateBarcode.php: savegenarateBarcode.php: how can I stay same genarateBarcode.php(modal) after submiting this form? Answer I think you should use ajax because the form submit method reload the page.
I installed ionCube but it is not working yet
I have a Ubuntu server 22.04 and I have installed PHP 8.1.2 fpm, MySQL 8, and nginx After I installed WordPress and active a new theme (Harika) then I get this error: Then I installed the ionCube from the ionCube wizard and now it is installed on my server: But it is not working and when I browse my wordpress
How to Remove packagist.org Tag Ignored Warning Message?
I released a package version to packagist.org, through github.com releases, with a version tag that packagist.org didn’t like (suffix of -dev). I’ve corrected the version error and republished and the corrected version is now showing up on packagist.org. However, there is still a warning message (I’m assuming only seen by me, as the maintainer) that: Some tags were ignored because
How to identify if a vector is a company or not from its ip address?
I want to set up a system to identify the companies that connect to my web site from their ip address. But once I have the ip addresses of visitors to my site, how do I determine if the visitor is a company or not? I retrieved the ip addresses of visitors in php Answer Try to use : gethostbyaddr
I’m having a php error can someone provide some solutions
I am having an error in my PHP code and I need help. If anyone knows the solution to this issue, please help me. The error message I am seeing is [Fatal error: Uncaught BadMethodCallException: Method createtemplate is not defined. in C:xampphtdocsphpvendorphpofficephpwordsrcPhpWordPhpWord.php:148 Stack trace: #0 C:xampphtdocsphpindex1.php(10): PhpOfficePhpWordPhpWord->__call(‘createtemplate’, Array) #1 {main} thrown in C:xampphtdocsphpvendorphpofficephpwordsrcPhpWordPhpWord.php on line 148]. This is my code
Getting php error related to MySQL server in docker: SQLSTATE[HY000] [2002] Connection refused
When I try to connect php whith the container that has the mysql server I get this error This is the docker compose file: This is the connection class: Now that I changed the host to 127.0.0.1, the connection is refused. And there’s no way that the MySQL server isn’t running, cause i can connect to it using php-server, but
Show additional information depending on shipping selected
I would like to show additional information/order notes when a specific shipping method was selected. I have multiple shipping options and when selecting a specific one I need the user to provide a different address in the note, please see the images below: These are the available shipping options: I want to show this (and it has to be a