how to set innerHTML property to select in IE
If you must use innerHTML, a workaround is to use a Div object to wrap the SELECT element and then set the innerHTML property for the Div object
http://support.microsoft.com/kb/276228
sharing some tech problems and soln
If you must use innerHTML, a workaround is to use a Div object to wrap the SELECT element and then set the innerHTML property for the Div object
http://support.microsoft.com/kb/276228
Posted by Sajjad at 11:12 pm 0 comments
Labels: IE, javascript
if u need to copy primary key(here id)
INSERT INTO new_table( id,nt1,nt2) SELECT oid,ot1,ot2 FROM old_table
Posted by Sajjad at 10:52 pm 0 comments
Labels: mysql
function dupli_val($array)
{
if ( !is_array($array) ) {
return false;
}
$repeat = array();
foreach ( $array as $key => $val ) {
end($array);
$k = key($array);
$v = current($array);
while ( $k !== $key )
{
if ( $v === $val )
{
$repeat[$key] = $v;
}
$v = prev($array);
$k = key($array);
}
}
return $repeat;
}
Posted by Sajjad at 6:26 pm 0 comments
if(isset($_REQUEST["search_key"]))
$search_query="WHERE `cat_name` LIKE '".$_REQUEST["search_key"]."%' ";
else
$search_query="";
Posted by Sajjad at 1:26 pm 0 comments
Labels: php
foreach(range('A', 'Z') as $char) {
echo $char;
}
?>
Posted by Sajjad at 1:15 pm 0 comments
Labels: php
solution
Open the file fckeditor\editor\filemanager\connectors\php\config.php
Give correct value for this parameters
// Path to user files relative to the document root.
$Config['UserFilesPath'] = '/imagesedit/' ;
// Fill the following value it you prefer to specify the absolute path for the
// user files directory. Useful if you are using a virtual directory, symbolic
// link or alias. Examples: 'C:\\MySite\\userfiles\\' or '/root/mysite/userfiles/'.
// Attention: The above 'UserFilesPath' must point to the same directory.
$Config['UserFilesAbsolutePath'] = '/home/mysite/public_html/imagesedit' ;
Check the Folder permissions
Posted by Sajjad at 3:28 pm 1 comments
Labels: FCKeditor, java script, mkdir