Jump to content

AJAX and PHP quick help


envexlabs

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/51847-ajax-and-php-quick-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.