Hello, How can I call a php fucntion from within a MySQL SELECT statement?
What I have is:
$result = mysql_query("SELECT GetCountry(IPAddrss), IPAddrss FROM pgstats");
GetCountry is my php function, and it does work when I call it like this:
echo GetCountry($ip);
What am I doing wrong?
TIA,
Louis
What I have is:
$result = mysql_query("SELECT GetCountry(IPAddrss), IPAddrss FROM pgstats");
GetCountry is my php function, and it does work when I call it like this:
echo GetCountry($ip);
What am I doing wrong?
TIA,
Louis