Why can't I get HTML form to pass values to PHP?

PHP
This is pretty basic, but I'm new to web development. I have a form in HTML that takes time and passed it to a variable in PHP script. That works fine...
1 year ago

PHP Error: You have an error in your SQL syntax;

PHP
Ok guys, I know there's a lot of questions already answered with this name, but I didn't saw anything like mine. My code is: $sql = mysqli_query($co...
1 year ago

PHP append one array to another (not array_push or +)

PHP
How to append one array to another without comparing their keys? $a = array( 'a', 'b' ); $b = array( 'c', 'd' ); At the end it should be: Array( [0...
1 year ago

Codeigniter htaccess not working

PHP
I am using this htaccess file on my site to remove index.php. RewriteEngine on RewriteCond $1 !^(index\.php) RewriteCond %{REQUEST_FILENAME} !-f Rewr...
1 year ago

Pretty URL htaccess

PHP
I have the below url that I want to prettify. Any help appreciated. From; http://www.example.co.uk/search-menu?r_id=1&name=testname To http:...
1 year ago

how to update multiple select box values in php mysql

PHP
<select name="specialization" multiple> <option value=""></option> <option value="United States" se...
1 year ago

Zend 2 Hostname Validator for IDN Domains

PHP
I can register "töst.tv" as domain / its a valid domainname. The Zend 2 Hostname Validator will return false on following example: // create hostnam...
1 year ago

Laravel Homestead Multiple Sites

PHP
I've Laravel Homestead installed correctly, but now I want to add an additional site, I've done every step in the documentation, edit my Homestead.yam...
1 year ago

How to assign series of numbers to a single array

PHP
I have a from input that contains series of numbers separate by white space that looks like this: $input = "1243 984 4692 9465 "; Is there any way ...
1 year ago

Doctrine DBAL setParameter() with array value

PHP
I'm using doctrine DBAL and have some problem with SQL query as result of a queryBuilder. $builder = $this->getConnection()->getQueryBuilder();...
1 year ago

PHPExcel creates 'unreadable content'

PHP
I've tried to fix this problem about 1000 different ways. Appreciate if anyone else can spot the problem. I have code using PHPExcel that generates m...
1 year ago

PHP date() print 24:00 instead of 00:00

PHP
PHP date("H:i (d.m.Y)",$timestamp) function represents exact midnight as 00:00 of following day. But I need it to represent it as 24:00 of preceding d...
1 year ago

How to pass form input value to php function

PHP
I want to write a php page in which there is a html form. I want to send all input (number for example) of my form to a php function (instead of a jav...
1 year ago

missing session table in codeigiter 3.x

PHP
After updating to codeigniter 3.x from 2.x I started getting following issue Error Number: 1146Table 'databaseName.prefix_' doesn't existUPDATE `prefi...
1 year ago

useing $page_title within a echo

PHP
I want this to work, it doesn't currently, so, if its possible, what do I need to change:<td class="summaryLeft"><?php echo $page_title_LEADE...
1 year ago

Wordpress one-page template with dynamic portfolio section

PHP
I've been searching all morning for answers to no avail. I'm building a one page WordPress template. I have a home page which uses a one page template...
1 year ago

Manipulate JSON

PHP
I am developing a codeigniter application. I need the returned json data in this format. { options: [ {id:"1",text:"test"}, {id:"2",text...
1 year ago

What is the purpose of using session_register_shutdown()?

PHP
I just want to find out when and why we should use session_register_shutdown().please don't copy descriptions from php.net. Thanks
1 year ago

How to check if variable is array?... or something array-like

PHP
I want to use a foreach loop with a variable, but this variable can be many different types, NULL for example.So before foreach I test it:if(is_array(...
1 year ago

What is a Python equivalent of PHP's var_dump()?

PHP
When debugging in PHP, I frequently find it useful to simply stick a var_dump() in my code to show me what a variable is, what its value is, and the s...
1 year ago