NCHCraig wrote:
The ineturl plugin does not support return information itself. The returned information is purely what is returned from the internet server as defined in the php script. In the example the last lines are
echo "amount=";
echo "$amount";
This will return a variable amount which can then be used in IVN (Note you refer to it in IVM as %amount%)
<{POST_SNAPBACK}>
I have read the ineturl.rtf and understand is, but I don't know exactly, how to use i.e. %amount%. I.e. in OGM4 I run ineturl.exe with parameter: "http://127.0.0.1/IVM/test.php?number=12345"
My php script:
<?php>
$number=$_REQUEST['number'];
$user="root";
$host="localhost";
$password="";
$database="IVM_teszt";
$connection=mysql_connect($host,$user,$password)
or die ("could not connect");
$db=mysql_select_db($database,$connection)
or die ("could not connect to database");
$query ="select Nev from user where azonosito= '$number'";
$result= mysql_query($query)
or die ("could not execute");
$row = mysql_fetch_array($result);
extract($row);
echo"Nev: ";
echo($Nev);
?>
This example script is in working oder and in IVM I see that the ineturl works fine. But in OGM5 (after OGM4) I want to log the Nev variable as: %date%,%time%,%linename%,%cid%,%number%,%Nev%
but in log file I find only this:
2005-07-05,10:26:23,Line 1,5555555555,12345,
If I run this php script in exploler with number parameter, I get back the result, so I don't know where is the problem. Please help me!
Thx!
Sorry for my poor English!!!!