Jump to content


  • Posts

  • Joined

  • Last visited


Posts posted by cmgmyr

  1. If you have bluetooth on your phone you can just slice up an MP3 and upload it to your phone...that's what I do and it works out pretty well. I think that's the best way to go. Plus you can have any song that you want that way...and make your friends really jealous! :)

  2. Hey Guys,

    I have no idea why this function is not returning the variable $new_cats, it's echoing correctly, but nothing is getting returned. Am I missing something??? Thanks!


    Category Function:

    function getCategories($cat_id, $level=0, $cats='') {  
    	global $db;
    	if($level == 0){
    		$cats = array();
    	$sql = "SELECT parentid, name FROM categories WHERE id = $cat_id";
    	$result = $db->query($sql);
    	list ($p, $n) = $db->fetchRow($result);
    	$cats[] = $n;
    	if ($p != '0') $this->getCategories($p, $level+1, $cats);
    	if($p == '0'){
    		$new_cats = '';
    		foreach($cats as $cat){
    			$new_cats .= "$cat » ";
    		$new_cats = substr($new_cats, 0, -9);
    		echo $new_cats;
    		return $new_cats;


    test page:

    if($cats = $catalog->getCategories(62)){
    	echo $cats;
    	echo '<br /><br />No cats!';

  3. I altered the code a little bit, here is what I have now:

    RewriteEngine  on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-F
    RewriteRule ^([^/\.]+)/?$ store/index.php?kiosk=$1 [L,PT] 
    RewriteRule ^([^/]*)/([^/]*)$ store/$2?kiosk=$1 [QSA,L,PT] 


    Now, the virtual directories work 100%, but when I go to the root of the site, or any of the files in the root the CSS and the images do not come up. How can I adjust this code so that it doesn't effect the root files?




  4. I have a site that has dynamic kiosk stores and I can't seem to get everything to work how I want it to.


    1. I need url.com/kiosk_name going to url.com/store/index.php?kiosk=kiosk_name (which I have that so far).

    2. I need url.com/kiosk_name/products.php going to url.com/store/products.php?kiosk=kiosk_name

    3. This also needs to handle a query sting...url.com/kiosk_name/products.php?product=1 going to url.com/store/products.php?kiosk=kiosk_name&product=1


    Here is what I have so far:

    RewriteEngine  on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-F
    RewriteRule ^([^/\.]+)/([^/\.]+)?$ $2?kiosk=$1 
    RewriteRule ^([^/\.]+)/?$ store/index.php?kiosk=$1 [L]


    I know I'm doing something wrong and I'm sure some other things need to be added. What should this be?




  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.