Setcookie is not creating cookie

PHP
My login does not seem to be creating a cookie. The form gets all the way to the cookie creation portion of the script and even echos that a cookie wa...
3 years ago

Coding errors in PHP and MYSQL

PHP
I followed a youtube tutorial which teaches you how to create an edit and delete data page for PHP and MYSQL but for some reason why code isn't workin...
3 years ago

require_once strips or removes URL parameters

PHP
I'm passing a URL with parameters to an index.php page that contains 2 require_once functions calling template and config files that output the final ...
3 years ago

How to INNER JOIN 3 tables using CodeIgniter

PHP
Can someone Tell me how to join 3 table with php? Example SELECT FROM table1, table2,table on INNERJOIN ------------------- let I have 3 table.(que...
3 years ago

MySQL conditonal query inside where clause

PHP
I'm not sure if I'm missing something really obvious, but I keep getting a syntax error on this query. Even if I AM missing something obvious, I'd lik...
3 years ago

php foreach and glob() function

PHP
PHP versione 5.2.* my function not working :/ images in server, in folder: /public_html/gallery/images <?php foreach(glob('gallery/images/...
3 years ago

php artisan tinker laravel PHP Fatal error: Call to undefined method stdClass::save() admin user

PHP
First I have created an admin user using tinker then I deleted my migration in laravel5.1 then I did migration but this is the error: PHP Fatal er...
3 years ago

Adding an event to the checkbox in CgridView in yii

PHP
I have added check box to each row in cgridview, and a button Delete Selected to delete the selected rows, now what i want to do is until a check box ...
3 years ago

Facebook PHP SDK how to get user email from Facebook JavaScript SDK 2014

PHP
I am using both Facebook PHP(4.0) and JS(2.0) SDK together. I can grab the user profile data with PHP but not the user's email. The user's email is av...
3 years ago

Request Entity Too Large

PHP
I get this message, Request Entity Too Large The requested resource /index.php does not allow request data with POST requests, or the amount of data...
3 years ago

Asociative array PHP, getting data starting from a known data

PHP
This is maybe very simple, but I got a little disaster trying to solve this problem. I have a asociative array in PHP that looks like this: $people= ...
3 years ago

Laravel: How to access session value in AppServiceProvider?

PHP
Is there any way available to access Session values in AppServiceProvider? I would like to share session value globally in all views. ...
3 years ago

How to get non-mapped column in a result of Doctrine native query

PHP
How can I get non-mapped column in result from native query? My query: $query = $this->getEntityManager()->createNativeQuery( "SEL...
3 years ago

PHP if/else structure within html

PHP
I am trying to figure out how I should structure an if/else statement. I understand the basic if/esle should be as follows; <?php if ($a > $b...
3 years ago

Phalcon - Lazy loading is not working in Models for some strange reason

PHP
I am new to phalcon and coming from more of Symfony background, i just need to know how define optional relationship between foreign keys in phalcon m...
3 years ago

Wrong day of the week returned by date in PHP

PHP
I have the following data coming out of date_parse: $date_array['year'] = '2015'; $date_array['month'] = '4'; $date_array['day'] = '25'; I am tryin...
3 years ago

Correctly determine if date string is a valid date in that format

PHP
I'm receiving a date string from an API, and it is formatted as yyyy-mm-dd. I am currently using a regex to validate the string format, which works o...
3 years ago

Passing form value from one form/page to another - Laravel

PHP
Here is an explanation of my question. I have 2 forms: add & add1 2 pages: add.php & add1.php and 2 functions: function post_add & func...
3 years ago

Is it possible to convert greek word to greek symbol in a text using PHP?

PHP
Is it possible to convert greek words to greek symbols in a text using PHP? For example, $string = "alpha + beta = gamma"; Converts to "&alpha...
3 years ago

Calculating the sum of an array in PHP

PHP
I'm trying to set up a basic PHP code where it scans through numbers and calculates the total from a certain set of conditions. Here, I'm saying I wan...
3 years ago