This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>'"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
include_once('wideimage/'.'WideImage.php'); | |
$image = WideImage::load('slide5.jpeg'); | |
$resizedImage = $image->resize(194, 175); | |
$resizedImage->saveToFile('img/image-large.png'); | |
?> |