View Single Post
  #11  
Old 12-30-2005, 11:42 AM
Lionel Lionel is offline
 
Join Date: Dec 2001
Location: Delray Beach, Florida
Posts: 3,277
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

one important point: all textboxes are stored in the array, regardless or not they have values in them (they are stored as "" for value), so that keeps the order of the textbox. I was hoping to retrieve them with $predminutes2[0], $predminutes2[1], $predminutes2[2] etc, inserting blanks where there are and real values where there are.

That's why I did
PHP Code:
    for( $i2=0$i2 count($predminutes2); $i2++) {
    
$minutes2="<input type=\"text\" name=\"predminutes2[]\" value=\"$predminutes2[$i2]\" size=\"10\">"

hoping to get values in order with [$i2]
-------------------------------------------------------------
post was merged
----------------------------------------------------------
OK, I renamed predminutes1 and 2 into gdata1 and gdata2 and here is my new array with playerid. That coorectly shows the last 3 players as scorers with their correct playerid

PHP Code:
 [gdata1] => a:5:{s:10:"0000000002";s:0:"";s:10:"0000000003";s:0:"";s:10:"0000000004";s:5:"44 56";s:10:"0000000005";s:5:"12 29";s:10:"0000000006";s:2:"68";}

Not knowing what to replace 'checked' with from the other code, I did a test and placed 'OK'. That did not display

PHP Code:
 $data1=unserialize($getplayers1['gdata1']);
$gavegoal1 = (in_array($playerid1$data1) ? "ok" "");
$minutes1 ="<input type=\"text\" name=\"predminutes1[$playerid1]\" value=\"$gavegoal1\" size=\"10\">"
however, while I see the playerid in the string above, this does not display them

foreach ($data1 as $value)
echo $value;
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01804 seconds
  • Memory Usage 1,777KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete