PHP gives wrong value or none at all
<p>Ok, so I'm having a strange problem: when fetching value of my DB i get some rows OK, and some not at all. I'm using the combination od javascript and PHP to get the values out. </p>

<pre><code>function fun(){     
        &lt;?php
            $result = mysql_query("SELECT * FROM `pitanja` WHERE `rBr` LIKE '$rb';",$connection);
            $row = mysql_fetch_array($result);
            $pi=$row['pit'];
            $odgo=$row['odg'];
            $opt1=$row['opt1'];
            $opt2=$row['opt2'];
            $opt3=$row['opt3'];
            $bod=$row['point'];
        ?&gt;
</code></pre>

<p>this way i get the values. I have 7 inputs in my DB and the first 2 i get what i should get, then the next 2 i don't , the one after that i do, and the rest i don't. I figured that i get the values where $odgo and $opt values are int. In my DB in the rest of rows, those values are text and i can't get them out. My function won't start and nothing happens. </p>

<pre><code>$hig=$hig+($bod*10);
mysql_query("UPDATE `gagq`.`user` SET `highscore` = '$hig' WHERE `user`.`id` ='$uid';");
</code></pre>

<p>Also, this gives the result of 6400 every time, even though <code>$hig</code> has initial value of 0 and <code>$bod</code> of 100.</p>
