![]() |
|
#1
|
|||
|
|||
php recallHeres another problem that may be impossible
PHP Code:
can I print dependant on the results? ie if id is odd print this if id is even print that If you understand what I am trying to do you must be psychic If it is possible How do I do it? Last edited by Allowee : 28-Sep-2003 at 07:59.
|
|||
|
#2
|
||||
|
||||
|
I did a little fix with the PHP bbcode..
I've seen some the code you want in some user note on php.net. But i can't find it now... I think google must be used for this When I find it, I'll post it |
|
#3
|
|||
|
|||
|
Thanks Allowee this is a great cause of frustration at the moment
I know what I want but getting it is another matter. |
|
#4
|
||||
|
||||
Re: php recallQuote:
Sorry, I am not psychic PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
|
sorry for being so vague:-?
I want to search a table that stores player stats. The details of the players are similar but the points are worked out on there position. ie Goalie or Striker What I want to do is if a player whos position is Goalie is called by the select menu rather than printing all the columns in the row it just prints the relevant columns that I want displayed. Alternatively if Striker is selected the relevant columns are printed for that position. At the moment on the selection of either position all the columns are displayed for both position. This can be a little confusing for the viewer. Is that clear as mud now? ![]() |
|
#6
|
||||
|
||||
|
Unfortunately your 'clear as mud' explanation made it even worse, if before I thought I understood, now I am certain I don't!
Perhaps if you try to explain what you're trying to with some pseudocode that might help. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#7
|
|||
|
|||
|
OK deep breath..... and here we go
PHP Code:
OK now if position Goalie is selected how do I get for example just games and manofthematch to print and if Striker is selected just name, position and id to print? Or is it impossible without extensive rewritting, a bottle of jack daniels and wall to bang my head against? Hope this as cleared the mud a little or have I now turned the light off as well? |
|
#8
|
||||
|
||||
|
Actually I am still lost... but based on your last few sentences (inside your last post), I think you should think about something like this; just so you keep your code clean, clear and easier to manage:
You're trying to do 2 things based on different selects? So, I assume this is off a form? Try incorporating a 'hub' function (for lack of a better term); let's say we name it : process_player() PHP Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#9
|
|||
|
|||
|
(screwing top onto bottle of jack daniels and removing head from wall) That looks like what I want to do.
I will give it a go and see how long it takes before the top comes off again. Thanks JdS |
|
#10
|
|||
|
|||
Couldnt get it to work using the methos you suggestedBUT Got it to work using PHP Code:
but my code is now really messy Now for the next problem I want to limit my calculations PHP Code:
how do I limit the number of decimal places and get it to round up or down? Sorry to ask so many questions but I always seem to get so far and then hit a full stop or the wall again ![]() |
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Optimizing your web server with Turck MMCache for PHP | JdS | Web Hosting Forum | 2 | 07-Jan-2004 07:48 |
| apache2 - php cgi fehler - schleife | inna | Apache Web Server Forum | 8 | 27-Nov-2003 09:55 |
| Automate a data change php form | mjfmn | MySQL / PHP Forum | 4 | 20-Oct-2003 09:37 |
| [Linux] Installing PHP --with-mcrypt | JdS | Web Hosting Forum | 0 | 20-Aug-2003 08:40 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 16:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The