Lee-Bartlett Posted October 22, 2008 Share Posted October 22, 2008 Im pretty sure its simple but my editor pushes it onto 2 lines on on the input form line, what do i need to do? <?php $sql = "SELECT * from tblbasicform"; $res = mysql_query($sql) or die(mysql_error()); echo "<table border=2>"; echo "<tr> <td>Name</td><td>Email</td><td>Buissnes Name</td><td>Location</td><td>Latitude</td><td>Longitude</td> <td>Free or Paid</td><td>New</td></tr>"; while($row = MYSQL_FETCH_ARRAY($res)) { echo "<tr><td>".$row['name']."</td>"; echo "<td>".$row['email']."</td>"; echo "<td>".$row['buissnes_name']."</td>"; echo "<td>".$row['location']."</td>"; echo "<td>".$row['latitude']."</td>"; echo "<td>".$row['longitude']."</td>"; echo "<td>".$row['type']."</td>"; echo "<form>"; echo "<td><INPUT type="button" value="New Window!" onClick="window.open('http://www.google.com','mywindow', 'width=600,height=400,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')"></td></tr>"; echo "</form>"; } ?> my editor makes it look like that error message Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/nexodom/public_html/website/wifi.php on line 142 Quote Link to comment https://forums.phpfreaks.com/topic/129608-solved-missing-somthing/ Share on other sites More sharing options...
Lee-Bartlett Posted October 22, 2008 Author Share Posted October 22, 2008 im not sure this is a editor problem actually, might need to break my "" up not sure tho Quote Link to comment https://forums.phpfreaks.com/topic/129608-solved-missing-somthing/#findComment-671912 Share on other sites More sharing options...
wildteen88 Posted October 22, 2008 Share Posted October 22, 2008 You need to escape the quotes within your string The following echo "<td><INPUT type="button" value="New Window!" onClick="window.open('http://www.google.com','mywindow', 'width=600,height=400,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')"></td></tr>"; Should be echo "<td><INPUT type=\"button\" value=\"New Window!\" onClick=\"window.open('http://www.google.com','mywindow', 'width=600,height=400,toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes,resizable=yes')\"></td></tr>"; Quote Link to comment https://forums.phpfreaks.com/topic/129608-solved-missing-somthing/#findComment-671968 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.