
Search In
Hello Reader's If you want to genrate password in PHP then you can use the code as below:-
you just have to try this, use strlen instead of count, because count on a string is always 1:-
function randomPassword() {
$alphabet = 'abcdefghijklmnop
Hello Friends,
If you are looking to save/fetch session variable in ZEND Framework. Please use the below code:
// DEFINE SESSION VARIABLE
$sess = new Zend_Session_Namespace('MyNamespace');
$sess->username = "you_name"; // define your value to sa
Hello Guys,
If you are looking to use "Select" mysql query in ZEND Framework. Please use the below code::
$dbObj = Zend_Db_Table::getDefaultAdapter();
$select = $this->select();
$select->from(array('users'),array('count(user_id) as id'));
$se
Hello Friends,
Some time we need to disable layout of our page. No layout mean no header, no footer, no left bar, no right bar. You want to display the main page content part like if you are using AJAX at that time you need to disable layout for thi
Hello Friends,
If you are looking to use order by clause in Zend Framework. Please use the below code for the same::
$dbObj = Zend_Db_Table::getDefaultAdapter();
$selectObj = $this->select();
$selectObj->from(array('tbl_users'),array('count(u
Hello Reader's you want to make the edges with border and round in shape for all the images in you website then you just need to put CSS3 to update as below:-
border:solid 5px #000000;
-moz-border-radius: 32px;
-webkit-border-radius: 32px;
border-ra
Hello Guys,
Some time we need to custom mysql query. If you are looking to write custom mysql query in Wordpress. Please follow the code for the same::
global $wpdb;
$sender_name = $wpdb->get_results("SELECT first_name,last_name FROM sender_deta
Hello readers, In this blog I will guide you "To validate IP Address using PHP Filter Extension".
The below code validate your IP Address is valid or not using filter_var() function.
<?php
$ipAddress = "107.20.120.5";
if (!filter_var(
Hello Friends,
If you are looking for mysql join in codelgniter. Please review the code as below:
// Initialize select query
$this->db->select('*');
$this->db->from('users');
// Define join in last parameter define left join or righ
If you want to getting formatted time then we can format any time as per your requirement, but simple method to get time in readable format is asctime() and for example you can see below code−
#!/shiva/bin/python
import time;
localtime = time.asctim
