PHP tags - syntax error

PHP
I'm struggling to remove this function line without getting a syntax error : function product_meta_box_content( $post ) { from the following code :...
1 year ago

How do I get PHP Errors to display?

PHP
I have checked my PHP ini file and display errors is set and also error reporting is E_ALL. I have restarted my apache web server. I have even put the...
1 year ago

How to import csv file in PHP?

PHP
I am very new to web development. In fact, I am just starting to learn. Can somebody please give a complete but very simple example on how to import ...
1 year ago

Refreshing ajax div with form data

PHP
I've googled a lot but could not find the solution to this problem: I have a div in my main page that loads another page with the JQuery function '.l...
1 year ago

How do I fill an object in PHP from an Array

PHP
Suppose I have: class A{ public $one; public $two; } and an array with values: array('one' => 234, 'two' => 2) is there a way to have an...
1 year ago

PHP OOP call method variable from another method

PHP
I'm newbie at PHP OOP please patient to teach me. With the code below, the page will call "index" method to be shown. And the "index" method wants to...
1 year ago

PHP undefined index

PHP
hello guys i want to share my problem :( i am pretty dumb at php :( and i got this error... and this is my php code: <?php $host='localhost...
1 year ago

Laravel 5: return number of affected rows MySQL

PHP
how to return something similar to PHP function mysql_affected_rows() when use Laravel 5 DB class, ex: DB::delete("DELETE FROM chat WHERE id = {$mid}...
1 year ago

Redirect in php throws 520 error CloudFlare

PHP
I am using cloudflare with codeigniter framework and I am facing strange problem while trying to redirect the script to another page when the action i...
1 year ago

How to get Double Buttons to "fire" in Bootstrap

PHP
I have a Bootstrap form with Double Buttons (2) as shown below. The submit button fires and returns processing to the page (i.e., ['PHP_SELF']) Howe...
1 year ago

PHP for loop puzzle

PHP
I have a question. I am trying to learn PHP and someone told me that doing "star" exercises is a good way to learn loops. I got pretty far myself but...
1 year ago

xlrd crashes when reading .xls file modified by PHPExcel

PHP
I'm having an extremely difficult time editing some Excel files using PHP and python. I originally did everything in PHP using PHPExcel, but I was pr...
1 year ago

AJAX and $_POST field is not passed

PHP
Hello can you guys give a quick tip on what I'm doing wrong here. I want to pass $_POST['url'] to a php file via ajax. ajax: <script> $('#che...
1 year ago

php register script not working showing error

PHP
I made a register script but when I execute it, it shows both error and the success message but it doesn't fill anything in the database. here is the ...
1 year ago

PHP Given increasing numbers in this order, calculate all possible combinations

PHP
the problem is simple, but is giving me a headache, I have for example a 4 numbers array, but I can have up to 20 numbers. Given in the following ord...
1 year ago

Associative "multidimensional" array

PHP
Hello all I have a quick question that I'm hoping one of you can answer. I am working with multidimensional arrays and I am supposed to declare the wi...
1 year ago

PHP Configure Error: Please specify the install prefix of iconv with --with-iconv=<DIR>

PHP
I'm trying to configure PHP 5.5 on MAMP, following this post: Having problems while try to install OAUTH with PECL in MAMP on mac OS lion. Afte...
1 year ago

Is PHP not case sensitive?

PHP
I am using MySQL and PHP. In my database I have this table called users, and inside the users table have a record: username: admin password: passwor...
1 year ago

How to insert serialized array in MySQL DB using mysqli_real_escape_string()

PHP
I have tried endless variations of mysqli_real_escape_string() to insert a simple array in a column ni one of my tables. The contents of the column is...
1 year ago

Count values from <input type="text"

PHP
Hello i want to count the ids inside a input type="text" the values return as this 1,4,6 etc &lt;input type="hidden" class="selected_ids" value="se...
1 year ago