.

.
Showing posts with label Joomla. Show all posts
Showing posts with label Joomla. Show all posts

WAMP installation of joomla Latest Version stuck on step 4 (database)



The usual reason for this is simply that php runs out of execution time.
Check your php.ini file ( use the wampmanager menus so you edit the correct version of this )

Check your php.ini file ( use the wampmanager menus so you edit the correct version of this )
left click wampmanager -> PHP -> php.ini
This will open notepad on the correct php.ini file, look for this directive
max_execution_time = 60
Change it to something larger like
max_execution_time = 240
Then retry your install.
Remember to set it back to 60 after the install completes

ADVANCE SEARCH IN JOOMLA


public function getFindLoved($data)
{
$str = array();

if($data['fname'])

{

$str[] = 'f_name = "'. $data['fname'].'"';

}

if($data['lname'])

{

$str[] = 'l_name = "'. $data['lname'].'"';

}

if($data['city'])

{

$str[] = 'city = "'. $data['city'].'"';

}

if($data['state'])

{

$str[] = 'state = "'. $data['state'].'"';

}

if($data['dob'])

{

$str[] = 'dob = "'. $data['dob'].'"';

}

if($data['dod'])

{

$str[] = 'dod = "'. $data['dod'].'"';

}

if($data['cemetry'])

{

$str[] = 'cemetryid = "'. $data['cemetry'].'"';

}



$wherestr = implode(" AND ",$str);



$db = JFactory::getDBO();

$query = $db->getQuery(true);

$query = 'SELECT * FROM #__listloved WHERE '.$wherestr ;

$db->setQuery($query);

$db->query();

$num_rows = $db->getNumRows();

return $rows = $db->loadObjectList();

}










GET CURRENTLOGGEDIN USER DETAIL INJOOMLA

By 
       


using this function JFactory::getUser() it provides all detail of loggedin user/
$user = JFactory::getUser();
(u can check by print_r($user))
TO GET VALUES OF USER Like we want ‘id’ of logged in user
Then use

 $user->get('id');  (//by using that way we can get all details of user)