06-13-2009
Sending Post Parameters With Ajax
Hi!!!
I'm having a little problem with a web application I'm developing.
I need to send a query to a php script using post method of Ajax.
I created the variable where the query is stored and it looks like this:
consulta= barrio="Monserrat" or barrio="Palermo"&buscar=1;
this is in a variable called params...
The problem is that the php script never receibes de "consulta" variable, actually it receives it but it's empty...
I'm totally sure that the problem is that i need to scape same characters but i don't know how to do it... can someone help me????
Thanks!!!!
4 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Can anybody help me out in sending parameters from sql*plus script to unix shell script without using flat files..
Initially in a shell script i will call sql*plus and after getting some value from some tables, i want that variable value in unix shell script. How can i do this?
Please tell me... (2 Replies)
Discussion started by: Hara
2 Replies
2. AIX
Hello,
On Aix 5.2, we changed the parameters tcp_keepinit, tcp_keepintvl and tcp_keepidle with the no command.
tunrestore -R is present in inittab
in the directory /etc/tunables we can clearly see the inclusion of parameters during reboot, including the file lastboot.log
... (0 Replies)
Discussion started by: dantares
0 Replies
3. Web Development
I have an Ajax script that runs on IE9 & FF but not IE8...well it runs but there is some sort of memory leak so the script runs slower and slower with each consecutive click because the code being processed is not being cleared each time, or something. I found some articles online and tried them... (0 Replies)
Discussion started by: tifischer
0 Replies
4. Shell Programming and Scripting
Hi Folks ,
I am asking this question but i apologise please if this is not the correct forum ,
I have to develop a shell script that i want to place in at hooks/post-commit , that is basically i have to develop a post hook script and the main functionality of that script would be lets say if... (0 Replies)
Discussion started by: sunsun06060606
0 Replies
LEARN ABOUT PHP
pg_free_result
PG_FREE_RESULT(3) PG_FREE_RESULT(3)
pg_free_result - Free result memory
SYNOPSIS
bool pg_free_result (resource $result)
DESCRIPTION
pg_free_result(3) frees the memory and data associated with the specified PostgreSQL query result resource.
This function need only be called if memory consumption during script execution is a problem. Otherwise, all result memory will be auto-
matically freed when the script ends.
Note
This function used to be called pg_freeresult(3).
PARAMETERS
o $result
- PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others).
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
pg_free_result(3) example
<?php
$db = pg_connect("dbname=users user=me") || die();
$res = pg_query($db, "SELECT 1 UNION ALL SELECT 2");
$val = pg_fetch_result($res, 1, 0);
echo "First field in the second row is: ", $val, "
";
pg_free_result($res);
?>
The above example will output:
First field in the second row is: 2
SEE ALSO
pg_query(3), pg_query_params(3), pg_execute(3).
PHP Documentation Group PG_FREE_RESULT(3)