I am in Hurry+ help?????
Posted: Fri Jun 16, 2006 6:50 am
twigletmac | Please use
/////////////on the index.php page////////////////////
if any one knows its solution, i am very thankful to him.
Thanks in advance.
Crinch.
twigletmac | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi,
I have wasted a lot of time but in vain, i have created an array type variable $com and passes it in window.open('index.php?com=<?=$com?>','300','300');. But when i get it on the index.php page and show the result it showed only me the output as 'Array'.
What is the reason for this. For detail i have put the code here.Code: Select all
$qry2="select m.*,m.id as mid,c.* from mos_menu m, mos_categories c
where m.name=c.name and m.parent='".$Itemid."'";
$res2=mysql_query($qry2) or print mysql_error();
$total2=mysql_num_rows($res2);
$m=0;
while($row2=mysql_fetch_object($res2)){
$com2[$m]=$row2->id;
$m++;
}
<input type="button" value="-Compare-"/ onclick="window.open('dummy.php?com31=<?=$com2;?>','300','300');">Code: Select all
if(isset($_REQUEST['com31']))
{
//print "yes";
//$com=$_REQUEST['com2'];
for($k=0; $k<=count($_REQUEST['com31']); $k++)
{
print "\n".$_REQUEST['com31'][$k];
}
}Thanks in advance.
Crinch.
twigletmac | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
[quote="[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1"][b]2.[/b] Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.[/quote]