I discovered a thing that maybe can help you to understand the error and help me to resolve it.
i don’t write you all the functions a wrote but just the once i use to load data in the dataview
function row (id,ind) {
var indice = grid.getRowIndex(id);
SetCookie("indice", grid.getRowIndex(id));
dataview.load("php/info_clown.php");
}
function SetCookie(name, value) {
var todayDate = largeExpDate = new Date();
largeExpDate.setTime(todayDate.getTime() + 10 * 1000); //si stabilisce quando scadono i cookies con il tempo espresso in mille secondi
document.cookie = name + “=” + escape(value) + “; expires=” + largeExpDate.toGMTString(); //scrive il cookies (name = nome del cookie value = valore del coockie)
}
as you can see i use cookies to get the variable from js to php.
and here below the php file:
require("…/conn_codebase/dataview_connector.php");
$conn=mysql_connect(“localhost”,“root”,"");
$database = mysql_select_db(“clown”);
$query = “SELECT * FROM membri”;
$result = mysql_query($query,$conn);
$i = 0;
$data = new DataViewConnector($conn);
$indice = $_COOKIE[“indice”];
while($i <= $indice)
{
$row = mysql_fetch_array($result);
$i++;
}
$codicefisc = $row[“codicefiscale”];
$data->render_sql(“SELECT * FROM membri WHERE codicefiscale = ‘$codicefisc’”,“codicefiscale”,“codicefiscale,indirizzo,citta,provincia,cap,email,telefono,cellulare,sesso,data”);
the thing i noticed is that if i show a popup window in row function such as alert(document.cookie), the corret index of the row is showed, but if i modify my php file no changes are showed. even though i create an error such as writing Whle() nothing appens. this means that the file php is loaded just once when i open the browser and no more. neither if i update the page.
if i clow the browser and open it again the first one data is loaded correctly and the nothing… no more php file is loaded, the function row() works always but instruction dataview_load() for some reason not.
Could you help me if these informations?