select sum(column,column1) from table;
Sum of two columns in 1 query MySQL
27 07 2009Comments : Leave a Comment »
Tags: MySQL
Categories : MySQL
Add lead source on SugarCRM
21 05 2009- Signin to SugarCRM
- Click on the link Admin to the top of the page
- Move to the section Developer Tools and click on the link Studio
- Click on the button Dropdown Editor
- Choose the option lead_source_dom from the left panel
- Add Edit or Delete the values from the right panel
Comments : Leave a Comment »
Tags: PHP, SugarCRM
Categories : PHP, SugarCRM
import cvs through mysql console
17 04 2009Use this command on mysql console
load data LOCAL infile 'C:/test.csv' into table table_name fields terminated by ',' lines terminated by '\n';
Courtesy : How do I import delimited data into MySQL?
Comments : Leave a Comment »
Tags: CSV, MySQL
Categories : MySQL
close popup and redirect parent window
23 02 2009Use the below function:
function closePopupRedirect(link)
{
opener.location.href =link;
window.close();
}
Comments : Leave a Comment »
Tags: Javascript
Categories : Javascript
Default password for mantis
11 02 2009Username : administrator
Password : root
Try login with these details
Courtesy : Corrupted Data Decovery — Default Password for Mantis Mantis
Comments : Leave a Comment »
Tags: Mantis
Categories : PHP
Dreamweaver could not properly convert the live page from the server.
17 12 2008Comments : Leave a Comment »
Tags: Dreamweaver
Categories : Adobe Dreamweaver CS3
Convert decimal year to year, months and days
10 11 2008
/**
* Function : year2monthsNdays
* Arguments : $years float value (Ex: 42.5, 30.89, 52.00, etc..)
* Returns : array (year,month,days as keys)
* Description : Converts a given float value of years to years, months and days
*/
function year2monthsNdays($years)
{
$array = explode(".",$years);
$year = $array[0];
$month = ($array[1]>9) ? $array[1]/100 : $array[1]/10;
if ($month) {
$days = round($month*365,2);
$daysArray = explode(".",$days);
$months = round($daysArray[0]/30,2);
$monthArray = explode(".",$months);
$monthInt = $monthArray[0];
$daysInt = round($monthArray[1]*30/100,1);
}
$returnArray['year'] = $year;
$returnArray['month'] = $monthInt;
$returnArray['days'] = $daysInt;
return $returnArray;
}
Comments : Leave a Comment »
Tags: Functions, PHP
Categories : PHP
unknown toolbar item “undefined”
21 07 2008- Open the file fckeditor/fckconfig.js
- Locate the line
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About',] - Remove the last comma(,) from the line. The new line will now become
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow','ShowBlocks','-','About'] - Refresh the page (Ctrl+F5) and your problem will have solved.
Courtesy : Unknown toolbar item “undefined” : FCKeditor forum
Comments : Leave a Comment »
Tags: FCKEditor, Javascript
Categories : FCKEditor, Javascript
This application has failed to start because connapi.dll was not found
13 07 2008- Exit Photoshop Elements.
- Open the C:\Program Files\Adobe\Photoshop Elements 6.0\moxplugins folder.
- Move the NOKIAManager.mox file to the Recycle Bin, or another location such as your desktop.
- Restart your computer.
Solution 2: Install or reinstall the Nokia PC Suite software.
- Start
- Programs
- Nokia PC Suite
- Uninstall Nokia PC Suite
- Repair
- Restart your computer
Comments : Leave a Comment »
Tags: Nokia PC Suite, PHP
Categories : Nokia PC Suite, Photoshop
Fatal Error: Class ‘OLE_PPS_File’ not found
10 07 2008- I have Excel Reader and Writer classes on my project directory
- I also have the PEAR OLE component installed.
- Just uninstall the PEAR component OLE (Delete the folder OLE from the directory xampp/php/PEAR/ and delete the file File.php from the same folder) and it works.
Comments : 2 Comments »
Tags: Pear, PHP
Categories : PHP
SocialVibe