ciachowski
Weird Person
Greetings,
While working I came across a problem and I ask for your help to slove it.
I am trying to write AJAX/JS script that will dynamicly updating mysql queries and returns results to the PHP script. It means that I wanna make script that will displays variables from mysql_database without reloading page and the result variable will not be variable as string.
e.g. it's something like that: (I really don't know JS well, so I will write it in php-style)
AUTOMATIC QUERING THIS PART IN JS/AJAX SCRIPT {
$sql = mysql_query("...");
$sql1 = mysql_fetch_array($sql);
$result = $sql1['...'];
}
DISPLAYS RESULTS IN PHP SCRIPT {
echo $result;
}
I really don't know how to wrtie it, I have already googling so long time, and didn't find any good idea how to get point. The biggest problem is that I cannot receive result variable as string because I cannot use it anymore in any function e.g. if();.
Maybe someone of you will be able to help me
I am looking forward answers
While working I came across a problem and I ask for your help to slove it.
I am trying to write AJAX/JS script that will dynamicly updating mysql queries and returns results to the PHP script. It means that I wanna make script that will displays variables from mysql_database without reloading page and the result variable will not be variable as string.
e.g. it's something like that: (I really don't know JS well, so I will write it in php-style)
AUTOMATIC QUERING THIS PART IN JS/AJAX SCRIPT {
$sql = mysql_query("...");
$sql1 = mysql_fetch_array($sql);
$result = $sql1['...'];
}
DISPLAYS RESULTS IN PHP SCRIPT {
echo $result;
}
I really don't know how to wrtie it, I have already googling so long time, and didn't find any good idea how to get point. The biggest problem is that I cannot receive result variable as string because I cannot use it anymore in any function e.g. if();.
Maybe someone of you will be able to help me
I am looking forward answers