Problem We are planning to create a small community directory website with our community business listings, events and some useful articles. No single WordPress theme is offering all 3 features in one theme. Thoughtful Solution We thought to buy one theme for listing, one for events and one for articles and s…
Warning: mysql_query(): Access denied for user ‘admin’@’localhost’ (using password: NO) [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for Stack Overflow. Closed 6 years ago. Improve this question It seems as though my PHP is trying to log in to the MySQL database w…
strtotime to get first start of this hour
I am using strtotime(“first day of this month”, time()); to get the start of the current month, strtotime(“midnight”, time()); to get the start of the current day. Now I want to get the start of the current hour. strtotime(“last hour”, time()); gives me the current hour, mi…
Add Exception or condition for logged in user PHP MYSQL
Sorry I’m beginner in PHP MYSQL, I want to ask how to add exception in this paged for different type of users. I only have 3 types, ADMIN, TEAM LEADER and AGENT. ADMIN = can access all the pages …
� character from ldap
i am getting some strange characters form ldap server when i search some user info.if value contains turkish characters like ‘ç’ it replaces to ‘�’.in this situatian i convert string to utf-8 than str_replace to fix it.My function is that; But sometimes that causes some problem , so i …
How to execute raw queries with Laravel 5.1?
So I have this tiny query to run on my DB and it works fine in MySQL Workbench. Basically, a SELECT with LEFT JOIN and UNION with LEFT JOIN again. SELECT cards.id_card, cards.hash_card, …
How to redirect 404 error to 404.php page?
I need help in php. I am making one portal website in Core Php. I had created 404 page and .htaccess file. 404.php: 404 Error – Page Not Found…
Open a popup box after receiving result from ajax
i have a ajax code that works properly and gives the desired result. I want to modify this code and want that when a reply is received from ajax a popup/modal box should get opened. I am able to open popup/modal box on a click of a button but don’t know how to open it automatically within ajax. here is
How to calculate total price in php
I am getting the price of the product from db using the product id i have stored in php array. i have a php function where in i want to hold a total of all the products purchased. here i am getting the cart items and i am calling the function which should hold total amount. i am passing the
Upload large files to WebDAV with resume support
I want to upload large files to ownCloud with WebDAV API. I use this code to do this: But when connection lost, this script cannot resume uploading file. Is it possible to resume file upload with WebDAV? Thanks Answer Use the CURLOPT_RESUME_FROM_LARGE option. Either set it to a position to start the resume fr…