Here is multiple NOT LIKE MySQL query with webmail services email ids are excluded
PHP, MySQL, Joomla, Wordpress and other CMSes as well as CSS, jScript, jQuery related tested & trusted references links will be posted here for every PHP enthusiasts references. Enjoy
Search This Blog
Sunday, January 2, 2022
Tuesday, March 30, 2021
XAMPP MySQL Blocked Port [SOLVED]
Deleting this file is like playing a Russian roulette with your databases, it could work and restablish everything, but also, probably could leave unusable every database you have.
Instead, first try using the MySQL backup folder which is included with XAMPP. So do the next:
- Rename the folder mysql/data to mysql/data_old (you can use any name)
- Create a new folder mysql/data
- Copy the content that resides in mysql/backup to the new mysql/data folder
- Copy all your database folders that are in mysql/data_old to mysql/data (skipping the mysql, performance_schema, and phpmyadmin folders from data_old)
- Finally copy the ibdata1 file from mysql/data_old and replace it inside mysql/data folder
- Start MySQL from XAMPP control panel
And, voilĂ !
Wednesday, August 12, 2020
MLM Hierarchical TreeView MySQL PHP [solved]
Multi-Level Marketing Members Hierarchical Tree View in MySQL and PHP for your references
MySQL Table Structure
PHP MLM Treeview Code Reference
Friday, August 7, 2020
AJAX JSON response from PHP MySQL rows to html table
After lots of banging head and stackoverflow here is how to displaly AJAX JSON response from PHP MySQL to html table for your referenses
RESPONSE.PHP ---- get user query json response from PHP MySQL
AJAX Response Data Retrival Page
Wednesday, July 22, 2020
encode multiple rows to json in php mysql
how to encode multiple rows from mysql table to php encode_json?
very simple!
Tuesday, February 18, 2020
MYSQL - Group by date and Sum by Everyday
If want to calculate sum of everyday here is simple ways to do it
Sum of Everyday Descending Order in MySQL
Sum of A Day in Mysql
Wednesday, February 5, 2020
Removing white space non-numeric characters parenthesis spaces hyphens of Phone Number formatting in MySQL Query Statement
This is God of All Small Things.
You have phone number with too many formattting like
(444) 444-4444
(555)555-5555
800-123-4567
877 987-4563
and you want to QUERY it in MySQL like "4085439351" --- you will have to write a trigger and use it as function in your MYSQL QUERY STATEMENT
STEP#1 -- WRITE A QUERY
MYSQL QUERY STATEMENT
MYSQL QUERY STATEMENT
SIMPLE - ISN'T IT???
Friday, November 1, 2019
Wednesday, October 30, 2019
HASH Algorithm in MySQL PHP Query - SOLVED
MySQL Query of HASH SHA2 Type of SHA384
PHP CONVERSION into HASH SHA2 Type of SHA384
List of universal HASH types for your references and MD5 is most common used - which can be easily DECODE by hash machines in seconds.
Tuesday, October 15, 2019
Cordova MySQL PHP Remote Database functionalities -- SOLVED
After bang bang & kickass searches and tens of pages & trial and error -- here come simplest solution for CORDOVA - MYSQL - PHP REMOTE SERVER DATABASE CONNECTIVITY for you. Hope you dont have to PULL YOUR HAIR & GO BALD (as am already bald & getting married on 12th December 2019)
CORDOVA -- CRUD FORM / RESULT PAGE
REMOTE CRUD PHP PAGE
I would like to thank Code Sundar and Yogesh Sharma --- thank you nerds.
HOPE YOU WILL ENJOY IT!!! PEACE-V
Monday, June 1, 2015
PHP MySQL - Generate Daily Sales Reports
Monday, October 22, 2012
PHP : Array to MySQL Table
Here is How?
1. Collect all form data into an array
$flds = $_POST;
2. Check Every form data has been collected in ARRAY
print_r($flds);If things are fine...
3. There is one more things that is to remove "submit" button field
Count Total # of Arrays $carray = count($flds);4. Remove "Submit" Array:
array_splice($flds,$carray);5. If you want to add few fields with default values -- the put them in form HIDDEN FIELDS or Try this to add MANUALLY:
$flds["new_field"] = "new_field_value";5. Write a Function to extract values from array and insert into MySQL Table
function mysql_insert_array($table, $data) {
foreach ($data as $field=>$value) {
$fields[] = '`' . $field . '`';
$values[] = "'" . mysql_real_escape_string($value) . "'"; }
$field_list = join(',', $fields);
$value_list = join(', ', $values);
$query = mysql_query("INSERT INTO `" . $table . "` (" . $field_list . ") VALUES (" . $value_list . ")") or die('Error in Inserting from ARRAY : ' . mysql_error());
return $query;
}
6. FINAL NAIL to Good Old Frame for "Wall of Fame" :
mysql_insert_array("tablename",$flds);
Note: This function can be used without hesitation anywhere, where there is no 2nd table or cross table data storage. Copy code BINDAAS-ly...
Wow!!!! That's Called Music...
It is shameful, even after 8 years into PHP. Never used it. Although the concept was there at cornor of my mind for very longtime (about 5 years) --> That $_POST is an ARRAY ITSELF.Finally, I worked my way out today for my client Yellow Cab Airport Taxi
Hope you like it...
Monday, September 12, 2011
Creating a Store Locator with PHP, MySQL & Google Maps
This tutorial is intended for developers who are familiar with PHP/MySQL, and want to learn how to use Google Maps with a MySQL database to create a store locator-type app. After completing this tutorial, you will have a database of locations and a webpage that lets a user enter their address and see markers on a map for the locations nearest to them, within a chosen distance restriction.
Monday, June 14, 2010
Introduction to MySQL Triggers
a trigger is a rule that you put on a table which basically says, whenever you DELETE, UPDATE or INSERT something in this table, also do something else. For instance, we might want to log a change, but instead of writing two separate queries, one for the change, and one for the log, we can instead write a trigger that says, “Whenever this row is updated, create a new row in a different table to tell me that the update was made”. It adds a little overhead to the initial query, but since there are not two packets traveling to your database to do two separate things, there is an overall performance gain (in theory anyway).
Wednesday, June 2, 2010
Using MySQL, Joins
using the SQL JOIN Syntax. Most databases have multiple tables to avoid repeating data. i.e. why enter the details of a customer over and over again.
Thursday, February 18, 2010
Google Map API -- using MySQL & PHP
The example in the article is based on census data. The search screen provides a form to enter a zip code. The results page shows population density for the zip code selected and adjacent zip codes with color-coded "push pins." The map can be moved with a left-click, drag mouse action, and the scale can be changed with the zoom control in the upper left corner of the map.