ST['mysql'])) {
//do whatever you want with the
//$_POST['mysql'] variable and output the results
//the you want to be shown in the div with id resultsdiv
}
--
Best regards,
Peter Lauri
-Original Message-
From: Aras [mailto:[EMAIL PROTECTED]
, December 24, 2006 6:34 PM
To: php-general@lists.php.net
Subject: [PHP] calling a function in the same page
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query
Jahangir wrote:
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
hangir&query=' .u
to use JS library that you can do "AJAX" requests with and then do
what you want with by DOM.
/Peter
-Original Message-
From: Jahangir [mailto:[EMAIL PROTECTED]
Sent: Sunday, December 24, 2006 5:34 PM
To: php-general@lists.php.net
Subject: [PHP] calling a function in the same page
Jahangir wrote:
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
hangir&query=' .u
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
hangir&query=' .u
I am trying to call a function from "a href" inside the same page.
this is the code:
echo "More results from Mysite";
// calling the function isearch
function isearch($query)
{$query=urlencode($query);
$request='http://api.search.yahoo.com/WebSearchService/V1/webSearch?appid=Ja
hangir&query=' .u
Hi,
func(); //echo: B
?>
How can I call func() of class A from $cls object (that when I call
func() it will echo "A" and not "B")?
Changing functions names or declaring another function in class B that
will call parent::func() are not good for me.
-thanks, Eli
--
PHP General Mailing List (http
HI,
Im slightly in the dark as to do the following. What I need is a thread of
some sort that runs and when the time is midnight, it automatically calls a
script that does something. Can anyone point me in the right direction as to
where to start. Thanks
Angelo
--
Hi,
Saturday, September 13, 2003, 5:39:47 AM, you wrote:
CJWH> From: "Jason Wong" <[EMAIL PROTECTED]>
>> On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
>> > From: "Vincent M." <[EMAIL PROTECTED]>
>> >
>> > > Is there any way to call a function with a variable inside the call.
CJWH
From: "Jason Wong" <[EMAIL PROTECTED]>
> On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
> > From: "Vincent M." <[EMAIL PROTECTED]>
> >
> > > Is there any way to call a function with a variable inside the call.
ie:
> > >
> > > if($preferences != "") {
> > > dis_display$$pr
On Saturday 13 September 2003 01:40, CPT John W. Holmes wrote:
> From: "Vincent M." <[EMAIL PROTECTED]>
>
> > Is there any way to call a function with a variable inside the call. ie:
> >
> > if($preferences != "") {
> > dis_display$$preferences() ;
>
> $functon = "dis_play$preferences";
>
From: "Vincent M." <[EMAIL PROTECTED]>
> Is there any way to call a function with a variable inside the call. ie:
>
> if($preferences != "") {
> dis_display$$preferences() ;
$functon = "dis_play$preferences";
$function();
---John Holmes...
--
PHP General Mailing List (http://www.php.
Hello,
Is there any way to call a function with a variable inside the call. ie:
if($preferences != "") {
dis_display$$preferences() ;
}
If $preferences = "menus" this will call the function dis_displaymenus()
Thanks,
Vincent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
Ok, here i made a function that can accept an unknown number of params.
In fact, it's a data interface for a mysql database, when i call the
object's constructor it is in possibility to pass any number of table names
from 1 to x. Now i got this other class called a data interfacer which sends
a c
I got it, I think:
and this at the beginning of file "B"
$selected == "$selected";
and placed this statement in file "A"
if (isset($selected[$cat]))
{
include ("cat_select.php");
}
I don't know why it works but it does, is there anything wrong with this method?
Gerry wrote:
>
> I hope yo
I hope you understand:
It is too long to include here so I'll give you an idea.
file.B
---
";
//-cats
$cats = explode(',',$all_cats);
//--values
$cats_vals = explode(',',$all_cats);
print html_options($cats, $cats_vals, $selected, "--Select one--");
echo"";
?>
---
19 matches
Mail list logo