Contact Us
Go to ...
Contact Us
Go to ...
Home
Category
Php
Jquery
Sql
WordPress
Laravel
CSS
Ajax
Bootstrap
Magento
Linux
AngularJs
Contact Us
Home
Category
»
Php
Jquery
Sql
WordPress
Laravel
CSS
Ajax
Bootstrap
Magento
Linux
AngularJs
Contact Us
Recent Posts
Upload file in Google Drive using API
Fix specified key was too long issue in laravel
Install Swagger in Laravel 9
Print File From Api in Angular
Download File From Api in Anuglar
Category Sql
Excel to mysql using php
Download
Posted in
Php
,
Sql
No comments
March 8, 2016
Read More
Class sql connection
$con = new mysqli("localhost","root","MYSECRET","kit"); // Check connection if ($con->connect_error) { die("Connection failed: " . $con->connect_error); } $execute = $con->query("select * from contact"); print_r($execute->fetch_assoc());
1
2
3
4
5
6
7
8
9
10
$
con
=
new
mysqli
(
"localhost"
,
"root"
,
"MYSECRET"
,
"kit"
)
;
// Check connection
if
(
$
con
-
>
connect_error
)
{
die
(
"Connection failed: "
.
$
con
-
>
connect_error
)
;
}
$
execute
=
$
con
-
>
query
(
"select * from contact"
)
;
print_r
(
$
execute
-
>
fetch_assoc
(
)
)
;
Posted in
Php
,
Sql
No comments
January 15, 2016
Read More
Replace sql query
update VersionedFields set Value = replace(value,'<iframe','<a>iframe')
1
update
VersionedFields
set
Value
=
replace
(
value
,
'<iframe'
,
'<a>iframe'
)
Posted in
Php
,
Sql
No comments
December 28, 2015
Read More
Tweet