ZenCart_Documentation  1.5.0
http://www.collinsharper.com
C:/xampp/htdocs/zen-cart/admin/includes/functions/extra_functions/product_music_functions.php
Go to the documentation of this file.
00001 <?php
00002 //
00003 // +----------------------------------------------------------------------+
00004 // |zen-cart Open Source E-commerce                                       |
00005 // +----------------------------------------------------------------------+
00006 // | Copyright (c) 2003 The zen-cart developers                           |
00007 // |                                                                      |
00008 // | http://www.zen-cart.com/index.php                                    |
00009 // |                                                                      |
00010 // | Portions Copyright (c) 2003 osCommerce                               |
00011 // +----------------------------------------------------------------------+
00012 // | This source file is subject to version 2.0 of the GPL license,       |
00013 // | that is bundled with this package in the file LICENSE, and is        |
00014 // | available through the world-wide-web at the following url:           |
00015 // | http://www.zen-cart.com/license/2_0.txt.                             |
00016 // | If you did not receive a copy of the zen-cart license and are unable |
00017 // | to obtain it through the world-wide-web, please send a note to       |
00018 // | [email protected] so we can mail you a copy immediately.          |
00019 // +----------------------------------------------------------------------+
00020 //  $Id: product_music_functions.php 1105 2005-04-04 22:05:35Z birdbrain $
00021 //
00022  
00024 // Return the artists URL in the needed language
00025   function zen_get_artists_url($artists_id, $language_id) {
00026     global $db;
00027     $artist = $db->Execute("select artists_url
00028                                   from " . TABLE_RECORD_ARTISTS_INFO . "
00029                                   where artists_id = '" . (int)$artists_id . "'
00030                                   and languages_id = '" . (int)$language_id . "'");
00031 
00032     return $artist->fields['artists_url'];
00033   }
00035 // Return the Record Company URL in the needed language
00036   function zen_get_record_company_url($record_company_id, $language_id) {
00037     global $db;
00038     $record_company = $db->Execute("select record_company_url
00039                                   from " . TABLE_RECORD_COMPANY_INFO . "
00040                                   where record_company_id = '" . (int)$record_company_id . "'
00041                                   and languages_id = '" . (int)$language_id . "'");
00042 
00043     return $record_company->fields['record_company_url'];
00044   }
00045 
00047 // Return the Music Genre URL in the needed language
00048   function zen_get_music_genre_url($music_genre_id, $language_id) {
00049     global $db;
00050     $music_genre = $db->Execute("select music_genre_url
00051                                   from " . TABLE_RECORD_COMPANY_INFO . "
00052                                   where music_genre_id = '" . (int)$music_genre_id . "'
00053                                   and languages_id = '" . (int)$language_id . "'");
00054 
00055     return $music_genre->fields['music_genre_url'];
00056   }
00057 ?>
 All Data Structures Namespaces Files Functions Variables Enumerations