Some Help for SQL Needed


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?

Subject: Re: Some Help For SQL Needed
Hi, first of all, this lines are not doing anything:
Code: [Download] [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!

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"

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?

Subject: Re: Some Help for SQL Needed
exactly :mryellow:

greetings

Subject: Re: Some Help For SQL Needed
I've been testing and I got this:
Spoiler: [ Show ]

Try it. Greets!

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 =)

Subject: Re: Some Help For SQL Needed
Nice to know it works :mricy:

Greets!

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 :)


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.1256s (PHP: 18% SQL: 82%)
SQL queries: 10 - Debug Off - GZIP Enabled