[PHP] Re: php - printer button

2003-07-01 Thread Shivanischal A
hi,

PHP dos have some printer_* functions. had a look? :-)

-shiva

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Dear all,
>
> I have research about library automation engine in my library.
> developing on PHP + MySQL
> We need to develop printer utility at some module to get print out
> transaction.
>
> Can I do this utility using SUBMIT BUTTON under HTML & PHP?
> how to make the php printer script?
> help... please & thanks
>
> Regard,
> Nasar
>
>
>



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



[PHP] mail + regex + somethoughts

2003-07-02 Thread Shivanischal A
Hi friends,

I was just wondering about this. Whenver we reply to the posts here, we just
click on the reply button and fire off our messages. This results in long
messages (fresh content + earlier content) within a single mail. Now, the
question is how would we use the regex functions to remove the older content
from a fresh mail. I think you all beginning to get the picture.

What would we do if we want just the responses/comments to an earlier and
not the earlier mail verbatim in the fresh one?

Sorry if  this has already been answered; I'l look once more

Thanks & Regards,
-shiva



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



[PHP] Re: mail + regex + somethoughts

2003-07-03 Thread Shivanischal A
Hi Edwin,

Let me restate my question...

I'm now replying to ur mail. I've left ur message to me untouched. (whatever
follows '- Original Message - '). What i want is that some
SERVER-SIDE SCRIPT should be able to identify these original messages and
remove them before storing the actual responses.

I'm sorry for the confusion arising coz of incorrect statement.
Thanks and Regards,
-shiva


- Original Message -
From: "- Edwin -" <[EMAIL PROTECTED]>
To: "Shivanischal A" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 1:55 PM
Subject: Re: [PHP] mail + regex + somethoughts


> Hi,
>
> "Shivanischal A" <[EMAIL PROTECTED]> wrote:
>
> > Hi friends,
> >
> > I was just wondering about this. Whenver we reply to the posts here, we
just
> > click on the reply button and fire off our messages. This results in
long
> > messages (fresh content + earlier content) within a single mail. Now,
the
> > question is how would we use the regex functions to remove the older
content
> > from a fresh mail. I think you all beginning to get the picture.
> >
> > What would we do if we want just the responses/comments to an earlier
and
> > not the earlier mail verbatim in the fresh one?
>
> Copy -> Paste and/or Highlight -> Delete ?
>
> - E -
>
> ...[snip]...
> __
> Do You Yahoo!?
> Yahoo! BB is Broadband by Yahoo!
> http://bb.yahoo.co.jp/
>
>



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



Re: [PHP] Re: mail + regex + somethoughts

2003-07-03 Thread Shivanischal A

Hi Jason,

I believe very much in the spirit of mailing lists and will never commit any
undesirable activity.

I got the idea is when i browsed thru the Usenet Discussion Forums using
Google's web-interface to the Usenet. If u go their site, u can see this.
The UI look very cluttered with the previous posts appearing along with
newer posts (as part of same message). I thought it would have been good if
someone/something took care to remove the earlier posts even if the person
posting it forgets to do so.

If this is still confusing you, its probably my English. But i'm convinced
this is difficult.

Anyway, thanks for ur timeRegards,
-shiva



- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 3:38 PM
Subject: Re: [PHP] Re: mail + regex + somethoughts


> On Thursday 03 July 2003 16:37, Shivanischal A wrote:
> > Hi Edwin,
> >
> > Let me restate my question...
> >
> > I'm now replying to ur mail. I've left ur message to me untouched.
> > (whatever follows '- Original Message - '). What i want is that
> > some SERVER-SIDE SCRIPT should be able to identify these original
messages
> > and remove them before storing the actual responses.
> >
> > I'm sorry for the confusion arising coz of incorrect statement.
>
> Either you're seriously confused or you're doing your best to confuse us.
>
> First, what has this got to do with PHP?
>
> Looking at your headers it seems you're using MS Outlook (no comments),
how
> are you going to interface that with PHP? Or how are you going to
integrate
> any typical MUA with PHP for that matter?
>
> And what's wrong with doing to what the rest of us do -- that is, remove
the
> unnecessary parts of the previous post and adding your comments underneath
> the parts of the previous post that you are commenting on?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> Breaking Windows isn't just for kids anymore...
> */
>
- Original Message -
From: "Jason Wong" <[EMAIL PROTECTED]>
Newsgroups: php.general
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 03, 2003 3:38 PM
Subject: Re: [PHP] Re: mail + regex + somethoughts


> On Thursday 03 July 2003 16:37, Shivanischal A wrote:
> > Hi Edwin,
> >
> > Let me restate my question...
> >
> > I'm now replying to ur mail. I've left ur message to me untouched.
> > (whatever follows '- Original Message - '). What i want is that
> > some SERVER-SIDE SCRIPT should be able to identify these original
messages
> > and remove them before storing the actual responses.
> >
> > I'm sorry for the confusion arising coz of incorrect statement.
>
> Either you're seriously confused or you're doing your best to confuse us.
>
> First, what has this got to do with PHP?
>
> Looking at your headers it seems you're using MS Outlook (no comments),
how
> are you going to interface that with PHP? Or how are you going to
integrate
> any typical MUA with PHP for that matter?
>
> And what's wrong with doing to what the rest of us do -- that is, remove
the
> unnecessary parts of the previous post and adding your comments underneath
> the parts of the previous post that you are commenting on?
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> --
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> --
> /*
> Breaking Windows isn't just for kids anymore...
> */
>


DISCLAIMER: This email is bound by the terms and conditions described at 
http://www.subexgroup.com/mail-disclaimer.htm



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



[PHP] Re: please help

2003-06-30 Thread Shivanischal A
>

is the culprit. instead use



what u missed were the double quotes around the value. u HAVE TO do that for
values with space in between .

regards,
-shiva




"Nabil" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I have a form like:
>
> 
> .
> .
> while($row = mysql_fetch_array($result))
> {
> ?>
> >
>  .
> .
>
> 1- if the fetched is only one word, i have no problem BUT
> 2- When i have $row=['area']  ecual to "happy day"  that came form MySQL
(as
> two word with a space).
> 3- I have a problem when submit the form , if i echo $_POST['area']  in
the
> action file .. i got only "happy"  without "day"
>
> Please help me , because i m going to pull my hair off...
>
> Nabil
>
>



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



[PHP] Re: Small Error in Login Script

2003-06-30 Thread Shivanischal A
hi,

this is what i found...
--

";
if(!isset($_SESSION['validuser']))
   $_SESSION['validuser'] = $_POST['validuser'];
 }

   else{
 echo "Please try again later";
   }
   }

?>



ADMIN-LOGIN




   
 

   
 Please
 enter your Username and Password

   
   
 Login
 
   
   
   
   
 Password
 
   
   
   
   
 
 
   
   
 
 
   

";
?>

-
regards,
-shiva


"Pushpinder Singh Garcha" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Hello All,


  I am trying to setup a simple login script on my development server
running Mac OS Jaguar. I keep getting an error

Parse error: parse error in /Users/psgarcha/Sites/CRM/ADMIN-LOGIN.php
on line 2. I am at a complete loss !


Here is the source code. Please help.

-

";
if(!isset($_SESSION['validuser']))
   $_SESSION['validuser'] = $_POST['validuser'];
 }

   else{
 echo "Please try again later";
   }
   }

?>



ADMIN-LOGIN




   
 

   
 Please
 enter your Username and Password

   
   
 Login
 
   
   
   
   
 Password
 
   
   
   
   
 
 
   
   
 
 
   

";
?>






Thanks in advance.
Pushpinder




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



[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in PHP. try creating a temporary table

-shiva


<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi i'm trying to get this sql query to work, i'm trying to update and
> select at the same time, i'm not even sure if this  is even possible
>
> update db.tablename set field1='yes' where (select * from
> db.tablename,db.tablename2 where
db.tablename.userid=db.tablename2.userid);
>
> basically i have a column called 'userid'.  this column exists in both
> tablename, and tablename2.  where the value of userid in tablename is
> equal to the value of userid in tablename2, i'd like to set the value of
> field1 to 'yes'.
>
> can this be done from the command line?  or am i better off writing
> another php page to accomplish this?
>
> thanks again
> redmond
>
>



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



[PHP] Re: need help w/ sql query - update and select at once

2003-06-30 Thread Shivanischal A
you probably cant ge this to work in MySQL. try creating a temporary table


"Shivanischal A" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> you probably cant ge this to work in PHP. try creating a temporary table
>
> -shiva
>
>
> <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > hi i'm trying to get this sql query to work, i'm trying to update and
> > select at the same time, i'm not even sure if this  is even possible
> >
> > update db.tablename set field1='yes' where (select * from
> > db.tablename,db.tablename2 where
> db.tablename.userid=db.tablename2.userid);
> >
> > basically i have a column called 'userid'.  this column exists in both
> > tablename, and tablename2.  where the value of userid in tablename is
> > equal to the value of userid in tablename2, i'd like to set the value of
> > field1 to 'yes'.
> >
> > can this be done from the command line?  or am i better off writing
> > another php page to accomplish this?
> >
> > thanks again
> > redmond
> >
> >
>
>



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



[PHP] Re: Subtracting dates in php

2003-06-30 Thread Shivanischal A
try  http://www.phpclasses.org

-shiva



"Mike Mannakee" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyone know of an easy way to add or subtract dates in php the way you can
> in mysql?  Easier, that is, than coding the logic by hand?  This seems
like
> a total pain.
>
> Mike
>
>



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



[PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
hi,

seems u have complicated task on hand mate. cant u simply consider span the
user input over multiple pages? i mean using 2 or more form on different
pages instead of a single form on one single page. if this cant be done,
we'll think of other measures. but this is by far the most simple method

-shiva


"Petre Agenbag" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi List
>
> OK, firstly, sorry if this has been on the list before...
>
> What I'd like to do is something like this:
>
> I currently have an app that takes user input via a normal html form,
> and then pops the content into mysql.
>
> The problem is that lots of user complain that the submit times out due
> to slow/bad connections, and hence the data gets lost.
>
> What I was hoping to do now, was to somehow create a PDF form from the
> current html form ( should generate itself on the fly ) , the PDF form
> will obviously need to be downloaded to the user's PC, and will be
> unique for each time they use the system, ie, I don't want to just give
> them a blank template PDF, some of the values need to be
> "auto-completed" and inserted into the form as "read-only", as well as a
> couple of "hidden" fields with identifying values so I can know where to
> pop it into the db.
>
> The idea is that the user will now come to the point where he would
> usually have filled in the html form, but instead, the app must
> autogenerate a PDF with some values auto-completed and/or hidden, and
> the user then downloads the pdf to his/her PC, where they continue to
> fill out the pdf form.
>
> Then, on completetion, I'd like to investigate several delivery
> mechanisms, arguably, the easiest way for the users ( who are mostly
> techno-peasants), is to simply e-mail the pdf as an attachment to me),
> but then I will either have to create an auto-parser for the email
> (prolly difficult and prone to problems with making sure the attachment
> is correct etc), or I will have to then manually process the
> attachments.
>
> Either way, I would need to "feed" the pdf to my app, where the
> form/hidden variables would need to be harvested from the form, and noly
> then (after validation), be entered into the db.
>
> So, simple concept, but I'm sure many pitfalls, the least being probably
> that I have never done this, and don't know where to start, or even if
> it's possible/advisable to follow this route.
>
> Hence my post here...
>
>



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



Re: [PHP] Re: Form 2 PDF 2 Form

2003-07-01 Thread Shivanischal A
Hi Petre,

I'm beginning to have second thoughts about my earlier idea too; coz that is
not solving the actual problem (u're have a slow n/w). Afterall how many KB
of form data is she/he actually sending? I'll think of other possible
solutions.



Regards,
-shiva


"Petre Agenbag" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi Shiva
> Appreciate your input. Wrt the spanning of the form, I think, in my
> situation, it would actually make things worse... You see, my suspicion
> is that most of the users who are experiencing problems, have very bad
> connections, many complain that they lose connectivity while they are
> busy with the form ( it takes them maybe 30 min or so to fill out the
> entire form ( they basically transfer the data off paper forms they have
> filled out earlier while "on-site", so it's not really alot of data, but
> there are a lot of fields...)
> So, my fear with this approach is that they will maybe get past the
> first part of the form, submit that OK, then start getting trouble with
> subsequent parts, leaving me with a whole lot of partial entries in the
> DB., and how do I get them to "resume" at a a later stage?
> You don't understand the mindset of these people, when something goes
> wrong, they'll switch off their PC's and try to start from scratch, so
> it's going to be difficult to try and get them to understand the concept
> of multi-part forms... I shudder to even think what will happen, or
> worse, how I will be able to allow them to make corrections on a certain
> part of the form once they have submit it. And sometimes, to their
> defense, it's not them that want to change the details on the form, but
> the subject of the form who has decided to change their name etc...
>
> I'm not ditching this idea, I will definitely give it some more thought,
> it's just at this moment, my mind is running through my original idea of
> PDF forms trying to evaluate it.
>
> Each method will have it's pro's and cons, and I'll have to go and weigh
> them. I must add, I don't see "effort" as a con for a particular
> solution, as long as I know it will solve the problem without adding
> other cons...
>
> Thanks again, will take it up with you again ( need some more input on
> this PDF thing to get some balanced views)
>
> PS, if you have experience with using this method, I would appreciate it
> if you could let me have your "field notes" and how successfull it's
> working for you.
> You see, the main thing here is that I need to KNOW when someone who
> says they have submitted something actually have, and that they are not
> trying their luck...
>
>
> On Tue, 2003-07-01 at 13:43, Shivanischal A wrote:
> > hi,
> >
> > seems u have complicated task on hand mate. cant u simply consider span
the
> > user input over multiple pages? i mean using 2 or more form on different
> > pages instead of a single form on one single page. if this cant be done,
> > we'll think of other measures. but this is by far the most simple method
> >
> > -shiva
> >
> >
> > "Petre Agenbag" <[EMAIL PROTECTED]> wrote in message
> > news:[EMAIL PROTECTED]
> > > Hi List
> > >
> > > OK, firstly, sorry if this has been on the list before...
> > >
> > > What I'd like to do is something like this:
> > >
> > > I currently have an app that takes user input via a normal html form,
> > > and then pops the content into mysql.
> > >
> > > The problem is that lots of user complain that the submit times out
due
> > > to slow/bad connections, and hence the data gets lost.
> > >
> > > What I was hoping to do now, was to somehow create a PDF form from the
> > > current html form ( should generate itself on the fly ) , the PDF form
> > > will obviously need to be downloaded to the user's PC, and will be
> > > unique for each time they use the system, ie, I don't want to just
give
> > > them a blank template PDF, some of the values need to be
> > > "auto-completed" and inserted into the form as "read-only", as well as
a
> > > couple of "hidden" fields with identifying values so I can know where
to
> > > pop it into the db.
> > >
> > > The idea is that the user will now come to the point where he would
> > > usually have filled in the html form, but instead, the app must
> > > autogenerate a PDF with some values auto-completed and/or hidden, and
> > > the user then downloads the pdf to his/her PC, where the