<html>
<head>
<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js">
</script>
<script>
$(document).ready(function(){
$("button").click(function(){
$("<p id=3>Hello world!</p>").insertAfter("#1");
});
});
</script>
</head>
<body>
<button>Insert span element after each p element</button>
<p id="1">This is a paragraph.</p>
<p>This is another paragraph.</p>
</body>
</html>
Html, JAVA,DOTNET,Javascript, PHP, and JQuery Scripts and its issues with solutions
Thursday, 25 September 2014
How to connect to MySQL from the command line?
Connect to MySQL from the command line
To connect to MySQL from the command line:
Log in to your A2 Hosting account using SSH.
At the command line, type the following command, replacing USERNAME with your username:
mysql -u USERNAME -p
At the Enter Password prompt, type your password. When you type the correct password,
the mysql> prompt appears.
To display a list of databases, type the following command at the mysql> prompt:
show databases;
To access a specific database, type the following command at the mysql> prompt,
replacing DBNAME with the database that you want to access:
use DBNAME;
After you access a database, you can run SQL queries, list tables, and so on. Additionally:
To view a list of MySQL commands, type help at the mysql> prompt.
To exit the mysql program, type \q at the mysql> prompt.
To enable/disable for error message in php.ini file
Enable:
display_errors = on
Disable:
display_errors = off
display_errors = on
Disable:
display_errors = off
To modify the maximum number of input variables for PHP scripts in php.ini directives
To modify the maximum number of input variables for PHP scripts in php.ini directives
max_input_vars = 1500
max_input_vars = 1500
To change the memory limit for PHP in php.ini directives
To change for this in php.ini
memory_limit = 256M
memory_limit = 256M
To set the PHP error log location in php.ini directives
PHP error log location in php.ini file
Enable:
error_log = /path/filename
Disable
;error_log = /path/filename
Enable:
error_log = /path/filename
Disable
;error_log = /path/filename
To change the PHP time zone setting in php.ini directives
To change the PHP time zone setting in php.ini file
date.timezone = "Europe/Paris"
date.timezone = "Europe/Paris"
Subscribe to:
Comments (Atom)
Feet/Inches to Meters Converter & Lbs to Kgs Converter
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <title>Feet/Inches ⇄...
-
<?php $to = "somebody@example.com, somebodyelse@example.com"; $subject = "HTML email"; $message = " <h...
-
document.onkeydown = myKeyDownHandler; function myKeyDownHandler(event){ alert(event.keyCode) }
-
Input array= array("test"=>array("s1"=>array(),"s2"=>array())) foreach(array_keys($free_tim) as ...