Heinz Stapff Posted August 8, 2011 Report Share Posted August 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
Coral Posted August 8, 2011 Report Share Posted August 8, 2011 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 Quote Link to comment Share on other sites More sharing options...
Heinz Stapff Posted August 8, 2011 Author Report Share Posted August 8, 2011 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? Quote Link to comment Share on other sites More sharing options...
Heinz Stapff Posted August 8, 2011 Author Report Share Posted August 8, 2011 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.