• Home
  • Tools
    • Color Chart
  • Software
    • Windows tricks
      • Windows 11 Speed Up Tricks
      • Windows Command Prompt CMD
    • Android Phone
      • Android – Dangerous Settings to Turn Off
    • Projects
      • Copy Files
      • Php Autoscript
      • Web Tools
  • Payments
  • Notes
  • System Tips

Notes

ACCESS 2022 | Browsers | Css | Htacess | Html | Html5 | Javascript | Microsoft Excel | Mysql | Mysql Dumps | Php | Vb.net | VBscript | Windows <=8 | Windows >=10 | WP | WP Plugin | WP Themes | _Misc Software |

ABCDEFGHIJKLMNOPQRSTUVWXYZ
ON
PRT
OFF

<- Look Inside Data
Conditions:
Order:
1|2|3|4|5|6|7|8|
50 Language Operation Title
Keywords
Application
Code Languageid
Show Html
Show Iframe
Make Public
Viewed
Viewed Date
Javascript Object .select(); Clipboard
Clipboard object of document.getElementById().select;
Javascript



0
07/29/2022
Browsers Customizing 10 Handy Firefox About:config Hacks
firefox configuration fire fox
Takeaway: If you really want to fine-tune your Firefox functionality, you have to roll up your sleeves and tinker with the about:config page. Jack Wallen shares some simple hacks to make Firefox work the way you want.

Unless you�re a Firefox power user, you may not be familiar with the about:config page. The Firefox about:config page is not so much a page as it is a somewhat hidden configuration section. It�s hidden because it�s fairly powerful and not nearly as simple to use as the standard Preferences window. In the about:config page, you have to know what you are doing or you can mess things up a bit. In fact, when you attempt to go to that page for the first time, you have to accept an agreement (which is really just a warning) before you can continue.

How this page works is simple. You reach the page by entering about:config in the address bar. There are entries (one per line) that handle various types of configurations. Each entry has a searchable keyword. The entries can be of Boolean, integer, or string value. Entries contain Name, Status, Type, and Value. Typically, you will be modifying only the Value, by double-clicking on it and making the change. With all of that in mind, let�s take a look at 10 of the best ways you can �hack� the about:config page.

Tip
If Firefox is fubar�d because you accidentally misconfigured about:config, you can fix it in one of two ways:

Make a backup of your prefs.js file before you start editing. Then, if something goes wrong, you can restore it by copying it over the corrupt file.
If you can�t restore via a backup prefs.js file, you can exit Firefox and issue the command firefox -safe-mode to bring up the Firefox Safe Mode screen. Then, just select Reset All User Preferences To Firefox Defaults. Note: This will restore all user preferences to their default values.

1: Speed up Firefox

This hack requires a few steps. Search for pipelining in the filter and you should see:

network.http.pipelining: Change this to true.

network.http.proxy.pipelining: Change this to true.

network.http.pipelining.maxrequests: Change this to 8.

Now search for max-connections and you should see:

network.http.max-connections: Change this to 96.

network.http.max-connections-per-server: Change this to 32.

2: Disable antivirus scanning
This is only for the Windows version. If you�re downloading large files, this scanning can seriously slow things down. And since you will most likely scan the downloaded file anyway, you�ll probably want to disable this. Of course, if you are uber paranoid (not a bad trait for computing), you might want to leave this entry alone.

To disable antivirus scanning, search for scanWhenDone and you should see:

browser.download.manager.scanWhenDone: Change this to false.

3: Open Javascript popups as tabs
If a popup window lacks the features of a browser window, Firefox will handle it like a popup. If you would prefer to open all windows, including popups, as new tabs, you need to tell Firefox in about:config. Search for newwindow and you will see three entries. Of those three entries, you will want to modify:

browser.link.open_newwindow.restriction: Change this to 0.

4: Spell checking in all fields
By default, Firefox checks spelling only in multiple-line text boxes. You can set it to check spelling in all text boxes. Search for spellcheckdefault and you should see:

layout.spellcheckDefault: Change this to 2.

5: Open search bar results in new tab
When you use the search bar, the results display in the current tab. This can be a nuisance because you will navigate out of the page you are currently in. To make sure Firefox always opens search results in a new tab, search for openintab and you should see:

browser.search.openintab: Change this to true.

6: Auto export bookmarks
In Firefox 3, bookmarks are automatically saved and exported for you. The only problem is that by default, they�re saved as places.sqlite instead of the more convenient bookmarks.html. To change this setting so that they can be easily re-imported, search for autoExportHTML and you should see:

browser.bookmarks.autoExportHTML: Change this to true.

7: Disable extension install delay
One of the few gripes I have with Firefox is the silly countdown you must endure every time you want to install an extension. Fortunately, this can be disabled. Search for enable_delay and you should see:

security.dialog_enable_delay: Change this to 0.

8: View source code in an external editor
When you need to view the source of a page, it opens up in browser popup. Most developers would probably like to have that opened in their favorite editor instead of having to cut and paset. To do this, there are two entries to modify. Search for view_source.editor and you will see:

view_source.editor.external: Change this to true.

view_source.editor.path: Change this to the explicit path to your editor of choice.

9: Get more add-on search results
When you do a search in the Add-on window, you�ll see just five results. You might find it more efficient to increase this number. Search for getAddons and you should see:

extension.getAddons.maxResults: Change this to 10 (or higher, if you want to see even more).

10: Redefine the Backspace button
Did you know you can configure Firefox to use the backspace button to either go back a page or go up a page? This keeps power users from having to go back and forth from the keyboard to the mouse. Search for backspace and you will see:

browser.backspace_action: Change this to 0 for previous page and 1 for page up.
Browsers



1867
09/09/2023
Css Formatting ??????Keeping Place Holders
placeholder



Persistent background text

Css



0
01/07/2026
Windows <=8 Network Access Skydrive Like You Would A Hard Drive
skydrive sky drive map network cid windows live account

Windows 7 may differ the Windows 8 procedure.


  1. Log in to your skydrive account to get your cid:

    First you need to get your cid= number after logging into your Microsoft Skydrive account using your browser. It will have a format like https://skydrive.live.com/?mkt=en-US&v=FirstRunView#cid=8aca12345b98765. Yours may be slightly different since this was the first time I logged in to my account, but the number at the end.

  2. This is the url to map: https://d.docs.live.net/8aca12345b98765/

  3. Open Windows File Explorer

  4. Highlight the word "Computer" on the left hand side.

  5. The network drive Icon will appear at the top middle. Click it.

  6. Use one of the higher drive letters and copy and past the new url into the folder box. Then save.

  7. Windows will try to connect if it can and prompt you for your windows live account user name and password


Now you can copy and save files to your new drive. Just remember the files will only write and read based on your internet connection and speed.



Similar to windows 8 http://rashedtalukder.com/how-to-map-skydrive-folder-on-windows-rt-desktop-mode/
Windows <=8



1136
09/09/2023
WP Database Access Wordpress Connection String
connection string wordpress
WP



2
09/09/2023
Php Date Add Day
add day
Php



3
09/09/2023
Mysql Date ADDDATE - Mysql
add date mysql
Mysql



3
02/15/2024
WP Customizing Adding A Link To The Admin Panel
plugin function.php hyperlink wordpress admin
http://wordpress.org/support/topic/add-link-to-admin-panel

2 cases

1. Plugin
use this plugin : (it'll add a new menu item in your admin panel)

<?php
/*
Plugin Name: Add-Admin-Menu
Author: Sanjay Menon
*/

function mt_add_pages() {

// The first parameter is the Page name(admin-menu), second is the Menu name(menu-name)
//and the number(5) is the user level that gets access
add_menu_page('admin-menu', 'menu-name', 5, __FILE__, 'mt_toplevel_page');
}

// mt_oplevel_page() displays the page content for the custom Test Toplevel menu
function mt_toplevel_page() {
echo '
<div class="wrap">
<h2>New admin menu</h2>
<li><a href="http://www.icore.net.tc"><h3>Author Homepage</h3></a></li>
</div>';
}
add_action('admin_menu', 'mt_add_pages');
?>
OR
2. function.php
You just have to put that piece of code in "functions.php" file inside your WordPress Theme.

function mt_add_pages() {
add_menu_page('admin-menu', 'menu-name', 5, __FILE__, 'mt_toplevel_page');
}
function mt_toplevel_page() {
echo '
<div class="wrap">
<h2>New admin menu</h2>
<li><a href="http://www.icore.net.tc"><h3>Author Homepage</h3></a></li>
</div>';
}
add_action('admin_menu', 'mt_add_pages');

EXAMPLE 2: You may already have developed your own cool admin. No problem, have wordpress link to your admin and use the example modification to check to see if the user is logged in via wordpress. Just add a link to come back. This way wordpress will not mess up your styling you use in your admin.

<?php
/*
Plugin Name: swd_admin
Description: Link to swd admin
Author: Software Web Design
Version: 0.1

example mystuff modification
session_start();
include("config.php");
require_once("../wp-load.php");
if(!is_user_logged_in() && $bypass!=true){
echo "This site is under construction"; exit;
} else { $wordpress=true; $LEVEL=10; $_SESSION['LEVEL']=10; }


*/
add_action('admin_menu', 'swd_setup_menu');
function swd_setup_menu(){
add_menu_page( 'SWD Plugin Page', 'Go to SWD Admin', 'manage_options', 'admin-plugin', 'swd_menu' );
}
function swd_menu(){
echo "<h1>SWD Menu</h1>";
echo " <a href='/swd-admin/boardOfDirectorsView.php'>Board Passwords</a>
<a href='/swd-admin/directorsView.php'>Directors</a>
<a href='/swd-admin/libraryView.php'>Library</a>
<a href='/swd-admin/libraryCategoryView.php'>Library Categories</a>";
}
?>
WP



2389
09/09/2023
_Misc Software Setup Aimersoft Converter Ultimate IFO Option
convert movies DVD file IFO
How to load DVD folders, ISO files and IFO files?

Last Revised: 2013-08-28 11:14:46
2
FAQ for the following product:

DVD Ripper
Video Converter Pro
DVD to iPad Converter

You can follow the two ways below to load DVD folders, ISO files and IFO files.

1. Please click the arrow on the right of the DVD button, and then select Load DVD Folder, Load ISO Files or Load IFO Files to load the files into the program from your hard drive or disc.

2. Please click the File menu and select the corresponding command to load files into the program from your hard drive or disc.

Note:

1. If you select Load DVD Folder, the whole DVD folder will open. It is suggested to select the VIDEO_TS folder, and then you can load all files in this folder including trailers or commercials into the program.

2. If you select Load IFO Files, you had better choose the biggest IFO file containing the main movie, which will help you save much time because you needn't convert unnecessary parts.

Tip: You can right click the IFO files to choose Property to check the size of them.

http://support.aimersoft.com/how-tos/Load-DVD-folder-ISO-IFO.html
_Misc Software



1052
09/09/2023
Mysql Database Alter Table
change table alter table
Mysql



2
09/09/2023
Mysql Query Alter Tables
add field delete alter table rename update table auto increment engine collation
Mysql



1770
09/09/2023
Javascript String Array Information
length array size count
Javascript



1296
09/09/2023
Vb.net String Array Manipulation
count split explode
[Return number of element in array]
dotg.count= items in array

[Split a patterned string into separate elements like a csv file]
myfile="dog,10,cat,40,fish,50"
dotg=split(myfile,",")
Vb.net



1039
09/09/2023
Javascript Text Box Auto Clear Text Box
Input text - auto clear
w






FIND A STORE




onblur="this.value=(this.value=='') ? 'Enter a Zip Code' : this.value;"
onfocus="clearText(this);" value="Enter a Zip Code" />
Javascript



1460
09/09/2023
Php Function Automatically Make Urls Clickable
hyperlinks click email url link
function _make_url_clickable_cb($matches) {
$ret = '';
$url = $matches[2];

if ( empty($url) )
return $matches[0];
// removed trailing [.,;:] from URL
if ( in_array(substr($url, -1), array('.', ',', ';', ':')) === true ) {
$ret = substr($url, -1);
$url = substr($url, 0, strlen($url)-1);
}
//return $matches[1] . "$url" . $ret;
return $matches[1] . "$url" . $ret;
}

function _make_web_ftp_clickable_cb($matches) {
$ret = '';
$dest = $matches[2];
$dest = 'http://' . $dest;

if ( empty($dest) )
return $matches[0];
// removed trailing [,;:] from URL
if ( in_array(substr($dest, -1), array('.', ',', ';', ':')) === true ) {
$ret = substr($dest, -1);
$dest = substr($dest, 0, strlen($dest)-1);
}
return $matches[1] . "$dest" . $ret;
}

function _make_email_clickable_cb($matches) {
$email = $matches[2] . '@' . $matches[3];
return $matches[1] . "$email";
}

function MakeHyperlink($ret) {
$ret = ' ' . $ret;
// in testing, using arrays here was found to be faster
$ret = preg_replace_callback('#([\s>])([\w]+?://[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', '_make_url_clickable_cb', $ret);
$ret = preg_replace_callback('#([\s>])((www|ftp)\.[\w\\x80-\\xff\#$%&~/.\-;:=,?@\[\]+]*)#is', '_make_web_ftp_clickable_cb', $ret);
$ret = preg_replace_callback('#([\s>])([.0-9a-z_+-]+)@(([0-9a-z-]+\.)+[0-9a-z]{2,})#i', '_make_email_clickable_cb', $ret);

// this one is not in an array because we need it to run last, for cleanup of accidental links within links
$ret = preg_replace("#(]+?>|>))]+?>([^>]+?)#i", "$1$3", $ret);
$ret = trim($ret);
return $ret;
}
Php



1617
09/09/2023
Css Formatting Background Changes
background css fixed url background-
Css



1621
09/09/2023
Css Formatting Bullets And Numbering
bullets li ul ol
Css



2134
09/09/2023
Microsoft Excel Form Button To Go To A Certain Sheet
button sheet
Microsoft Excel



2
09/09/2023
Css Formatting Centering A Table
center table
Css



1744
09/09/2023
WP Customizing Change Footer Credits On WordPress
footer credits add_filter
WP



1622
09/09/2023
Javascript Date Check For Valid Date
valid date
Sample html:




Valid date format: mm/dd/yyyy




The Script:
Javascript



1548
09/09/2023
Php Files Clean Url
? url clean & #
if you ever add variables to the url line you need to use this function
urldecode for passing gets.
$urlpart1=urldecode($urlpart1);
$urlpart2=urldecode($urlpart2);
$url="http://www.mydomain.com?$urlpart1&$urlpart2;

Do not use it on a completed url. It will totally mess everything up.
Php



1325
09/09/2023
Vb.net Keyboard Clipboard
clipboard html text
Vb.net



1205
08/05/2024
Windows >=10 Query Cmd Ftype|clip
cmd ftype
Windows >=10



0
12/02/2025
_Misc Software Query Cmd Prompt
cmd
_Misc Software



0
12/02/2025
Vb.net Controls Combo Box Control
combo value archive example
Vb.net



4
07/27/2025
Javascript Function Comment Out Lines
comment rem
Creating Single Line Comments
To create a single line comment in JavaScript, you place two slashes "//" in front of the code or text you wish to have the JavaScript interpreter ignore. When you place these two slashes, all text to the right of them will be ignored, until the next line.

These types of comments are great for commenting out single lines of code and writing small notes.

JavaScript Code:


Display:
I have comments in my JavaScript code!
Each line of code that is colored red is commented out and will not be interpreted by the JavaScript engine.

Creating Multi-line Comments
Although a single line comment is quite useful, it can sometimes be burdensome to use when disabling long segments of code or inserting long-winded comments. For this large comments you can use JavaScript's multi-line comment that begins with /* and ends with */.

JavaScript Code:


Display:
I have multi-line comments!
Quite often text editors have the ability to comment out many lines of code with a simple key stroke or option in the menu. If you are using a specialized text editor for programming, be sure that you check and see if it has an option to easily comment out many lines of code!
Javascript



1507
09/09/2023
Mysql Query Concat
concat mysql query
UPDATE parts SET pdf=CONCAT(partid,'.pdf'), part_image=CONCAT(partid,'.jpg') WHERE pdf=""

This example numbers the picture names to match the id of the record.

APENDING data before and after a field.
UPDATE `iwspackage` SET iwspackageimg=CONCAT('package',packageid,'.jpg');

UPDATE ads SET img1=CONCAT(adid,'a.jpg'), img2=CONCAT(adid,'b.jpg') , img3=CONCAT(adid,'c.jpg') , img4=CONCAT(adid,'d.jpg'), pdf=CONCAT(adid,'.pdf') WHERE adid>7;
Mysql



1933
09/09/2023
Php Database Concat - Combine Fields Or Text
add join concat
Php



2
09/09/2023
Javascript Function Confirm()
yes no cancel message box
Javascript



2000
09/09/2023
Php Customizing Convert Words Into A Graphic
text graphic image convert
$im = imagecreate(400, 30);

// Create some colors
$white = imagecolorallocate($im, 255, 255, 255);
$grey = imagecolorallocate($im, 128, 128, 128);
$black = imagecolorallocate($im, 0, 0, 0);

// The text to draw
$text = 'Testing...';
// Replace path by your own font path
$font = 'arial.ttf';

// Add some shadow to the text
imagettftext($im, 20, 0, 11, 21, $grey, $font, $text);

// Add the text
imagettftext($im, 20, 0, 10, 20, $black, $font, $text);

// Using imagepng() results in clearer text compared with imagejpeg()
imagepng($im);
imagedestroy($im);


*************************************
The below script would be called with a tag like this from a page:

Header("Content-type: image/gif");
if(!isset($s)) $s=11;
$size = imagettfbbox($s,0,"/fonts/TIMES.TTF",$text);
$dx = abs($size[2]-$size[0]);
$dy = abs($size[5]-$size[3]);
$xpad=9;
$ypad=9;
$im = imagecreate($dx+$xpad,$dy+$ypad);
$blue = ImageColorAllocate($im, 0x2c,0x6D,0xAF);
$black = ImageColorAllocate($im, 0,0,0);
$white = ImageColorAllocate($im, 255,255,255);
ImageRectangle($im,0,0,$dx+$xpad-1,$dy+$ypad-1,$black);
ImageRectangle($im,0,0,$dx+$xpad,$dy+$ypad,$white);
ImageTTFText($im, $s, 0, (int)($xpad/2)+1, $dy+(int)($ypad/2), $black, "/fonts/TIMES.TTF", $text);
ImageTTFText($im, $s, 0, (int)($xpad/2), $dy+(int)($ypad/2)-1, $white, "/fonts/TIMES.TTF", $text);
ImageGif($im);
ImageDestroy($im);
?>

It is very important to realize that you cannot put any HTML tags in this file. There should also not be any spaces or blank lines before or after the tags. If you are getting a broken image using this script, chances are you have a stray carriage return somewhere outside the PHP tags
Php



1860
09/09/2023
Javascript Formatting Converting Numbers To Strings Using ToFixed()
fixed decimal places number format
Question: When I convert numbers to strings, can I guarantee exactly n decimal places in the resultant string?

Answer: The simplest way of converting a number variable to string is to concatenate the variable with an empty string. However, this conversion does not guarantee the number of decimal places in the string. If you want exactly n decimal places in the conversion result, use the toFixed method, like this:

str = x.toFixed(n);

Here x is the number to be converted, the string str is the conversion result, and n specifies how many fractional decimal places must appear in the resultant string. The method can also be used without the parameter n - you can simply write: x.toFixed(), which is equivalent to x.toFixed(0). Consider these examples:

var x = 2.31;
var s = x.toFixed() // result: '2'
var s0 = x.toFixed(0) // result: '2'
var s1 = x.toFixed(1) // result: '2.3'
var s2 = x.toFixed(2) // result: '2.31'
var s3 = x.toFixed(3) // result: '2.310'
var s4 = x.toFixed(4) // result: '2.3100'

The toFixed method might not always ensure the correct rounding of the conversion results. For example, (0.947).toFixed(0) may produce either '0' or '1', depending on the browser; in most versions of Microsoft Internet Explorer (0.947).toFixed(0) produces '0' while in Mozilla Firefox or Google Chrome the same conversion produces '1'. Below are the actual conversion results in your browser:

(0.947).toFixed(0) // '0' ('0' in MSIE, but '1' in Firefox)
(0.0947).toFixed(1) // '0.0' ('0.0' in MSIE, but '0.1' in Firefox)
(0.00947).toFixed(2) // '0.00' ('0.00' in MSIE, but '0.01' in Firefox)
(0.000947).toFixed(3) // '0.000' ('0.000' in MSIE, but '0.001' in Firefox)

For correct rounding, use the Math.round method or Math.round in combination with toFixed like this:
x=0.947; s0=(Math.round(x)).toFixed(0) // '1'
x=0.0947; s1=(Math.round(10*x)/10).toFixed(1) // '0.1'
x=0.00947; s2=(Math.round(100*x)/100).toFixed(2) // '0.01'
x=0.000947; s3=(Math.round(1000*x)/1000).toFixed(3) // '0.001'
Javascript



1552
09/09/2023
Php Database Count
count query

count records that link to same file


$sql="SELECT * FROM eqMaintenance WHERE maintenanceid = $value_";
$r->dbsql($sql);$row=$r->data1;
$upfile="../maintenance/".$row['img'];

Start count query


$sql="SELECT count(img) as dog FROM eqMaintenance WHERE img='".$row['img']."' GROUP BY img";
$r->dbsql($sql);$dog=$r->data1[0];
if(file_exists($upfile) && $dog<2)unlink($upfile);

//example from php file creator

SELECT hide,count(hide) as dog FROM `invoice` GROUP BY hide LIMIT 0, 30

SELECT invoices.customerid, `last_name` , `first_name`, COUNT(`last_name`) AS dog,
count(if(`date`< ADDDATE(NOW(), INTERVAL -365 DAY), 1, null)) AS year1, count(if(`date`>= ADDDATE(NOW(), INTERVAL -365 DAY), 1, null)) AS year0, count(if(`date`< ADDDATE(NOW(), INTERVAL -730 DAY), 1, null)) AS year2
FROM `invoices`
INNER JOIN `customer` ON customer.customerid = invoices.customerid
GROUP BY invoices.customerid, `last_name` , `first_name`
ORDER BY year0,year1
Php



3
12/28/2023
Php Function Create Graphic Button On The Fly
grapic button image color
session_start();
session_register('sessioncode');
//Header("Content-type: image/jpeg");
//echo "beg test";
$filename = "images/image1.gif";
$im = imagecreate(55, 15);
$bg = imagecolorallocate($im, 255, 255, 255);
$textcolor = imagecolorallocate($im, 100, 100, 100);
imagecolortransparent($im, $bg);
//imagestring($im, 5, 0, 0, substr(strtoupper(md5("Myshit".$sessioncode)), 0,6), $textcolor);
imagestring($im, 5, 0, 0, substr(strtoupper("Myshit"), 0,6), $textcolor);
imageGif($im,$filename);
ImageDestroy($im);
//***************************************************************
$filename = "images/image.gif";
$img = ImageCreate(200,20);
$red = ImageColorAllocate($img, 255, 0, 0); $white = ImageColorAllocate($img, 255, 255, 255);
ImageString($img, 3, 3, 3, "Uh, this is an image!", $white); ImageGif($img, $filename);

ImageDestroy($img);
echo "";
echo "Finished";
exit();
?>
Php



1235
09/09/2023
Vb.net Variables Create New Arrays
array null
Read through entire array
For Each fruit As String In MV
Console.WriteLine(fruit)
Next

max number of elements array.length
For L = 0 To MV.GetUpperBound(0) elements stored



Either

Dim strings = New String() {"a", "b", "c"}
or

Dim strings() As String = {"a", "b", "c"}
or strings() As String = {}
should work
Vb.net



2
09/09/2023
Windows <=8 Customizing Creating Your Own Menu Using The Windows Toolbar
toolbar too bar desktop desk top right click folder task bar
Windows <=8



1296
09/09/2023
Php Date Current Date
today
Php



2
09/09/2023
Css Formatting Customizing Formats For Mircrosoft IE ONLY
!ie IE firefox browser css
Css



1276
09/09/2023
WP Setup Data List Plugin
widget data list plugin WP_Widget register_widget add_action
This plug in just displays a list of language types for computers and web development

/*
Plugin Name: Language Categories
Plugin URI: http://softwarewebdesign.com
Description: List Language Catagories.
Version: 1.0
Author: Software Web Design
Author URI: http://softwarewebdesign.com
License: GPL2
*/
// WP_Widget_Language_Catagory to WP_Widget_Language_Catagory
class dbase{
var $num=0;
var $id=0;
var $fieldname="";
var $data;
var $insertoption="";
var $quickarray=true;
function multipleRecs($value){
if($value==true)$value=false;
else $value=true;
$this->quickarray=$value;return true;
}
function tableOption($query){
$q = mysql_query($query);
$num_fields = mysql_num_fields($q);
for($ii = 0; $ii < $num_fields; $ii++) {
//$result.= mysql_field_name($query,$ii)."-".mysql_field_type($query,$ii)."(".mysql_field_len($query,$ii).")".mysql_field_flags($query,$ii)."\n";
$fieldinfo=mysql_field_flags($q,$ii);
if(strpos($fieldinfo,"rimary_key")>0){ $this->fieldname=mysql_field_name($q,$ii);break; }
}
}
function dbsql2($query){
$this->insertoption=$query;
}
function dbsql($query){
global $db; global $dc;global $debug;
if($debug!=true)$result=mysql_query($query);
else $result=mysql_query($query) or die(mysql_error().' from '.$query);
if(!$result){
if($debug==true){ echo "Error:".$query;exit;
}else{ echo "Error:".substr($query,0,10);exit;}
}
$sql= strtolower($query);
if(strpos($sql,"nsert into")==1)$AC=1;
if(strpos($sql,"elect")==1){ $AC=2;$this->num=mysql_numrows($result); }
if(strpos($sql,"pdate")==1 || strpos($sql,"elete")==1)$AC=3;
switch($AC){
case 1:
$this->id=mysql_insert_id();
break;
case 2:
if($this->num==0 && $this->insertoption!=""){ $this->dbq($this->insertoption); return false; }
if($this->num==0) return false;
if($this->num==1 && $this->quickarray==true)$this->data=mysql_fetch_array($result);
else $this->data=$result;
break;
case 3:
break;
} // end switch


}

} // end class

class WP_Widget_Language_Catagory extends WP_Widget {

// The widget construct. This creates title and description on wordpress admin widget page
function WP_Widget_Language_Catagory() {
$widget_ops = array( 'classname' => 'widget_LanguageCatagory', 'description' => __( "Language Catagory List for picking search topic" ) );
$this->WP_Widget('LanguageCatagory', __('sw - Language Catagory'), $widget_ops);
} // End function WP_Widget_Language_Catagory

// This code displays the widget on the screen.
function widget($args, $instance) {
extract($args);
echo $before_widget;
if(!empty($instance['title'])) {
echo $before_title . $instance['title'] . $after_title;
}
$q=new dbase();
$sql="SELECT * FROM language ORDER BY language";
$q->multipleRecs(true);
$q->dbsql($sql);$result=$q->data;
echo"
    \n";
    for($i=1;$i<=$q->num;$i++){
    $r=mysql_fetch_array($result);
    //echo "
  • ".$r[1]."";
    echo "
  • ".$r[1]."";
    }
    echo"
\n";
echo $after_widget;
} // End function widget.


} // end class WP_Widget_BareBones

// Register the widget.
add_action('widgets_init', create_function('', 'return register_widget("WP_Widget_Language_Catagory");'));
?>
WP



1403
09/09/2023
WP Database Database Access
database
WP



2
09/09/2023
Mysql Dumps Archive Database: `softwax3_myfiles
file contact
Mysql Dumps



3
09/09/2023
Javascript Function Date And Time
date time
Javascript



1569
09/09/2023
Php Date Date Functions
time date
$sessionid=strtotime(date("Y-m-d H:i:s"));

format character Description Example returned values
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
B Swatch Internet time 000 through 999
c ISO 8601 date (added in PHP 5) 2004-02-12T15:19:21+00:00
d Day of the month, 2 digits with leading zeros 01 to 31
D A textual representation of a day, three letters Mon through Sun
F A full textual representation of a month, such as January or March January through December
g 12-hour format of an hour without leading zeros 1 through 12
G 24-hour format of an hour without leading zeros 0 through 23
h 12-hour format of an hour with leading zeros 01 through 12
H 24-hour format of an hour with leading zeros 00 through 23
i Minutes with leading zeros 00 to 59
I (capital i) Whether or not the date is in daylights savings time 1 if Daylight Savings Time, 0 otherwise.
j Day of the month without leading zeros 1 to 31
l (lowercase 'L') A full textual representation of the day of the week Sunday through Saturday
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
O Difference to Greenwich time (GMT) in hours Example: +0200
r RFC 2822 formatted date Example: Thu, 21 Dec 2000 16:01:07 +0200
s Seconds, with leading zeros 00 through 59
S English ordinal suffix for the day of the month, 2 characters st, nd, rd or th. Works well with j
t Number of days in the given month 28 through 31
T Timezone setting of this machine Examples: EST, MDT ...
U Seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) See also time()
w Numeric representation of the day of the week 0 (for Sunday) through 6 (for Saturday)
W ISO-8601 week number of year, weeks starting on Monday (added in PHP 4.1.0) Example: 42 (the 42nd week in the year)
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
z The day of the year (starting from 0) 0 through 365
Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. -43200 through 43200


Unrecognized characters in the format string will be printed as-is. The Z format will always return 0 when using gmdate().

Example 1. date() examples
****************************************
a "am" or "pm"
A "AM" or "PM"
B Swatch Internet time
d day of the month, 2 digits with leading zeros; i.e. "01" to "31"
D day of the week, textual, 3 letters; i.e. "Fri"
F month, textual, long; i.e. "January"
g hour, 12-hour format without leading zeros; i.e. "1" to "12"
G hour, 24-hour format without leading zeros; i.e. "0" to "23"
h hour, 12-hour format; i.e. "01" to "12"
H hour, 24-hour format; i.e. "00" to "23"
i minutes; i.e. "00" to "59"
I (capital i) "1" if Daylight Savings Time, "0" otherwise.
j day of the month without leading zeros; i.e. "1" to "31"
l (lowercase 'L') day of the week, textual, long; i.e. "Friday"
L boolean for whether it is a leap year; i.e. "0" or "1"
m month; i.e. "01" to "12"
M month, textual, 3 letters; i.e. "Jan"
n month without leading zeros; i.e. "1" to "12"
r RFC 822 formatted date; i.e. "Thu, 21 Dec 2000 16:01:07 +0200" (added in PHP 4.0.4)
s seconds; i.e. "00" to "59"
S English ordinal suffix, textual, 2 characters; i.e. "th", "nd"
t number of days in the given month; i.e. "28" to "31"
T Timezone setting of this machine; i.e. "MDT"
U seconds since the epoch
w day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday)
Y year, 4 digits; i.e. "1999"
y year, 2 digits; i.e. "99"
z day of the year; i.e. "0" to "365"
Z timezone offset in seconds (i.e. "-43200" to "43200"). The offset for timezones west of UTC is always negative, and for those east of UTC is always positive
Php



2090
09/09/2023
Php Database Delete
left join delete orphans
Php



2
09/09/2023
Vb.net Database Delete A Record From A DAO Recordset
delete recordset
Vb.net



0
10/09/2022
Javascript Function Determine If An Array Checkbox Or Radiobutton Has Been Checked
checkbox array radio button checked
Checkboxes can be used as arrays and the value can be collected using JavaScript. We will be discussing client side JavaScript and the collection of checkbox value. You can visit the php section for checkbox array handling using PHP server side scripting. We can create a group of checkbox by giving them the same name and that will create an array and from it we can collect the names of the check boxes for which it is checked.

Here are some commands we will be using to get the details of the events or actions we perform.

document.form1.scripts.length

This gives us the length of the array or the number of elements present in the array. If we know we are using 5 checkboxes then we can directly use the number 5 but it is a good to use this as this picks up all the checkboxes of the group without missing any checkbox. Note that the word scripts in the document.form1.scripts.length is the name of the array and same as the checkboxes name.
document.form1.scripts[i].checked

The above command will return true if the checkbox is checked so we will use one if condition to know it is checked or not. The value of i is the index of the array and as we will be using one for loop so the value of i will be changing upto the maximum value. Here is the demo of the script. SexMale Female
Scripts You knowJavaScript PHP HTML

The JavaScript code is kept within the head tag of the page.



To display the period button and checkboxes see the code below. BODY










SexMale Female
Scripts You knowJavaScript PHP HTML
Javascript



1648
09/09/2023
WP Function Directories
directory function
WP



2
09/09/2023
Vb.net Files Directory Files Into A List Box Checking Drive Available
delete files directory drive listbox
Vb.net



2
09/09/2023
WP Setup Disable Website While You Are Designing Or Making Major Changes
disable under construction genesis framework
In the header.php file of genisis frame work. Since you logged in through admin you can edit an see page changes. Non logged in cannot see pages.

if(!is_user_logged_in()){
echo "This site is under construction"; exit;
}
WP



1059
09/09/2023
WP Customizing Disable Wordpress Site While Making Changes
disable website
WP



975
09/09/2023

Software Web Design