Jump to content

BreakBreak

Members
  • Posts

    26
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

BreakBreak's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I used your idea, and it worked. Thank you for your time ken.
  2. Er... What? checkone = 100 condition = > 1 Did you read the posts above before you posted?
  3. $y = "if(\".$checkone.$condition.\"){ $ok = 'yes';}"; This does not work.
  4. Thanks. Well i got that echo'd too on the page and it says this: 7 >= 5
  5. $y = "if(".$checkone.$condition."){ $ok = 'yes';}"; eval($y); I get the following error: Parse error: parse error in /var/www/html/insidethecity.php(109) : eval()'d code on line 1 Line 109 is the code i showed. line 1 is <?
  6. Why is it not recommended? What i'm trying to do is pull 2 variables from a sql database as strings and use them in the If statement. One of the strings will always have the operator in it. Thanks in advance.
  7. $a = "2 >"; $b = 1; if($a $b){ echo "this works"; } So, Eval($a $b); if($a $b){ echo "this works"; } Is that right?
  8. I don't really like using echo at the beggining of these things, you'll have problems with the /'s and generally it gets messy. I had to do this A LOT for my latest project and i did this instead: <input name="number" type="text" class="text" value="<? echo "$row['number']"; ?>" size="15"/>
  9. Is this possible? $a = "2 >"; $b = 1; if($a $b){ echo "this works"; } So basically i'm trying to make an IF statement out of 2 variables. Is this possible? Thanks in advance.
  10. None, it doesn't run the function or repeat it.
  11. Whenever i try and post it timeouts for some reason so i'll link it. http://absinth.modernmethod.com/sajax/forum/viewtopic.php?t=2001 Sorry to do this but every time i post this code it times out the forum :(
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.