IBEX
  • Home
  • Software Developers
  • Electronic Designers
  • AI Integration
  • Product Design
☰
  • Home
  • Software Developers
  • Electronic Designers
  • AI Integration
  • Product Design
  • FAQ
  • About Us
  • Contact Us
  • Portfolio
  • Resources

Cloud Development

Our resources for other developers, designers and engineers.

Cloud Development

Category: Queries

/MySQL / Queries /
  • DELETE(1)

  • INSERT(4)

  • SELECT(19)

  • UPDATE(11)

  • WHERE(2)

  • Working on live databases(1)


open all | close all
..Quick Access
.Quick access
Special characters and translations
Useful colours
.Design
Legal
Digital Markets Act (EU)
.Digital Markets Act Overview
Digital Services Act (EU)
.Digital Services Act Overview
GDPR (EU)
.GDPR Overview
Online Harms Bill (UK)
.Online Harms Bill Overview
Web Design
Screen Sizes
.IDE's
Visual Studio Code
Extensions
SFTP by Natizyskunk
.1 Set up VS Code for web development
.2 Create new VS Code web project
.Providers / Web Platforms
AWS (Amazon Web Services)
AWS Tools
AWS on Linux
Elastic Beanstalk
Databases
RDS With Elastic Beanstalk
PHP Applications
cron scheduled tasks
File locations
FTP into an Elastic Beanstalk environment
php.ini making changes
Set Up A PHP Environment
.Elastic Beanstalk Basics
htaccess
SSH Login
RDS-Relational Database Service
Aurora
.Create New Aurora RDS
Aurora vs MySQL
Backup of databases
RDS Security
RDS With Elastic Beanstalk
S3
.S3 General
Creating a S3 bucket
Delete S3 File/Object
Download S3 File/Object
List S3 Objects
Rename Object
Upload A File From A Form
Upload A Server File
SDK
.Install SDK
Cloudflare
Geolocation
Read users country code
Turnstile
Using Cloudflare Turnstile (Implicit form)
Google
Google Analytics
Using Google Analytics without requiring EU cookie law consent
Google Maps
Using Free Google Maps
reCAPTCHA
reCAPTCHA Control Panel
reCAPTCHA see here
Tools
Performance
Server performance monitoring tools
Post Codes
postcodes.io
Browsers
Debugging Pages
CSS
.CSS Basics
.CSS General
Adding a .css stylesheet (default stylesheet)
Adding styles within an html File
Class and ID names
CSS Combinators
Nested CSS identifiers
.Debugging CSS
Debugging CSS
.Examples
Responsive
Multi / single column depending on screen size
Adding a .css stylesheet (default stylesheet)
Centered Page
Classes Of Things
Clear Floats
Creating A Page On A Background
Draw Box
Hide Items Using CSS
Insert Margin
Positioning An Image
Rows Of DIV Boxes
Show Div Border
Special Site Message
Text Effects
Align
Horizontal Align
Rows Of DIV Boxes
Vertical Align
Animation
Spininng circle
Background
Background Colour
Background Images
Background Linear Colour Transitions
Multiple background images
Border
.Border
Border as seperator
Browser
Browser window
iPhone zooms page content
Button
Button auto size
Button from css (turn link into a button)
Columns
.Columns general
CSS Files
import
Defines
.CSS Defines
Display
inline-block
Visibility
Files
CSS File Paths
Include css file in another css file
Paths to images etc
FlexBox
Examples
Center aligned items flexbox
Center aligned items flexbox
Float
Clear Floats
Fill remaining width
Footer
Force footer to always be at the bottom of the screen
Forms
.Form css basics
Checkbox
input boxes
Label
Radio Buttons
Safari on iPhone zooms screen in
select
Submit button
textarea
Hidden
Hide and unhide an element
Images
.Images General
Alter Image
Background image
Border
Curved Corners
Image Size
Lazy loading images
Links
Links
Lists
.Lists
Circled numbers list
Margin
.Margin general
Maths
Pixels and percent Calculations
Override Styles
Hide and unhide an element
Overriding Styles
Padding
.Padding general
Positioning
.Positioning
Absolute positioning
Responsive CSS
Images
Responsive menu – Simple using only CSS
Screen Resolution
Stopping zooming to desktop page
Spacing
Combined values
Margin
Text
<pre> tag
Bold
Color
Font
Font size
Google Fonts
Line Height
Text
Text Align
Text Containers
Text effects
Underline
Vertical Align
Wrapping
Variables
CSS Variables
Visibility
Visibility
Zoom
iPhone zooms page content
.Useful CSS
Calculations
Comments
Cursor / Mouse Pointer
Hover
Important
Rollover buttons
Scroll Bar Box
Tables
Width
z-index
zindex
DNS
DNS for email send
Email
Troubleshooting
Sending email test tools
DNS for email send
Email and Cloudflare
htaccess
.DEFAULT .htaccess FILE TO USE
Comments
Error Pages
Redirect Page
Redirect to new domain
Redirect wordpress pages
Rewrite rules
Security htaccess rules to include
HTML
.HTML General
Images
Line Break
Title, description etc
Username and password in URL’s
Files
File download from a string
Paths
Forms
Example Forms
.Typical form example
Simple Site Log In Form
Files
File upload forms
Input Box
.Input Boxes
Issues
Safari on iPhone zooms screen in
Radio Buttons
Radio Buttons
Raw html
Forms raw html
reCAPTCHA
Auto submit on reCAPTCHA verify
Disabling the reCAPTCHA badge in the bottom right of every screen
Validate reCAPTCHA response in PHP
Styling
Styling Forms
Submit
Submit Button
Submit form
.Form General
Array Values
Auto select element when page loads
Checkbox
Date input fields
Emulate a form submit in php code
Hidden
Refresh after form POST
Select Box
TextArea
Icons
Favicon
iOS home screen icon
Images
Images
Images for social media posts
Lazy loading images
Screen Sizes
Links
.Links General
Anchor tags
Go back
Nofollow
Rollover / Hover Pop Up Text
Style Links
Tool tip text
Username and password in URL’s
Lists
Lists General
Multiple Column Lists
Pop Up Windows
Simple Pop Up Window
Raw HTML data over the wire
POST-application/x-www-form-urlencoded
POST-multipart/form-data
SEO
Logo's and Images
Indicating organisation logo for use in search results
HTML Quick Reference
nofollow
Mobile
Android
WebView
Apple iOS
iOS home screen icon
Safari on iPhone zooms screen in
MySQL
Columns
AUTO INC
Columns Data Types
DateTime general
Text fields
TEXT or VARCHAR
Connecting
Connect To Database
Functions using database connection
DateTime
Date
DateTime CREATE TABLE
DateTime general
DateTime INSERT UPDATE
DateTime SELECT
DateTime WHERE
Errors
MySQL Errors
EXAMPLES
Event Logging Table
HTML Forms Update Database
Lock row for modifying
Text field used to store limited number of old events
Universal Settings Table
Import
Importing MySQL Table From An Uploaded CSV File
PHP Versions
PHP4 Old Code
Connecting
PHP4 Connect To Database
Queries
PHP4 .SELECT General
PHP4 DELETE
PHP4 INSERT
PHP4 UPDATE
PHP7 updating old database code
phpmyadmin
Searching An Entire Database
Queries
DELETE
.DELETE General
INSERT
.INSERT General
DateTime INSERT UPDATE
INSERT or UPDATE ON DUPLICATE
Null row setting
SELECT
.SELECT General
Case Sensitivity
Count – Get number of results
DateTime general
DateTime SELECT
DateTime WHERE
GROUP BY
IN – is value IN a list of values
Is A Name Taken
JOIN to get results from 2 tables
LIKE to search within text fields
LIMIT Results
Manipulating Returned Results
Maths based results
Null
ORDER BY
Querying Across Tables
Strings
Ternary Operator if( , , )
UPDATE
.UPDATE general
DateTime
DateTime INSERT UPDATE
INSERT or UPDATE ON DUPLICATE
Null
Null row setting
Numeric values
Random value per row
Ternary Operator if( , , )
Toggle boolean value
Update From Row + Value Array
WHERE
DateTime WHERE
WHERE
Working on live databases
Useful queries
Random
Create Random Value Within A Query
Sanitising
mysqli_real_escape_string
Prepared statements
Tables
Auto Index Row
Auto Timestamp
Columns Data Types
Indexes
Reserved Names
TEXT or VARCHAR
PHP
.Debugging
Debugging Arrays
Debugging PHP
Strange Errors Checklist
Useful Debugging Examples
.General PHP
.General PHP
Die
Differences To C and C++
Documentation
.Server
PHP Server General
API's
.API’s general
API Tools
Getting posted data
See curl for POST, GET, etc examples
Bits
Bitwise Operators
Boolean
Bitwise Operators
Is value bool
State ? ( ) : ( ) Ternary Operator
True / False
Chart
CanvasJS
.CanvasJS Geenral
Classes
Create a new class
Global members of a class
Inheritance of a class
Command line
Command line
Compare
== vs ===
Console
Console
cron
Creating a cron job
Curl
CURL GET Request
Curl Options
Curl POST Request
PUT request
Remote files
Date And Time
Useful Code
Convert DateTime Formats
Convert seconds to
Day Names
Days until / Days Ago
Time since last seen
Date And Time
Duration
Time Difference
Time Zones
Defines
PHP Defines
Echo
Echo
Print vs Echo
Email
Email and Cloudflare
Email never arrives
Sending Email
Encode
Base64 Encoding
Errors
Adding Message To PHP Error Log
Debugging PHP
Error Handling
Throw an exception
Try Catch error handling
etc
Bitwise Operators
Files
Creating Debug Output File
Does File Exist
echo a File
Importing MySQL Table From An Uploaded CSV File
Path to php
Paths
POST Files
Read file
Remote files
Running scripts and executibles
Temporary File
Working with directories
Working with files
Write File
For
For each
Forms
Checking form input
Input – Int
File uploads
File upload forms
File Upload Troubleshooting
POST File uploads
Upload Photo
.API’s general
Array Values
Converting Form Text Fields
Getting Form Values
Getting posted data
Refil Form Values
Simple Site Log In Form
Functions
.Functions General
Assign value in an if statement
Functions using references/pointers
If function exists
Returning Multiple Values
If, Comparison, etc
== vs ===
? True False Test
Assign value in an if statement
If
Include
.Include General
Detecting Name Of Page Include A File
Referencing Site Root
JSON
Dynamic json file
json data examples
json decode-convert to PHP array
json encode
Location
Get a users latitude and longitude
Loops
HTML friendly loops
Loops
Maths
Divide
Modulo
Positive / negative
Power of (Exponentiation)
Rounding values
Memory
Array
.Array General
Array issues
Array Of SQL Results
Comma Separated Strings
Converting Arrays
Create Array From
Debugging Arrays
For each
Key => Value Arrays
Manipulating Arrays
Merging Arrays
Multidimensional arrays
Search array
References (pointers)
.References general
Functions using references/pointers
Built In Superglobal Variables
Constants
Converting Values in PHP
Global Variables & Defines
Variable Functions
Variables
Namespace
.Namespace general
Plugin namespace
Null
Using Null
Other Web Sites
Reading content from other web pages
Page Control
Blank page until its loaded
Close Browser Window
Do not cache page
Get Page URI / URL
Getting URL Arguments
Redirect and Reload
Reload page
Return HTTP response before continuing
URL, URI and URN
PHP specific
Path to php
Ping
Pinging from a web page
Python
Path to Python
QR Codes
QRCode.js generate QR codes in browser
Random
.Random
Generate random string
openssl_random_pseudo_bytes
Regex Regular Expressions
.Regex
Regex examples
Regex testers
Remove common words
Using regex in PHP
Security
PHP Password Hash Function
Sanitising & encoding strings
Simple Site Log In Form
Sessions
$_SESSION General
$_SESSION security
Admin Users
Spreadsheet
PhpSpreadsheet
.PhpSpreadsheet basics
Installing PhpSpreadsheet
Strings
.Using Strings-Basics
Comma Separated Strings
Compare Strings
Convert Strings
Convert Strings to Array
Converting Form Text Fields
Heredoc string
Import file into a string
Limit string length
Remove Characters
Remove common words
Sanitising & encoding strings
Special Characters In Strings
Using Strings-Characters
Using Strings-Extracting
Using Strings-Formatting
Using Strings-Parsing
Using Strings-Replace and Insert
Using Strings-Searching Strings
Using Strings-Values
Using Strings-Verifying Strings
Threads
Execute a php file in the background
Manually trigger cron
Prevent PHP function being run on different threads
Return HTTP response before continuing
Twitter
Integrating Twitter
URL's
Detecting Name Of Page Include A File
Getting Site URL
Getting URL Arguments
Site Root
XML
Convert from XML
Convert to XML
simpleXML
SEO
.SEO basics
Servers-Hosting
Ubuntu
Apache
Apache Config (new server setup)
PHP
PHP Info
php.ini
sendmail
SQL Server (Microsoft)
1.RESOURCES
Good SQL Coding Resources
2.OVERVIEW AND ADMIN
Backing Up SQL Server
Installing, Monitoring, Updating & Removing SQL Server
Overview and Editions
SQL Server Express Edition
Troubleshooting SQL Server
3.DATABASE DESIGN
Columns
Auto Incrementing Value
Columns (Fields)
Databases
Indexes
Tables
Users
Queries
ALTER
Increase the size of a nvarchar column
DELETE
General Delete Statements
INSERT
DateTime Now
General Insert Statements
Get AutoIncrement Value For A New Record
Reading Results
Checking For Null Values
SELECT
Count Results
DateTime in SELECT queries
General Select Statements
GROUP BY
ORDER BY
Parameters In Queries
Sanitizing Queries
Sub Queries
TOP (LIMIT in mySql)
Statements General
DateTime
Does Table Exist
NULL
Specifying Values In Statements
WAITFOR
UPDATE
General Update Statements
Parameters In Queries
Sanitizing Queries
Wordpress
Actions
.Actions general
Archive page actions
Page content actions
Post & Page content actions
pre_get_posts
Useful actions – In page
Useful hooks – High level
wp-admin block users from accessing
Admin area
Creating admin UI elements
Create an admin page
Tabbed admin page
Admin top toolbar
Display admin area warning if plugin not active
Number of posts, pages etc shown
Remove WordPress top black bar
Styling admin view
wp-admin block users from accessing
AJAX
AJAX Background Post
AJAX Background Post and Get Response
AJAX Background Refresh Status From Server
AJAX Dynamic Page Content
Creating an API URL
Nonce Functions
Avatar
Override Avatar
Caching
Disable Page Caching
Commenting
Comments Display
Leave a comment form display
Turn Off Commenting
Cron scheduled tasks
cron examples
5 min cron with catchup if not called every 5 mins
.WordPress Cron General
Creating cron function
Debug cron
Manually trigger cron
System triggered WP-Cron
Database
Built in DB functions
Options API
Errors
Errors
Example Uses
DB table list of providers
Queries
$wpdb->prepare
DELETE
INSERT
INSERT or UPDATE
SELECT
UPDATE
$wpdb
Creating Custom Tables
Other Databases
User Meta data storage
WordPress Database
DateTime
Local time
Time difference
Debugging Wordpress
Debug tools
Debug Bar plugin
Query Monitor
Errors
Plugin could not be activated because it triggered a fatal error
wp_error
Issues
Cannot send session cookie – headers already sent by…
template_redirect etc not called
Debug Mode
debug.log file
Debugging checklist/tips
Is define active?
WordPress simple checks
Development
The Loop
Adding Arguments Before The Loop Starts
Posts Based On Date
Adding Buttons To The HTML Editor
Using WordPress Dev Javascript
Email
Does email exist
Email and Cloudflare
Email never arrives
Filter Email
Send email
Validate email address
WordPress user email addresses
Endpoints
Adding Custom Endpoints
Files
File download from a string
Uploads Directory
WordPress Paths
Working with directories
Filters
Creating a filter call
Receiving a filter call
Forms
Adding Custom Endpoints
Form nonce
Nonce Functions
functions.php
Including other files
Hooks
WordPress hooks
Issues and errors
Uncaught ReferenceError: jQuery is not defined
Javascript
Javascript in WordPress
Langauges
Polylang
Where are Polylang translations stored
WPML
Copy translations to another website
Where are WPML translations stored
.Translation functions
Language Files
Translation Software & Plugins
Using tokens, keys, etc
Links
WordPress Paths
Login Logout
Keep Users Logged In
Login Logout
Logout Link
Menu
Menu hooks
Namespace
Plugin namespace
Nonces
.WordPress nonces general
Nonce Functions
Pages
Adding Custom Endpoints
Alter Page
Creating an API URL
Detect Page
Homepage
Post
Redirect to page
Redirect WordPress default pages
WordPress install sub folder
PDF
jsPDF
.jsPDF general
Generate Multipage PDF from Single Canvas of HTML
Generate multipage PDF of text
PHP
PHP Files
Plugin API
.Plugin API General
Adding Custom Endpoints
Useful hooks – High level
Plugins
Create Your Own Plugin
Database
Plugin update database
Update Plugin
.Plugin updating general
YahnisElsts plugin-update-checker
.Create New Plugin
Distribute Your Plugin
Plugin class
Plugin hooks
Plugin namespace
Resources For Plugin Creation
Deactivate plugin
Display admin area warning if plugin not active
Plugin release checlist
Sanitising
Sanitising Functions
Search
pre_get_posts
WordPress search
Sessions
$_SESSION in wordpress
Keep Users Logged In
Sessions In WordPress
Settongs
Options API
Shortcodes
.Shortcodes General
Blank shortcode output
Sharing values between shortcodes
Using shortcodes inside a shortcode
Site
WordPress install sub folder
WordPress site info
Styling
Remove WordPress top black bar
Styling admin view
Themes
Child Themes
Update child theme
YahnisElsts plugin-update-checker
.Create A Child Theme
Add your own footer into footer.php
Add your own header into header.php
Add your own sidebar content
Using Google Fonts
Favicon
Template Themes
Threads
Execute a php file in the background
Users
.Users
Access User Info
Delete User
Keep Users Logged In
Login Logout
User Meta data storage
User Registration
wp-admin block users from accessing

  • Other IBEX Resource Sites
Home | Terms & Conditions | Privacy Policy
© Copyright IBEX Technology Ltd. All rights reserved. IBEX is a registered trademark of IBEX Technology Ltd.
Footer Logo