Jump to content

Variable problem

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Hamed

Hamed

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 276 posts
    $d = $a['d'];
    $m = $a['m'];
    $y = $a['y'];
    $de = $a['de'];
    $me = $a['me'];
    $ye = $a['ye'];
    $ds.$d = " selected";
    $ms.$m = " selected";
    $des.$de = " selected";
    $mes.$me = " selected";
This is my code
I want to select $ms1 if $m = 1 but this way didn't work is there anyway to do it?

#2
gokuajmes

gokuajmes

    Programming God

  • Members
  • PipPipPipPipPipPipPip
  • 518 posts
is this php ?

edit: yikes sorry did not see the sectiion first.

Ok will inform the right person to attend to this

#3
kris.wan

kris.wan

    Newbie

  • Members
  • Pip
  • 2 posts
Why not just use arrays?