[PHP-DB] Inserting images in postgres

2002-05-03 Thread sharmad

Hi,
   I made a table test in postgresql as follows
CREATE TABLE test (
number INT;
image OID
);

but the moment i try to insert an image as a normal user it say it
cant do so as a normaal user only superuser (/postgres) can do it.
the command for insert is as follows
   INSERT INTO test VALUES ( 1,lo_import('/path/to/file'));
If I want to implement the changes whereby my normal user should
be able to insert into the dbase how do i do it ?
Do i have to edit any file.I saw pg_hba.conf and other file but
found no attributes near it and so also the SET and SHOW declaretions
 Can anyone point out the error

Thanks
Sharmad

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




[PHP-DB] converting extracted variables to arrays

2001-12-17 Thread sharmad

Hi,
  i have a variable which is multi valued seperated by # (say as) delimiter

like student#name#address#college#etc... #...#
i want to seperate it into an array with index $i
can anyone suggest a way to do so
TIA
-Sharmad

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] mysql EXPLAIN

2001-12-14 Thread Sharmad Naik

How do i get all the info for mysql just the EXPLAIN statement in postgres


-- 
Feel free to contact me (flames about my english and the useless of this
driver will be redirected to /dev/null, oh no, it's full...).
(Michael Beck, describing the PC-speaker sound device)
-
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/
What we cannot speak about we must pass over in silence.
   Ludwig Wittgenstein (1889-1951), Austrian philosopher

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Fast template

2001-12-03 Thread sharmad


Hi,
   I am working on a Fasttemplate dbase project,so i downloaded the
Fasttemplate and untarred(unzipped) in the /usr/local/lib/php directory
but gives me the following error :-

Warning:  Failed opening 'class.FastTemplate.php3' for inclusion
(include_path='.:/usr/local/lib/php') in
/var/www/html/htdocs/templates/demo.php on line 3
Fatal error:  Cannot instantiate non-existent class:  fasttemplate in
/var/www/html/htdocs/templates/demo.php on line 5

pls help me
  
TIA
SHARMAD
---
Feel free to contact me (flames about my english and the useless of this
driver will be redirected to /dev/null, oh no, it's full...).   (Michael
Beck, describing the PC-speaker sound device)

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] include shell scripts

2001-11-03 Thread sharmad

I m making a web based config tool in which i require to configure a package
via browser but whats happening in that if i give the command in system() call
then the packege is being tried to install as nobody user (default apache user)
.Pls give me the link about how to go about it (other than CGI) or any other
information 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Ms-Access to Mysql converter

2001-11-01 Thread sharmad

can anyone tell me which is a good Ms-Access to MySQL converter under open source
/demo /commercial/etc.
-TIA
Sharmad

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Application variables

2001-10-27 Thread sharmad

Pls tell me how to implement application variables in PHP like they are supported
in ASP else i might have to have the value stored in the database and update
every now and then which is simply an overhead.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Structure Of Imap

2001-10-02 Thread Sharmad Naik

Hi all,
I was trying to develop a appln. using IMAP proto. I found
that lot of  the structures were not defined properly where by i had
problems while inserting the values into the database and also while
extracting them from dbase.
Can anybody give me any reference to the imap structure or any
info related to it as the docs too don't indicate anything (especially
what r the attibutes i can extract from the structure)
-TIA
Sharmad

-- 
`sudo rm -f /bin/laden'
-
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/
What we cannot speak about we must pass over in silence.
   Ludwig Wittgenstein (1889-1951), Austrian philosopher

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Seperate a variable

2001-07-28 Thread Sharmad Naik

Hi,
I m extracting a variable from a dbase and assigning it as say
$var .The Value of this variable is always a/or more number/s at the begining
followed by a set of characters .I want to seperate the numbers from
the characters.Can anybody explain me how to
say value of $var= 511Tha 
-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] fragmentation (Horizontal and vertical)

2001-07-17 Thread Sharmad Naik

Hi can anybody tell me or point any reference on how to carry out
fragmentation on database (specially PostgreSQL) in practice.
 Thanks
Sharmad
-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] password

2001-07-17 Thread Sharmad Naik

Thanks Alexey,
I have set the passwd for the root user,but now how do i set
the passwd for other users.
Another Q ,Can I have a passwd for each table created
-Thanks
Sharmad

On Tue, Jul 17, 2001 at 11:10:31AM +0400, Alexey Borzov wrote:
 Greetings, Sharmad!
 
 At 17.07.2001, 08:27, you wrote:
 
 SN Hi,
 SN Can anyone tell me how to protect my database or else how can i set my 
password in postgres for every database.
Can you be more specific?
If your problem is that anyone can connect to any DB on local box
 (which is the default setup), then you need to edit pg_hba.conf
This file resides in the root of your DB data dir. You should seek
 the lines which read like these:
 -
 localall   trust
 host all 127.0.0.1 255.255.255.255 trust
 -
 and change 'trust' to 'password'.
Well, I hope I understood your question correctly...
 
 -- 
 Yours, Alexey V. Borzov, Webmaster of RDW.ru
 

-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] password

2001-07-16 Thread Sharmad Naik

Hi,
Can anyone tell me how to protect my database or else how can i set my 
password in postgres for every database.
-Thanks
Sharmad
-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] Postgres and PHP and Apache

2001-07-07 Thread Sharmad Naik

add this line to /etc/ld.so.conf
/usr/local/pgsql/lib

and then run 
ldconfig

restart apache and then see the magic

-Enjoy
Sharmad

On Thu, Jul 05, 2001 at 11:41:56AM -0400, Kelly Hamlin wrote:
 root@www:/var/lib/apache/bin# ./apachectl start
 Syntax error on line 239 of /var/lib/apache/conf/httpd.conf:
 Cannot load /var/lib/apache/libexec/libphp4.so into server: libpq.so.2:
 cannot o
 pen shared object file: No such file or directory
 ./apachectl start: httpd could not be started
 
 alright, ive never touched postgres before, but if someone has had
 experience compiling it with php/apache, email me thats why the server
 was down for about 20 mins
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Redhat TUX

2001-07-06 Thread Sharmad Naik

I have heard about a new server developed by Redhat called TUX.
Is php supported in this? 
-Thanks
-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]





[PHP-DB] flash

2001-06-24 Thread Sharmad Naik

I know that this mail is not to be posted on this list
but in case if anyone can pls help,
Can anyone tell what's the name of the package for flash with php
and where to locate it
-Thanks
-- 
Donot rely on the Operating System which don't have any sources for.
-Seen somewhere on the Net
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] headers

2001-05-24 Thread Sharmad Naik

How do I eanble headers in php3.ini file
-Thanks 
-- 
The secret of the universe is @*í!'ñ^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] variable vaule lost

2001-05-12 Thread Sharmad Naik

pls look at the attachment
-- 
The secret of the universe is @*í!'ñ^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/


?
echo(FORM);
$i=10;
for ($j=0;$j3;$j++){
echo $j;
echo(INPUT TYPE=checkbox NAME='$j' VALUE='$i');
}
echo(input type=submit name=Enter value=Enter);
echo(/form);
?
 how The variable being passed will be seen in the next form? 



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DB] uploaded images display

2001-04-22 Thread Sharmad Naik

I have written a small script having connectivity with postgresql which 
can upload an image and display the already uploaded images.
But it doesn't display the uploaded images. I guess the problem lies somewhere
in  $file_url.
Pls help me
 
HTML   
HEAD   
TITLE/TITLE
/HEAD
?

$database=pg_connect("dbname=testdb user=postgres")

?
?
if ($submit) {

$result = pg_Exec($database,"INSERT INTO ".
"images (mem_id,mem_image) VALUES(NULL,'$fupload_name')");

$file_dir = "/tmp";

$file_url = "http://sanico.sharmad.org";
if (isset($fupload ))
{
if ($fupload_type == "image/jpg" ||$fupload_type == "image/jpeg")
{
 copy ($fupload, "$file_dir/$fupload_name") or die ("Couldn't copy");
echo("$file_dir/$fupload_name");
}
}
}

$result=pg_Exec($database,"SELECT mem_image from images");
for($i=0;$ipg_NumRows($result);$i++){
$images=pg_Result($result,$i,0);
copy ("$file_dir/$images",$ftupload);
echo ( $images);
echo ( $ftupload);
echo ("IMG SCR= $ftupload");
}



?
BODY BGCOLOR="#FF"
FORM  action="? print $PHP_SELF?" method="post"
enctype="multipart/form-data"
!-- INPUT TYPE="hidden" name="MAX_FILE_SIZE" VALUE="51200" --
INPUT TYPE="hidden" NAME="$fupload_name" VALUE="? echo $fupload_name ?"
INPUT TYPE=file name="fupload" VALUE=""BR
INPUT TYPE="submit" NAME="submit" VALUE="Send File to Web Server"
/FORM
A HREF="index.php" CLASS="content"Home page/A
/BODY
/HTML

  
-thanks
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] OOPS

2001-04-21 Thread Sharmad Naik

I wanted to learn OOP in PHP .I m using postgresql and have a table called 
price containing the price_of_recycle of an object (0th row for bottle,
1st row for create and 2nd row for cans).I wanted to write an OOPS 
PHP program that would extract the price from the database for the individual
object and multiply it to the number of object send to recycle by any person at
the browser and display the output
I m currently using Professional PHP to refer but couldn't grap much 
out of it.Pls help me.

-Thanks

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] hide passing value

2001-04-18 Thread Sharmad Naik

I want to hide the values being passed between forms like password.
For that i tried GET and POST but wouldn't work.
Any other Ideas.
-Regards 
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] SELECT query

2001-04-13 Thread Sharmad Naik

On Fri, Apr 13, 2001 at 02:23:50PM -0400, Doug Semig wrote:

 Have you thought about normalizing your data model?  It could make your
 task a lot easier.

I have normalized my table structure this is just a practice model i m trying
I want that the search should be on username whereby first i search table1
,then table2,table3 using table4 and displaying unique record 
 
 At 11:33 PM 4/13/01 +0530, Sharmad Naik wrote:
 I have three table called table1, table2, table3 all having fields like:
 table1 contain id and username and id referencing table4
 table2 contains id and parallel_username and id referencing table4
 table3 contains id and other_username   and id referencing table4
 table4 is the main table containing id as primary key
 I want to develop a search engine which shows unique record after searching
 all the three table but shouldn't contain multiple answers for same SEARCH
 for
 username
 Pls help me,
 
 -Regards

-Regards
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] connection to database

2001-04-11 Thread Sharmad Naik

Hi,
While writing dynamic pages I use pg_connect to connect to the database.
I wanted to know whether i alway need to close database connection or while 
closing the FORM or going to another page does the connect close automatically.
Is pg_close necessary to be given ? 

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Images donot appear

2001-04-08 Thread Sharmad Naik

Although i have compiled php with gd i don't get image do i have to make 
any changes in php.ini

-Regards  
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] headers

2001-04-07 Thread Sharmad Naik

When ever i add headers in my pages i get the following errors 
Can anybody tell me what's wrong?

Warning: Cannot add header information - headers already sent by (output started
 at /usr/src/apache_1.3.14/web/server/apache/htdocs/searchdisplay.php:4) in /usr
/src/apache_1.3.14/web/server/apache/htdocs/searchdisplay.php on line 6

-Sharmad
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DB] using LIMIT

2001-04-07 Thread Sharmad Naik

On Fri, Apr 06, 2001 at 02:15:34PM +0300, Dainius Vaskelis wrote:

 I suppose that you are using MySQL (because of LIMIT operator in SQL query)
I m using PostgreSql

 So:
  In the second query i write a query whereby i say
  $result=pg_Exec($database,"SELECT mem_id,name from search LIMIT $count");
  Now here i display the the first 10(say $count=10) records.
  Now I know to display the other records i can say
  $result=pg_Exec($database,"SELECT mem_id,name from search LIMIT
 $count,$count");
  but what condition to give to display pages of more than $count records
  i.e how do i give for next  existing page.
 
 LIMIT operator has two parameters: amount of records of result, offset in
 result.
 
 So in order to paginate your output you need such scheme:
 
 $count = 10;
 $offset = 0;
 loop begin
 ...
 $result=pg_Exec($database,"SELECT mem_id,name from search LIMIT
 $count,$offset");
 $offset += $count;
 ...
 loop end
 
What shall the loop be like,i mean the condition for terminating the search.
 
 If you want to use this to make output as search engines do (output first 10
 recs on the first page, and output links of other pages), so you need to
 modify a litle bit. You need to pass by parameters page no, in other pages
 link:
 
 $count = 10;
 $offset = 0
 if is_set(page_no) {
 $offset = $page_no * $count;
 }
 
What is page_no here and doesn't $offset get overidden here

 ...
 $result=pg_Exec($database,"SELECT mem_id,name from search LIMIT
 $count,$offset");
 ...
 
 Hope it'll help you. Good luck.
I was of great help but i want more help or URL or atleast a practical reference on 
this.
Pls if possible look at the forms

Regards,
-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/


HTML
BODY
?php
echo("$mem_id \n");
$count=10;
$offset=0;
$database=pg_connect("dbname=search user=pro");

if is_set(page_no)
{
$offset=$page_no*$count;
}
while(echo("INPUT TYPE=SUBMIT VALUE=Submit NAME=Submit");){
   $result=pg_Exec($database,"SELECT * from search ".
   "where acc_no='$mem_id' LIMIT $count,$offset");
   for ( $i=0 ; $i  pg_NumRows($result) ;$i++)
{
 echo pg_Result($result,$i,0);echo"\t";
 echo pg_Result($result,$i,1);echo"\t";
 echo pg_Result($result,$i,2);echo"\t"; 
 echo pg_Result($result,$i,3);echo"\t";
 echo "BR";
}
$offset+=$count;
}
?
/BODY
/HTML


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]


[PHP-DB] using LIMIT

2001-04-06 Thread Sharmad Naik

Hi,
Thanks for firstly helping me out with the prevoius query.
I have a database with mem_id(int) and name(text) as its fields.
In the first form (HTML) ,I take mem_id,name and count(used for LIMIT)
from the browser.

In the second query i write a query whereby i say
$result=pg_Exec($database,"SELECT mem_id,name from search LIMIT $count");
Now here i display the the first 10(say $count=10) records.
Now I know to display the other records i can say   
$result=pg_Exec($database,"SELECT mem_id,name from search LIMIT $count,$count");
but what condition to give to display pages of more than $count records
i.e how do i give for next  existing page.

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] passing parameters between forms

2001-04-02 Thread Sharmad Naik

Hi,
I have created a database with following structure

CREATE TABLE member(
mem_id INT,
name TEXT,
age INT);

the first page is as follows :
!-- search1.html --
HTML
BODY
   H1 This is the  first page /H1
   FORM ACTION=search2.php
   Member ID : 
   INPUT TYPE="TEXT" NAME="mem_id"
   Member NAME : 
   INPUT TYPE="TEXT" NAME="name"
   Member AGE : 
   INPUT TYPE="TEXT" NAME="age"
   
   INPUT TYPE="submit" NAME="Enter"
   /FORM
/BODY
/HTML

The second page that is search 2.php is as follows :

!-- search2.php --
HTML
BODY
H1This is the Displaying page/H1
?php
if(mem_id)
{
echo("FORM ACTION=search3.php");
echo("$mem_idBR");
echo("$nameBR");
echo("$ageBR");
echo("INPUT TYPE=submit VALUE=Enter NAME=Enter");
//  require("search3.php");
//  series($mem_id,$name,$age);
echo("/FORM");
}
else{ echo("H2Inconvient data/H2");}
?
/BODY
/HTML

This is search3.php

?php
function series($mem_id,$name,$age)
{
echo("$mem_id");
echo("$name");
echo("$age");
}

series($mem_id,$name,$age);

?

In my search3.php I want to insert (which i have not given) or atleast echo the 
parameter like mem_id, age and name.My Q is how do i pass the parameters between 
search2.php and search3.php.If there is another way out pls tell.
I tried using functions to get the work done.but couldn't get my way out.

Can anybody help me?


Sharmad

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] passing parameters between forms

2001-04-02 Thread Sharmad Naik

Hi,
I have created a database with following structure

CREATE TABLE member(
mem_id INT,
name TEXT,
age INT);

the first page is as follows :

!-- search1.html --
HTML
BODY
   H1 This is the  first page /H1
   FORM ACTION=search2.php   
   Member ID : 
   INPUT TYPE="TEXT" NAME="mem_id"
   Member NAME :
   INPUT TYPE="TEXT" NAME="name"
   Member AGE :   
   INPUT TYPE="TEXT" NAME="age"

   INPUT TYPE="submit" NAME="Enter"
   /FORM
/BODY
/HTML

The second page that is search 2.php is as follows :

!-- search2.php --
HTML
BODY
H1This is the Displaying page/H1
?php

if(mem_id)
{
echo("FORM ACTION=search3.php");
echo("$mem_idBR");
echo("$nameBR");
echo("$ageBR");
echo("INPUT TYPE=submit VALUE=Enter NAME=Enter");
//  require("search3.php");
//  series($mem_id,$name,$age);
echo("/FORM");
}
else{ echo("H2Inconvient data/H2");}
?
/BODY
/HTML

This is search3.php

?php
function series($mem_id,$name,$age)
{
echo("$mem_id");
echo("$name");
echo("$age");
}

series($mem_id,$name,$age);

?


In my search3.php I want to insert (which i have not given) or atleast echo the 
parameter like mem_id, age and name.My Q
+is how do i pass the parameters between search2.php and search3.php.If there is 
+another way out pls tell.
I tried using functions to get the work done.but couldn't get my way out.

Can anybody help me?


Sharmad

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Library Managament project

2001-03-30 Thread Sharmad Naik

Hi Everyone,
Please bear with me.I am a final year student from India-Goa, and developing a 
library management system which can be adopted by any University (Hopefully). We are 
developing this project using PHP and PostgreSql.The good thing that we appreciate is 
that this project is based on the ISO format 2709 adopted by UGC. We would like to 
know from all the intrested people for this project , that what are their expectations 
from this project like information on statistics. 
Right now we are developing the html and PHP pages.We have written a perl 
script to import the data from ISO format into PostgreSql database so that any library 
right now running on the CDISIS/WWWISIS package can easily export to ISO format that 
will be imported into PostgreSql. Due to non existing record for Serials and Thesis we 
have not been able to test the perl script for Serials and Thesis records althought 
the books has been completed throughly. We would be very thankful if anyone could give 
us a record or two of Thesis and Serials in ISO 2709 format. 
Hoping for a best,

Yours sincerly,
Hiren  Sharmad 

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DB] Library Management System

2001-03-30 Thread Sharmad Naik

Hi Everyone,
Please bear with me.I am a final year student from India-Goa, and
+developing a library management system which can be adopted by any University
+(Hopefully). We are developing this project using PHP and PostgreSql.The good
+thing that we appreciate is that this project is based on the ISO format 2709
+adopted by UGC. We would like to know from all the intrested people for this
+project , that what are their expectations from this project like information
+on statistics.
Right now we are developing the html and PHP pages.We have written a
+perl script to import the data from ISO format into PostgreSql database so that
+any library right now running on the CDISIS/WWWISIS package can easily export 
+to ISO format that will be imported into PostgreSql. Due to non existing record
+for Serials and Thesis we have not been able to test the perl script for
+Serials and Thesis records althought the books has been completed throughly. We
+would be very thankful if anyone could give us a record or two of Thesis and
+Serials in ISO 2709 format.
Hoping for a best,

Yours sincerly,
Hiren  Sharmad

-- 
The secret of the universe is @*!'^#+ NO CARRIER
___  _  _  _
|_|_||_||_||\/||_|| \
_|| || || \|  || ||_/

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]