Search found 10 matches

by fccolon
Tue Aug 17, 2004 4:03 am
Forum: Code Snippets
Topic: checkbox forms[array]
Replies: 7
Views: 10942

Hi G3cko,

Sorry I cant help you.....I'm a noob, which was why I was browsing in the Code Snippets section.
To get an answer to you question you'd probably be better off posting in PHP-Code section.
by fccolon
Thu Jul 29, 2004 10:46 am
Forum: PHP - Code
Topic: Where's my logic going wrong ?
Replies: 10
Views: 1615

Which confirms how little I know about coding, and my script is dissappearing up it's own backside :) This script is an include on another - In the first script I select a season from a list already in the db, then select a division. A record is put into a table to link these two together. Then the ...
by fccolon
Wed Jul 28, 2004 8:59 am
Forum: PHP - Code
Topic: Where's my logic going wrong ?
Replies: 10
Views: 1615

pickle wrote:$rounds isn't defined anywhere
I do get values displayed from $rounds if I print_r (or print_a) it within

Code: Select all

case"Select Circuits":
{
..
..
}
just not in

Code: Select all

case"Add Rounds":
{
..
..
}
the switch() code is being executed in the sequence

default
Select Circuits
Add Records
by fccolon
Wed Jul 28, 2004 3:40 am
Forum: PHP - Code
Topic: Where's my logic going wrong ?
Replies: 10
Views: 1615

Haven't had a chance to retest yet, but I have another question regarding arrays - in this code snip I'm setting up checkboxes for the admin to choose a number of circuits from a list, currently only storing the record id of the selected circuit, while ($trackrecs = mysql_fetch_array($get_list2_res)...
by fccolon
Tue Jul 27, 2004 11:27 am
Forum: PHP - Code
Topic: Where's my logic going wrong ?
Replies: 10
Views: 1615

Thanks for the replies guys.....I'll try them out and let you know how I get on, tho on the one or two other INSERTS I've done I haven't had to include the field names - or is that more for debugging purposes. the print_a function comes from the included dubuglib.php script which I got from http://w...
by fccolon
Tue Jul 27, 2004 8:23 am
Forum: PHP - Code
Topic: Where's my logic going wrong ?
Replies: 10
Views: 1615

Where's my logic going wrong ?

OK, I've probably totally misunderstood how php works but the following script is supposed to - Get the no of tracks required for a season, Display a list of tracks from which the user selects the ones to include in the season, Then display only the tracks selected for the user to add a round number...
by fccolon
Mon Jul 19, 2004 10:13 am
Forum: PHP - Code
Topic: [SOLVED] Problem with a variable
Replies: 8
Views: 1329

Thank you liljester........it works....put the insert code in and all runs smoothly

Now I can go and bodge the rest of it :)
by fccolon
Mon Jul 19, 2004 8:56 am
Forum: PHP - Code
Topic: [SOLVED] Problem with a variable
Replies: 8
Views: 1329

I changed - $make_link = "INSERT INTO GPL_lsdd VALUES ('', '$sel_divid', '$did' )"; to $make_link = "INSERT INTO GPL_lsdd VALUES ('0', '$sel_divid', '$did' )"; and if ($_POST[op2]= "select2") with ... if ($_POST['op2']== "select2") but get the same result
by fccolon
Mon Jul 19, 2004 8:30 am
Forum: PHP - Code
Topic: [SOLVED] Problem with a variable
Replies: 8
Views: 1329

Thanks for the pointers, I'll give them a go and let you know. With ref to Waynes post - The script does show one selection box at a time.....no reason why it can't show both boxes together, just me learning as I go along....however I did put an echo of the sel_divid var inside the elsif clause to e...
by fccolon
Mon Jul 19, 2004 6:13 am
Forum: PHP - Code
Topic: [SOLVED] Problem with a variable
Replies: 8
Views: 1329

[SOLVED] Problem with a variable

Hi, 1st, I am new to php (and coding in general) so forgive me if I dont explain correctly or my code looks naff :) One of my variables appears to be losing it's value....or my mysql INSERT isn't working correctly. The code has two selects 1st is to select a division, the division id is stored in $s...