The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
The table says it clearly:
Quote:
Theorically seems easy to reinsert those values in same array textboxes so why is this not doing the job? PHP Code:
|
#2
|
|||
|
|||
![]()
I guess what you want would be something like:
PHP Code:
|
#3
|
|||
|
|||
![]()
Thanks Marco. At least I am getting somewhere, but it displays all the values in all the textboxes.
5 25 should have been on the second line, 15 on the third and 55 on the fourth. Nothing for first and last. :tired: |
#4
|
|||
|
|||
![]()
Then please post a bigger part of your source. Impossible to see from this snippet exactly what you are trying to do, and advise you.
|
#5
|
|||
|
|||
![]()
Here is the full code. I had the same problem with the checkboxes. See how I got around it
PHP Code:
PHP Code:
|
#6
|
|||
|
|||
![]()
Sorry but i really can't advice, still not enough info. You are confusing with your examples. In the screenshot you are talking about the values 5, 25, 15 & 55, but the serialized array is showing totally different values.
I will need to know how to relate the array elements to the current player (PS if those 4 values are stored for 1 player, why don't they all apply to that player?) Also posting the templates you are using might help. ....And, please please please, for yourself and others, do some decent line indentions, it will make your code so much easier to read. PS I changed the above to the following, waiting on your feedback: PHP Code:
|
#7
|
|||
|
|||
![]()
OK, as I am doing for 2 teams, here is the other serialize
PHP Code:
Main template PHP Code:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
![]() Quote:
![]() Game - gameid GameTeam (2 rows per game, one for each team??????) - gameid - teamid - totalscore GamePlayers - gameid - teamid - playerinfo - gminutes2 (a serialized array containing the minutes of all goals scored by any player for this game/team) As you see you are storing the minutes from all players in the row about a single player, then you want out of that array to retrieve only the goals, the current player has made. How can you know which array element you need for a player, and why store the info of all players in the row about a single player. PS Maybe better if you also give your table structure and some sample data. |
#9
|
|||
|
|||
![]()
Here is a snaphop of my main predictions table
Here is how it works. Member comes on the site and select a game for predictions. He gets to put the scores for team1 and for team 2 then he gets to put who will score (from the checkboxes) and at what minute that score will happened in the textbox, separating 2 goals for same player by a space. (in my example I simulated a prediction for 5 goals and 4 inputs for minutes, one of them having scored twice, so same textbox has 2 value). I have only one input per game per member, meaning in that structure I am posting in this post, a single line holds all the values serialized (although the prdplayer serialize was not necessary) . The rest is accomplish with LEFT JOIN. I am also posting how it looks in db. And here is how I insert in the prediction table PHP Code:
|
#10
|
|||
|
|||
![]()
Sorry but what you got is really confusing.
If you want help on this, send me you ICQ or MSN contact info in PM. |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|