View Single Post
  #12  
Old 07-28-2005, 08:34 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok thanks. I am putting only a few, because I have hundreds of data

PHP Code:
CREATE TABLE `soundtracks` (
`
songidsmallint(5unsigned NOT NULL auto_increment,
`
titlevarchar(100NOT NULL default '',
`
urlvarchar(100NOT NULL default '',
`
playssmallint(5) default '0',
`
activeint(2NOT NULL default '0',
`
useridint(11NOT NULL default '0',
`
usernamevarchar(225NOT NULL default '',
`
rated_qtyint(5NOT NULL default '0',
`
ratingint(5NOT NULL default '0',
`
announceint(2NOT NULL default '0',
`
genrevarchar(50NOT NULL default '',
PRIMARY KEY (`songid`)
TYPE=MyISAM AUTO_INCREMENT=68 ;
-- 
-- 
Dumping data for table `soundtracks`
-- 
INSERT INTO `soundtracksVALUES (3'Chov''Chov.mp3'2214'haitiwebs'151'Carimi');
INSERT INTO `soundtracksVALUES (2'Solda Jah''09 - Solda Jah.mp3'3614'haitiwebs'3150'Jah Nesta');
INSERT INTO `soundtracksVALUES (4'Kidnapping''Kidnapping.mp3'1714'haitiwebs'151'Carimi');
INSERT INTO `soundtracksVALUES (5'Mwen sou''Mwen sou.mp3'1414'haitiwebs'000'Carimi');
INSERT INTO `soundtracksVALUES (6'Pitit sa''Pitit sa.mp3'2314'haitiwebs'130'Carimi');
INSERT INTO `soundtracksVALUES (7'Por favor''CARIMI -por favor.mp3'4214'haitiwebs'150'Carimi');
INSERT INTO `soundtracksVALUES (8'Two ta''Two ta - 06.mp3'814'haitiwebs'000'Jah Nesta');
INSERT INTO `soundtracksVALUES (9'Chasse ? l''enfant''Chasseenfant- 03.mp3'1514'haitiwebs'000'Jah Nesta'); 
And the crazy thing I am doing:

PHP Code:
  $extra1songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra1' AND active=1");
 while(
$extra1songrow $DB_site->fetch_array($extra1songsquery)) 
        {    
           
$clip1=$extra1songrow['title'];
    
$clip1id=$extra1songrow['songid'];
    
$clip1url=$extra1songrow['url'];
    
$extra1="<a href=\"showproduct.php?product=$product&do=main&mysong=$clip1id\">$clip1</a>"
        } 
 
$extra2songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra2' AND active=1");
 while(
$extra2songrow $DB_site->fetch_array($extra2songsquery)) 
        {    
           
$clip2=$extra2songrow['title'];
    
$clip2id=$extra2songrow['songid'];
    
$clip2url=$extra2songrow['url'];
    
$extra2=" &middot; <a href=\"showproduct.php?product=$product&do=main&mysong=$clip2id\">$clip2</a>"
        } 
 
$extra3songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra3' AND active=1");
 while(
$extra3songrow $DB_site->fetch_array($extra3songsquery)) 
        {    
           
$clip3=$extra3songrow['title'];
    
$clip3id=$extra3songrow['songid'];
    
$clip3url=$extra3songrow['url'];
    
$extra3=" &middot; <a href=\"showproduct.php?product=$product&do=main&mysong=$clip3id\">$clip3</a>"
        } 
 
$extra4songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra4' AND active=1");
 while(
$extra4songrow $DB_site->fetch_array($extra4songsquery)) 
        {    
           
$clip4=$extra4songrow['title'];
    
$clip4id=$extra4songrow['songid'];
    
$clip4url=$extra4songrow['url'];
    
$extra4=" &middot; <a href=\"showproduct.php?product=$product&do=main&mysong=$clip4id\">$clip4</a>"
        } 
 
$extra5songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra5' AND active=1");
 while(
$extra5songrow $DB_site->fetch_array($extra5songsquery)) 
        {    
           
$clip5=$extra5songrow['title'];
    
$clip5id=$extra5songrow['songid'];
    
$clip5url=$extra5songrow['url'];
    
$extra5=" &middot; <a href=\"showproduct.php?product=$product&do=main&mysong=$clip5id\">$clip5</a>"
        } 
 
$extra6songsquery $DB_site->query("SELECT songid, title, url FROM soundtracks WHERE title='$extra6' AND active=1");
 while(
$extra6songrow $DB_site->fetch_array($extra6songsquery)) 
        {    
           
$clip6=$extra6songrow['title'];
    
$clip6id=$extra6songrow['songid'];
    
$clip6url=$extra6songrow['url'];
    
$extra6=" &middot; <a href=\"showproduct.php?product=$product&do=main&mysong=$clip6id\">$clip6</a>"
        } 

how I am displaying it now:

Quote:
<span class="smallfont">$extra1$extra2$extra3$extra4$ext ra5$extra6</span>
and the result attached (I have 2 now, still testing)

Thanks.
Attached Images
File Type: jpg audio.jpg (6.0 KB, 0 views)
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01281 seconds
  • Memory Usage 1,884KB
  • Queries Executed 12 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_attachment
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete