Skip to content

Instantly share code, notes, and snippets.

View wordpressandphpdeveloper's full-sized avatar

wordpressandphpdeveloper

View GitHub Profile
<?php
include_once('wideimage/'.'WideImage.php');
$image = WideImage::load('slide5.jpeg');
$resizedImage = $image->resize(194, 175);
$resizedImage->saveToFile('img/image-large.png');
?>
$brand_names=["xolo","sony","sansui","samsung","panasonic","oppo","nokia","motorola","micromax","maxx","lenovo","lg","lava","karbonn","htc","huawei",
"gionee","celkon","asus","blackberry","alcatel","apple","microsoft","spice","iris","lava","iball","videocon","intex","boss","swinbgtel","salora","fly",
"arise","idea","lemon","magicon","zen","philips","bq","mts","adcom","vox","v3","mitashi","wynncom","zears","trio","fujezone","ice","swingtel","optimasmart",
"zync","olive","konka","ambrane","smartplay","rage"];
@wordpressandphpdeveloper
wordpressandphpdeveloper / Show All Tables in a MySQl Schema
Last active September 6, 2021 12:26
Php script to show all tables in a MySQL schema
<?php
//open database connection
$mysqli = new mysqli(<host>,<username>,<password>,<schema>);
//Display error message
if ($mysqli->connect_error) {
die('Error : ('. $mysqli->connect_errno .') '. $mysqli->connect_error);
}
$sql="SELECT TABLE_NAME FROM information_schema.TABLES WHERE TABLE_SCHEMA = '<schema name>'";