Some Help for SQL Needed »  Show posts from    to     

Icy Phoenix


Archived phpBB Topics (Styles, Mods, Support) - Some Help for SQL Needed



KugeLSichA [ Thu 14 Feb, 2008 23:32 ]
Post subject: Some Help for SQL Needed
Hi everybody,

I try to port a script into my Icy Phoenix and now i need your help.

The script uses other sql statements, and this is my problem. this is the original sql statement:
Spoiler: [ Show ]


and this is what i have done yet
Spoiler: [ Show ]


the problem is, that my code, select all seasons, correct, but the section name is not shown by all created options.

can somebody help me with that?


KasLimon [ Fri 15 Feb, 2008 13:52 ]
Post subject: Re: Some Help For SQL Needed
Hi, first of all, this lines are not doing anything:
Code: [Hide] [Select]
for ($x = 0; $x < count($section_info); $x++)
{
$section_id = $section_info[$x]['name'];
}


I don't understand exactly what's the error. Can you take a screenshot of the select box result?

Greets!


KugeLSichA [ Fri 15 Feb, 2008 15:32 ]
Post subject: Re: Some Help for SQL Needed
Hi KasLimon,

thx for your help

here is a screenshot:
season1

der red underlined word is the "section_info name" and the blue underlined is the "season_info name"

the dropdown is sorted by "season_info id" the "carom abcdef" has id "3" and the last "Test season" has id "1"


KasLimon [ Fri 15 Feb, 2008 16:00 ]
Post subject: Re: Some Help For SQL Needed
OK I see.
One more question.
Then season_info ID and section_info ID have to be the same to make it work?
I mean:
carom id 3
abcdef id 3
carom3d id 2
neuer test id 2
test season id 1


Is this correct?

Greets?


KugeLSichA [ Fri 15 Feb, 2008 16:02 ]
Post subject: Re: Some Help for SQL Needed
exactly :mryellow:

greetings


KasLimon [ Fri 15 Feb, 2008 16:29 ]
Post subject: Re: Some Help For SQL Needed
I've been testing and I got this:
Spoiler: [ Show ]

Try it. Greets!


KugeLSichA [ Fri 15 Feb, 2008 18:16 ]
Post subject: Re: Some Help for SQL Needed
many thanks KasLimon,

now i got it working with your help... with your code there was only showing 2 options, but it was my fault, because we checked the season table "id" but it must be the season table "id_section" (line 3)

i have it working with this code:
Spoiler: [ Show ]


again thank you very much =)


KasLimon [ Fri 15 Feb, 2008 22:05 ]
Post subject: Re: Some Help For SQL Needed
Nice to know it works :mricy:

Greets!


KugeLSichA [ Sun 17 Feb, 2008 11:22 ]
Post subject: Re: Some Help for SQL Needed
yes and i´m happy that you helped me with that... now i can change the other sql queries, and the whole script

if i finished it, i put it here online, maybe someone needs it... but later more infos...


anyway thanks KasLimon :)




Powered by Icy Phoenix