flemingmike Posted June 18, 2010 Share Posted June 18, 2010 hi all, im getting this error: PHP has encountered an Access Violation at 01B7ACB2 with this code: <?php include("style.php"); $hmm = simplexml_load_file('http://www.durhamit.ca:8181/1.0/?method=database.search&searcharg=a'); //If we submitted the form if(isset($_POST['submitMe'])) { foreach($hmm->tracks->track as $tracks) { $artist = $tracks->artist; $title = $tracks->title; $album = $tracks->album; $id = $tracks->id; echo '<table border="1" width="60%" align="center">'; echo '<tr>'; echo '<td width="25%">'.$artist.'</td>'; echo '<td width="25%">'.$title.'</td>'; echo '<td width="25%">'.$album.'</td>'; echo '<td width="25%"><a href="http://www.durhamit.ca:8181/1.0/?method=player.playDatabaseItem&id='.$id.'">Play</a></td>'; echo '</tr>'; echo '</table>'; } } //If we haven't submitted the form else { ?> <form action="<?=$_SERVER['PHP_SELF']?>" method="POST"> <input type="text" name="name"><br> <input type="submit" value="submit" name="submitMe"> </form> <? } ?> ?> any ideas? Quote Link to comment https://forums.phpfreaks.com/topic/205181-different-error/ Share on other sites More sharing options...
Maq Posted June 18, 2010 Share Posted June 18, 2010 Before looking at your code turn on max error_reporting: ini_set ("display_errors", "1"); error_reporting(E_ALL); Quote Link to comment https://forums.phpfreaks.com/topic/205181-different-error/#findComment-1073982 Share on other sites More sharing options...
flemingmike Posted June 18, 2010 Author Share Posted June 18, 2010 i figured it out... stupid me. thanks neways Quote Link to comment https://forums.phpfreaks.com/topic/205181-different-error/#findComment-1073986 Share on other sites More sharing options...
Pikachu2000 Posted June 18, 2010 Share Posted June 18, 2010 After you've enabled error reporting, get rid of the quick echo tag syntax, and the short open tag syntax, replacing them with the full <?php and ?> tag syntax. Quote Link to comment https://forums.phpfreaks.com/topic/205181-different-error/#findComment-1073990 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.