emclondon 38 Junior Poster in Training

try this?

class A
{
    public void methodA()
    {
        Console.Write("This text is by methodA in Class A");
    }
}

class B
{
    public void methodB()
    {
        A Aobj = new A();
        Aobj.methodA();
    }
}
emclondon 38 Junior Poster in Training

you must create a database prior to installing magento. magento DOESN'T create one for you.

emclondon 38 Junior Poster in Training

dude^ no offense but I work with magento.

and when I say you can run it on Windows, you should trust me.

cereal commented: no problem, bye ;) +8
emclondon 38 Junior Poster in Training

If you are referring to the e-commerce platform then look at system requirements:

- http://www.magentocommerce.com/system-requirements

it works only on linux. Bye.

You're mistaken. Magento Works on any platform as long as the platform runs a webserver with PHP/MySQL

follow the steps:

1. Create an empty database in your SQL server. (remember the name)
2. Copy Magento's files onto webserver's 'htdocs'/'www' directory
3. run the installer and give proper sql credentials with database name (from step 1)
4. installation would be easy as eating a pie.

emclondon 38 Junior Poster in Training

try this.

Maybe that would help?

/* database.inc.php */

<?php

	define("server","localhost");
	define("conn_username", "root");
	define("conn_password", "root");
	define("database_name", "database_1.1");
?>
/* index.php */

<?php
	require "database.inc.php";
	
	class mysql 
	{ 
	    function connect() { 
	    	@mysql_connect(server,conn_username,conn_password); 
	    	@mysql_select_db(database_name); 
		} 
	
	    function query($query) { 
	        $result = mysql_query($query); 
	        if (!$result) { 
	            echo 'Could not run query: ' . mysql_error(); 
	            exit; 
			} 
			else{
				return $result;
			}
	    } 
	    
	    function showresult($result) {
	    	$arr = array();
			 @mysql_data_seek($result);
			 while ($row = mysql_fetch_array($result, MYSQL_BOTH)) {
			 	array_push($arr, $row);
			 }
			 return $arr;
	    }
	    function end() { 
	        @mysql_close(); 
	    } 
	}
	
	$mysql = new mysql(); 
	$mysql->connect(); 
	print_r($mysql->showresult($mysql->query("SELECT * FROM Employee"))); 
	$mysql->end();
?>

read more here: http://www.vijayjoshi.org/2011/01/07/php-defining-configuration-values/

emclondon 38 Junior Poster in Training

based on the code you posted, all you need to do is to include the file in your php page and perform a simple switch to get the result you are after. something like this:

yourpage.php

include('get_browser.php');
	$browser=getBrowser();
	switch ($browser['name'])
	{
		case 'Google Chrome':
			echo "you are using chrome";
			break;
		case 'Internet Explorer':
			echo "you are using ie";
			break;
		case 'Mozilla Firefox':
				echo "you are using firefox";
			break;		
		default:
			break;		
	}

now just a reminder that, if you are looking just to change the CSS based on the browser, this is not the way to do it.