August 8, 201114 yr comment_9478 Am getting fatal error: Call to undefined function() in D:/UniServer/www/getSilver.php on line 9 Checked phpinfo in Admin panel and it tells me Configuration File (php.ini) Path = C:\WINDOWS Loaded Configuration File = D:\UniServer\usr\local\php\php.ini Hints from web searches indicate that I should change the file path to the D:\UniServer\usr\local\php\php.ini To stop this error.I am using UniServer Orion 7.1.3 and the PHP configuration link dosen't provide a path to php.ini change?Not even sure that it would work Report
August 8, 201114 yr comment_9479 You are running Uniform Server from D: drive“Loaded Configuration File = D:\UniServer\usr\local\php\php.ini”The loaded configuration is correct. Problem is with line 9 can you post getSilver.php line 9 Report
August 8, 201114 yr Author comment_9483 Coral, BobS spoted the error and I havent testeted the result yet. Let me know if you see anything else or recomend anything else. BobS is correct when he says this isn't the forum for Ajax and php tutorials but it is for UniServer working correctly questions. <?php $link=mysql_connect("localhost","root","root")or die(mysql_error( )); mysql_select_db("bwi",$link) or die(mysql_error( )); $query=mysql_query("SELECT Code,Item,Description,Href,Src FROM silver")or die(mysql_error( )); // had msql_query not mysql!!!!!!!!!! echo "<table border='1'> <tr> <th>Code</th> <th>Item</th> <th>Description</th> <th>Href</th> <th>Src</th> </tr>"; while($row = mysql_fetch_array($query)) { echo "<tr>"; echo "<td>" . $row['Code'] . "</td>"; echo "<td>" . $row['Item'] . "</td>"; echo "<td>" . $row['Description'] . "</td>"; echo "<td>" . $row['Href'] . "</td>"; echo "<td>" . $row['Src'] . "</td>"; echo "</tr>"; } echo "</table>"; mysql_close($link); ?> Hay Coral, BobS was right and it worked, the div innerHTML gets the output from query the only thing is that the getSilver.php returns the #comment at the top of the php page along with the table. Is there a way to write the SELECT that dosen't return the #Comment in the php page? Report
August 8, 201114 yr Author comment_9485 Hay Coral, BobS was right and it worked, the div innerHTML gets the output from query the only thing is that the getSilver.php returns the #comment at the top of the php page along with the table. Is there a way to write the SELECT that dosen't return the #Comment in the php page? Report
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.