I have on the server a directory with photos.
I have in my mysql database records with a field 'photo'. the field contains the name of the photo.
I want to populate a grid with these photos with the json method.
I tried this:
while …
$responce->rows[$i]['id']=$row['Id_Resident'];
$responce->rows[$i]['cell']=array($row['Nom'],$row['Prenom'],$row['Sexe'],”/photos/”.$row['Photo']);
$i++;
echo json_encode($responce);
But the result is a link to the photo AND not the photo !
Same result if i do:
formatter:'showlink',
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top