[eluser]gazza7364[/eluser]
Hi
I'm trying to send a link with data via jquery and json. Everything works except the lnik I want to use to edit information about photos. No part of the link shows not even the word edit.
Here is part of the code being sent.
Code:
$output = "<div <?php echo anchor('photos/edit($data->photo_id'), 'Edit'); ?></div>";
$output.="
<table cellpadding='0' cellspacing='0''>
<tr>
<td>Image Name : </td>
<td>$data->imagename</td>
</tr>
<tr>
<td> PhotoAlbum : </td>
<td>$data->photo_album</td></tr>
<tr>
<td> Subject : </td>
<td>$data->subject</td></tr>
</table><table>
<tr>
<td align='center'>$image</td>
</tr>
</table>";
echo json_encode(array('html' => $output));
The part I'm having trouble with is the first line, I'm not sure if you can send php this way using jquery and json, if not is their a way as I need to have the link with the photo id.?
Thanks in advance.