Any moodle developer here?
Is anyone here a language professional?
Is there any good api docs genertor?
Hey anyone know R Language?
how to resize image by image path in codeigniter?
In codeigniter?
Hi anyone laravel developer here,?
But its working mechanism I did not understand
Yes
But its working mechanism I did not understand
….
How can i show php function return value into a div without refreshing the page and without ajax
I can help you in this
I can help you in this
Insert 98961237890
Display like beloy
9
8
9
6
1
2
3
7
8
9
0
Insert 98961237890
Display like beloy
9
8
9
6
1
2
3
7
8
9
0
Use css
Insert 98961237890
Display like beloy
9
8
9
6
1
2
3
7
8
9
0
Bhai time hota to bta deta
Insert 98961237890
Display like beloy
9
8
9
6
1
2
3
7
8
9
0
You can use wordwrap function
$newtext = wordwrap($x, 1, “n”);
echo $newtext;
Out put :-
S
O
M
E
T
H
I
N
G
Then use CSS
$this->load->library(‘image_lib’);
//echo “Frame : “.$frame_template .” ID : ” . $id . ” Path : ” . $image_path . ” Name : ” . $image_name;exit;
// do it!
$resize_conf_1536 = array(
‘image_library’=> ‘gd2’,
‘quality’ => 50,
‘upload_path’ => realpath($image_path),
‘source_image’ => $image_path.”/”.$image_name,
‘new_image’ => $image_path.”/”.$image_name,
‘maintain_ratio’=> FALSE,
‘width’ => 930,
‘height’ => 930);
$this->image_lib->clear();
$this->image_lib->initialize($resize_conf);
// do it!
if ( ! $this->image_lib->resize()){
// if got fail.
$error[‘resize’] = $this->image_lib->display_errors();
//print_r($error[‘resize’]) ;exit;
}else{
//$image_name = ‘upload/book_cover/’.;
}
writing-mode: vertical-rl; text-orientation: upleft;
Use this
Use this
Thanks bro its working
I need to do real time truck or cargo tracking based on a reference number and Need to show on Google Maps
<?php
class Database {
private static $instance = null;
private $pdo;
private function __construct() {
try {
$this->pdo = new PDO(‘mysql:host=localhost;dbname=test’, ‘root’ , ”);
}catch(PDOException $exception){
die($exception->getMessage());
}
}
public static function getInstance() {
if(!isset(self::$instance)){
self::$instance = new Database();
}
return self::$instance;
}
public function query($sql){
$query = $this->pdo->prepare($sql);
$query->execute();
$result = $query->fetchAll(PDO::FETCH_OBJ);
return $result;
}
}
index.php
<?php
require_once “Database.php”;
$users = Database::getInstance()->query(“SELECT * FROM users”);
var_dump($users);
<?php
class Database {
private static $instance = null;
private $pdo;
private function __construct() {
try {
$this->pdo = new PDO(‘mysql:host=localhost;dbname=test’, ‘root’ , ”);
}catch(PDOException $exception){
die($exception->getMessage());
}
}
public static function getInstance() {
if(!isset(self::$instance)){
self::$instance = new Database();
}
return self::$instance;
}
public function query($sql){
$query = $this->pdo->prepare($sql);
$query->execute();
$result = $query->fetchAll(PDO::FETCH_OBJ);
return $result;
}
}
index.php
<?php
require_once “Database.php”;
$users = Database::getInstance()->query(“SELECT * FROM users”);
var_dump($users);
#Question There are 2users data in database but vardump is returning 0 obj why?
Most welcome
Using maatwebsite plugin
Can i use phpexcel library in laravel
You can also use cyber duck plugin
Search Codeigniter admin panel on Google. I have implement this in codeigniter
In codeigniter?
In php sir
Atleast you got hint that how can you achieve it. Inside controller, its only php code.