envexlabs Posted May 17, 2007 Share Posted May 17, 2007 Hey, I'm looping out some database values with an AJAX delete button. while($i = mysql_fetch_row($query)) { echo $i[0] . "<br />"; echo $i[1] . "<br />"; echo $i[2] . "<br />"; echo '<a href="javascript: MyAjaxRequest('main','hello.php?ID=' . $i[2] . ' ')">Delete</a><br />'; } the problem is the AJAX link uses both ' and " so the code is breaking. Anyone know a fix? Thanks, envex Quote Link to comment Share on other sites More sharing options...
taith Posted May 17, 2007 Share Posted May 17, 2007 echo '<a href="javascript: MyAjaxRequest(\'main\',\'hello.php?ID='.$i[2].'\')">Delete</a><br />'; Quote Link to comment Share on other sites More sharing options...
envexlabs Posted May 17, 2007 Author Share Posted May 17, 2007 and once again, thanks! Quote Link to comment Share on other sites More sharing options...
taith Posted May 17, 2007 Share Posted May 17, 2007 no problemo lol :-D 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.