Delphi programmer needs help
Posted: Sat Jun 07, 2008 4:25 am
Guys. I normally write Windows apps using Delphi. I use a program called PHPRunner to do a bit of web interfacing to a Mysql database that one of my applications uses.
When adding a record, I have phprunner fire an event before it posts a new record and in that I need to generate a text or string of 100 random charecters in length
I have looked around and came up with
$str = 'webadd';
while strlen($str) < 100
{
$str = $str . rand();
}
PHP runner creates a section that looks like
function BeforeAdd(&$values,&$message,$inline)
{
} // function BeforeAdd
and I have added my code between the {}
but it seems to fail. Would someone help me a bit please?
When adding a record, I have phprunner fire an event before it posts a new record and in that I need to generate a text or string of 100 random charecters in length
I have looked around and came up with
$str = 'webadd';
while strlen($str) < 100
{
$str = $str . rand();
}
PHP runner creates a section that looks like
function BeforeAdd(&$values,&$message,$inline)
{
} // function BeforeAdd
and I have added my code between the {}
but it seems to fail. Would someone help me a bit please?