vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   What is the big complication? (https://vborg.vbsupport.ru/showthread.php?t=104014)

Lionel 12-30-2005 11:42 AM

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;


All times are GMT. The time now is 08:37 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01951 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete