Tagged Questions
PHP is an open-source server-side scripting language widely used in web development. Use this tag for questions about PHP classes, methods, functions, syntax and use.
0
votes
0answers
5 views
Fatal error: Maximum execution time of 30 seconds exceeded in /home/content/01/11103001/html/MLadmin/super-admin/storefrontdata.php on line 29
I am getting bellow type error.any one can help me with perfect step by step solution.your answer is very help full to me.
Fatal error: Maximum execution time of 30 seconds exceeded in ...
0
votes
0answers
5 views
Create table table if not exists else alter table
i have a MySQL Database with a Table (Mail) which has the columns : ID, Content, Date and Title. I would like to know if there is an option to check if the table exists and if it does then alter the ...
0
votes
1answer
6 views
Avoid Alternative PHP Cache (APC) concurrency issues
I'm storing lots of variables in APC per second. At the same time, I have a CRON task which continuously executes a php process for reading the variables from APC, deleting it from APC and storing it ...
-1
votes
1answer
22 views
Php how to count this?
I have likes variable and dislikes variable, how should I change it to rating from 0 to 5 ?
Example:
0 Likes - 0 Dislikes = 0 Rating
1 Likes - 0 Dislikes = 5 Rating
5 Likes - 5 Dislikes = 2.5 ...
0
votes
2answers
33 views
Increment int value in MySql
I am trying to get a value of an int from a field in a MySql database and increment it by 1 when a new record is added. What is happening, is that when the record is inserted it is placing a 1 and not ...
0
votes
0answers
4 views
“invalid data source name” with PDO MySQL
It was always working for me but this time it's not.
conect.ini
conn = "mysql:host=localhost; dbname=%dbname%"
user = "root"
pass = "%passwd%"
conn1 = "mysql:host=%myRealHostAddr%; dbname=%dbname%"
...
0
votes
0answers
9 views
automatically prefix and suffix a Url while redirecting
I want to add prefix and suffix of an appended url.
eg. If I want to open the following links:
http://yoursitename.com/links/?**http://www.shopclues.com/page1**
...
0
votes
0answers
13 views
Time Log Monitoring System PHP/MySQL
I am having problems with my Time Keeper System. Well, in my system you can see the employees time logs(ex. Date, Check-In, Break-Out, Break-In, Check-Out). I used the date as the main source of ...
0
votes
1answer
14 views
sending data AJAX post data to controller
I'm having the hardest time sending the value of a dropdown(as html) to my controller, should be pretty straightforward..
the select dropdown :
<select id="form_selection">
<option ...
0
votes
1answer
5 views
Js not loading after merge : magento
I have a problem with magento merge Js.
I have merged the Js files but now it is not loading the Js files that are merged.
If i tried to access it gives internal server error.
0
votes
0answers
16 views
Mysql - drop empty columns to update only set values
I am using mysql+php. The php provides interface to import XLSX table of goods into Mysql table(s). I am using a temporary table created with CREATE TABLE LIKE i.e. empty clone of live table for user ...
0
votes
5answers
25 views
Split string using regular expression in php
I'm beginner in php and I have string like this:
$test = http://localhost/biochem/wp-content/uploads//godzilla-article2.jpghttp://localhost/biochem/wp-content/uploads/life-goes-on-wpcf_300x111.jpg
...
0
votes
0answers
32 views
How to select multiple checkbox in jquery datatable with pagination?
I am using jquery datatables. There I am using check box for each row inside the table. Now I want when a user click select all link which is outside of table, will select all records in the table. ...
-4
votes
0answers
15 views
internal server error in godaddy for 301 redirects
I am getting internal server error in godaddy for 301 redirects in .htaccess. I have used CodeIgniter framework to build the website. I tried redirecting my old url (which is in html) to new one.. It ...
0
votes
0answers
31 views
JQuery Autocomplete : Getting the selected ID
I have problems to get the selected ID in the autocomplete Jquery input.
My php function with the query and the json_encode
public function autocompleteAction()
{
global $config; ...