Insert google map in your website php code
<style> #contact-map { height: 500px; }</style><div id="contact-map"></div><script> var map; function initMap() { var myLatlng = new google.maps.LatLng(your lat,your lng); map = new google.maps.Map(document.getElementById('contact-map'), { ...
ADD random new article in joomla through php code
instruction1) create a new php file add code give below.2) put this file in joomla folder of your project.3) run this php file.////////////////////////////////code////////////////////////////////////<!DOCTYPE html><html><head> <title></title></head><body><div id="progress" style="width:500px;border:1px solid #ccc;"></div><!--...
progress bar through php
<!DOCTYPE html><html><head> <title></title></head><body><div id="progress" style="width:500px;border:1px solid #ccc;"></div><!-- Progress information --><div id="information" style="width"></div></body></html><?php$total=50;for($i=0;$i<$total;$i++){ $percent...
How to make CSV file from mysql database using PHP
This example demonstrate how to make csv file form mysql table using php. in this example csv file will contain name, username and email from user table. database connection has been takem dynamically from joomla configuration.php file. you need to change it as your requirement.
<?php require_once "configuration.php"; $config = new JConfig(); ...
How to configure mysql connection dynamically in joomla website.
How to configure core php-mysql connection dynamically in joomla website form configuration file.
<?php
require_once "../configuration.php"; $config = new JConfig(); $host = $config->host; $db = $config->db; $dbprefix = $config->dbprefix; $password = $config->password; ...
Import data from CSV file to mysql database using PHP
<?php
$host = "localhost"
$user = username;
$password = database password;
$db =database name;
$con = new mysqli($host,$user,$password, $db);
if ($con->connect_error) {
die("Connection failed: " . $con->connect_error);
}
?>
<html>
<head>
<style type='text/css'>
body
...
Find age thought php code
This is one of the simple task in php.<?php$birthdate='1989-07-07';echo date_diff(date_create($birthdate), date_create('today'))->y;?&g...
Joomla make custom Module for LOGIN in POPUP window
//Just copy and paste this code in default.php of your module.
<?php
defined('_JEXEC') or die;
JHTML::_('behavior.modal');
$user = JFactory::getUser(); //get user credentials
?>
<div class="btl-panel">
<?php if($user->guest){?>
<a class="modal login-popup" href="index.php?option=com_users&view=login&tmpl=component"...
Subscribe to:
Posts
(
Atom
)