Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Custom script problem
Old 08-02-2009, 05:18 PM Custom script problem
Junior Talker

Posts: 2
Trades: 0
Hey all,
I am currently making a site which users will be able to add songs to their playlist, however, I'm having problem getting mysql info and looping it correctly.
When I loop it, playlist shows double listings, instead of 1 result, I get 2 results that are same. Here's the full php code:
PHP Code:
<?php

//Removed

?>
What I am trying to do is, get the song ids from users' playlist and then for each id that is found, get the song info from a different table then add to playlist file which is needed for flash player.

FIXED!

Last edited by Tashbaqa; 08-02-2009 at 08:38 PM.. Reason: Further description added.
Tashbaqa is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-02-2009, 05:47 PM Re: Custom script problem
Brian07002's Avatar
Defies a Status

Posts: 2,162
Name: ...
Location: ...
Trades: 0
Not saying this is the problem, but you *should* put the song info into the same table as the ids. It might not seem like the problem, but if you work with multiple tables odd things can occur.

-Brian
__________________
Made2Own

Please login or register to view this content. Registration is FREE
Brian07002 is offline
Reply With Quote
View Public Profile
 
Old 08-02-2009, 07:11 PM Re: Custom script problem
Junior Talker

Posts: 2
Trades: 0
All mp3 info is together in one table. I used a separate table to keep track of songs added to user playlists. For example, when I add a song, it is added to playlists table with my session id and the song id. From there, I'm trying to get all the songs added by me, which will give me the id of the songs, and from those ids, i need to pull song info for each song.

Thanks
Tashbaqa is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Custom script problem
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13290 seconds with 12 queries