![]() |
| ||
| problem with string hi :) I need some help for this script I have -------------------- cursor = conn.cursor()------------------ #and want to print this out of "for record in result:" print playlist_txt #but there is an error in playlist_txt += mp3id + mp3_title + mp3_artist 10x in advance :))) |
| ||
| Re: problem with string With Python questions, you definitely need to use CODE tags. |
| ||
| Re: problem with string sorry but I write here for the first time Now I know 10x |
| ||
| Re: problem with string Can you give us the error message and a little more of your code? Without that info, I don't know what your resultset looks like. I can only assume that mp3id could be an integer and needs to be converted to a string to work with the + concatination. In this case mp3id = str(record[0]) would do the trick. |
| ||
| Re: problem with string 10x for the help I try with this and it work perfect :))
Edit: added / to ending [/code] |
| All times are GMT -4. The time now is 2:29 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC