[PHP] enhanced_list_box, 2 tables from a database

2007-11-07 Thread kNish
Hi,

A newbie question. I have more than one table to access from a database.

When I use the code as below, it gives no response on the web page.

What may I do to run more than one table from the same database into the
script.

BRgds,

kNish

.
.
.
.

 
Artist
';
enhanced_list_box(array(
'table' => 'artist',
'value_field' => 'artist_name'));
function enhanced_list_box($options){
$sql = "select " . $options['value_field'];
$sql .= " from " . $options['table'];
$result = mysql_query($sql)or die("error in SQL");
echo '';
while ($row = mysql_fetch_array($result, MYSQL_NUM))
echo '' . $row[0] . '';
echo '';
}
echo '';
?>



 
Project
';
enhanced_list_box(array(
'table' => 'project',
'value_field' => 'project_name'));
function enhanced_list_box($options){
$sql = "select " . $options['value_field'];
$sql .= " from " . $options['table'];
$result = mysql_query($sql)or die("error in SQL");
echo '';
while ($row = mysql_fetch_array($result, MYSQL_NUM))
echo '' . $row[0] . '';
echo '';
}
echo '';
?>
 <http://www.php.net/a>
.
.
.
.
.


[PHP] explorer

2007-11-10 Thread kNish
Hi,

   How if, it is possible to open a windows explorer with a
path specified in it, thru a php script.

 BRgds,

kNish

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Re: explorer

2007-11-12 Thread kNish
Hi,

I am a newB to php.  When a user clicks a button on the client
side, it will open a windows explorer with the path to a folder from
the server machine. Is it possible.

Lets say my server is machine x and client is machine y. from y is it
possible using php to open a path from x (X:\folder1\folder2\)

I am using

 . Alternatively, I used system instead of exec. It
shows the path but upto two subfolders not all.

BRgds,

kNish

On 11/10/07, kNish <[EMAIL PROTECTED]> wrote:
> Hi,
>
>   How if, it is possible to open a windows explorer with a
> path specified in it, thru a php script.
>
>  BRgds,
>
> kNish
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] enhanced_list_box

2007-11-12 Thread kNish
Hi,

   I am using this function enhanced_list_box. This works
fine. Except the return value is None. How is it possible for it to
return a proper value. It reads a list from a data base.

Brgds,

kNish

  
  ';
   $test = enhanced_list_box_05(array(
'table' => 'artist',
'value_field' => 'artist_name',
'highlight_id' => 1));
echo "$test";
function enhanced_list_box_05($options){
$sql = "select " . $options['value_field'];
$sql .= " from " . $options['table'];
$result = mysql_query($sql)or die("error in SQL");
echo '';
while ($row = mysql_fetch_array($result, MYSQL_NUM))
{
if($row[0] == $options['highlight_id']) {
echo '' . $row[0] . '';
} else {
echo '' 
. $row[0] . '';
echo $row[0];
}
}
echo '';
return $row[0];
}
  echo '';
  mysql_close($db_artist);
?>
  

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] Fwd: enhanced_list_box

2007-11-13 Thread kNish
-- Forwarded message --
From: kNish <[EMAIL PROTECTED]>
Date: Nov 12, 2007 3:50 PM
Subject: enhanced_list_box
To: php-general@lists.php.net


Hi,

  I am using this function enhanced_list_box. This works
fine. Except the return value is None. How is it possible for it to
return a proper value. It reads a list from a data base.

Brgds,

kNish

 
 ';
  $test = enhanced_list_box_05(array(
   'table' => 'artist',
   'value_field' => 'artist_name',
   'highlight_id' => 1));
   echo "$test";
   function enhanced_list_box_05($options){
   $sql = "select " . $options['value_field'];
   $sql .= " from " . $options['table'];
   $result = mysql_query($sql)or die("error in SQL");
   echo '';
   while ($row = mysql_fetch_array($result, MYSQL_NUM))
   {
   if($row[0] == $options['highlight_id']) {
   echo '' . $row[0] . '';
   } else {
   echo '' . $row[0] . '';
   echo $row[0];
   }
   }
   echo '';
   return $row[0];
   }
 echo '';
 mysql_close($db_artist);
   ?>
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] php header refresh

2007-11-19 Thread kNish
Hi,

Find attached a page image. Initially, when user goes to the link,
without this code the page shows not needed display. Whereas what is
needed is when I press the button go. So, I included that in the if
condition. However, it is not working as needed. How is it possible to
see it working and be happy and make others happy here.

$currentPage = $_SERVER["PHP_SELF"];

if (!isset($_GET['Submit']))
{
$host = $_SERVER['HTTP_HOST'];
$uri = rtrim(dirname($_SERVER['PHP_SELF']), '/\\');
$pagename = 
'search_Disp_03.php?Proj_Name=Any&Sequ_Name=Any&Shot_Name=Any&Artist_Name=Any&Dept_Name=Any&Name_Of_Project=Go';
# header("location:
http://renderunit-19/dailies/search_Disp_03.php?Proj_Name=Any&Sequ_Name=Any&Shot_Name=Any&Artist_Name=Any&Dept_Name=Any&Name_Of_Project=Go";);
header("location: http://$host$uri/$pagename/";);
exit;
}

BRgds,

kNish

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] quicktime new window php

2007-11-23 Thread kNish
Hi,

  How is it possible to have a hyper link open a new quicktime window


BRgds,

kNish

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] quicktime new window php

2007-11-24 Thread kNish
Hi,

 Given that a pc has quicktime loaded, how is it
possible to have a hyper link open a new quicktime window. i.e. a
window that has a .mov file playing. Along with it, it has the play
stop pause options too.

BRgds,

kNish

On 11/24/07, marco <[EMAIL PROTECTED]> wrote:
>  you mean's that just open a quicktime window ? expect with a clip?
>
> 2007/11/23, kNish <[EMAIL PROTECTED]>:
> >
> > Hi,
> >
> >  How is it possible to have a hyper link open a new quicktime
> > window
> >
> >
> > BRgds,
> >
> > kNish
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php