php syntax query
<p>i have 2 questions to ask:
first of all, in <code>while ($row = mysql_fetch_object($result))</code></p>

<p>i have an object: <code>$row-&gt;atitle</code></p>

<p>now through javascript, i want to print on the page an ++increment of the current object of the array.</p>

<p>i am doing this: </p>

<pre><code>hidephp = document.write("&lt;?php echo .$row-&gt;atitle.["+inc+"];"+" ?&gt;");
</code></pre>

<p>the above doesnt seem to work. help would be much appreciated.</p>
