Quantum1982 Posted December 20, 2009 Share Posted December 20, 2009 what is wrong with this code ? <html> <body> <?php $conn=odbc_connect('Towel','',''); if (!$conn) {exit("Connection Failed: " . $conn);} $sql="SELECT * FROM Towel"; $rs=odbc_exec($conn,$sql); if (!$rs) {exit("Error in SQL");} echo "<table><tr>"; echo "<th>ProductID</th>"; echo "<th>Name\</th></tr>"; echo "<th>Dimensions\</th></tr>"; echo "<th>Weight\</th></tr>"; echo "<th>Color\</th></tr>"; while (odbc_fetch_row($rs)) { $ProductID=odbc_result($rs,"ProdcutID"); $Name=odbc_result($rs,"Name"); $Dimensions=odbc_result($rs,"Dimensions"); $Weight=odbc_result($rs,"Weight"); $Color=odbc_result($rs,"Color"); echo "<tr><td>$ProdcutID</td>"; echo "<td>$Name</td></tr>"; echo "<tr><td>$Dimensions</td>"; echo "<td>$Weight</td></tr>"; echo "<tr><td>$Color</td>"; } odbc_close($conn); echo "</table>"; ?> </body> </html> the file just doesn't show anything in Internet Explorer Link to comment https://forums.phpfreaks.com/topic/185765-newbie-error/ Share on other sites More sharing options...
Buddski Posted December 20, 2009 Share Posted December 20, 2009 <?php error_reporting(E_ALL); ?> then you might be able to tell us Link to comment https://forums.phpfreaks.com/topic/185765-newbie-error/#findComment-980904 Share on other sites More sharing options...
Mchl Posted December 20, 2009 Share Posted December 20, 2009 Please do not double post. Link to comment https://forums.phpfreaks.com/topic/185765-newbie-error/#findComment-980918 Share on other sites More sharing options...
Quantum1982 Posted December 21, 2009 Author Share Posted December 21, 2009 Yeah sorry about double post : There are so many buttons on this site, the navigation in itself takes time to learn. I have decided to rather swich to MySql using Php. This in itself is taking me time to learn, just the installation is complicated. Although I am getting there. I suppose the other thing that makes this more complex is the person's particular hardware and software, sometimes it makes a difference. I am using PhpDesigner 7 Laptop is running Windows XP. Thanks Link to comment https://forums.phpfreaks.com/topic/185765-newbie-error/#findComment-981511 Share on other sites More sharing options...
Mchl Posted December 21, 2009 Share Posted December 21, 2009 Ok. In your other post I gave you a link to a debugging tutorial. http://www.phpfreaks.com/tutorial/debugging-a-beginners-guide Did you read it? Did you manage to get any error messages? Link to comment https://forums.phpfreaks.com/topic/185765-newbie-error/#findComment-981557 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.