Hello everyone,
I have created a PHP and MySQL powered, web-based CRM package
for our office. It simply takes care of our telephone marketing
strategy. I need to provide this CRM package to our other clients as
well. The CRM package makes use of 2 tables i.e. 'Admin' and 'Contacts'
.
Hello all again,
I am still having trouble opening a jpg image using
header(Content-type: image/jpg);
$file = docs/picture1.jpg;
header(Content-disposition: attachment; filename=$file );
readfile($file);
The
Hello Everyone,
I am trying to display a JPG image to a use, who has logged in. Some
research on google revealed a way to do this. I am using the following
code to display it.
if (session_is_registered(valid_user)){
if(session_is_registered(cmi)){
Hello All
I need to allow a user to access a PDF file, only if he/she is logged
in as a registered user. So here is the code that I am trying to use. I
have been able to make this work in the past, when I had to read .html
file, now since the file in question is a .pdf file, I am having
No I am not sending any headers to the browser. Any suggestions !
Thanks
On Wednesday, October 1, 2003, at 04:05 PM, Tyler Lane wrote:
Are you sending a Content-Type header to the browser to let it know
what
type of file you are sending it?
--
PHP General Mailing List (http://www.php.net/)
To
Hello everyone,
I am making use of a php form to add company details to a MySQL
Database. Before I add the form variables I am checking to see if the
SAME company name exists in the DB. If the same company exists, then a
notification is provided. In between this , the variables that were
I am currently using sessions on my site // are you suggesting that I
store all the possible 30 form variables in a temp session array. ??
and destroy it afterwards
Thanks
-Pushpinder
On Tuesday, September 2, 2003, at 04:41 PM, Matt Matijevich wrote:
[snip]
then the forms
variables are stored
Hello All,
I am using an application where I retrieve user profile from a MySQL
DB using the Company Name . I pass the name of the company to the PHP
script as a '$_GET' parameter. e.g. when the name of the company is
'IBM'. , the URL with the query string would look like :
Thanks for the link,
$link = $row['company'];
a href=\full_profile_1.php?name=', urlencode($link),' \
However this does not seem to work / what am I missing ?
Thanks
-Pushpinder
On Friday, August 22, 2003, at 03:23 PM, CPT John W. Holmes wrote:
From: Pushpinder Singh Garcha [EMAIL
Thank you so much ! it works fine now ;)
--Pushpinder
On Wednesday, August 13, 2003, at 12:01 PM, Larry E. Ullman wrote:
And I try to display it in the table using this :
input name=email_1 type=text id=email_1 size=50 value = ?
echo $email_1; ?
if I try to echo the variable $email_1, I get
Hello,
I am trying to display the rows of a MySql Query in a table. I
retrieve the result using the query :
while ($row = mysql_fetch_array($result1, MYSQL_ASSOC))
{
$email_1 =
Hello All,
I am using php and mysql in my application which allows users to
search/query a database. The database is cast and has about 32 rows per
record. When the user fires the query, the result is in the form of a
table that contains only the 6 important rows of the entire record.
Thank you Jay for responding.
Let me clarify again. The $_GET Parameter was used to to transfer the
name from the results page (with the tables etc) to a
full-profile_1.php page. On the full_profile_1.php page the user is
displayed a form with all the details about the company. On the same
Hello again,
I would appreciate if someone could help me out with this one.
Thanks again
--Pushpinder
On Friday, August 8, 2003, at 11:46 AM, Pushpinder Singh Garcha wrote:
Hello All,
I am using php and mysql in my application which allows users to
search/query a database. The database
Hello Jay ,
I am attaching snippet of the Form Code that displays the results of
the first query
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
? echo Hello ::: .$company.br; ?
body bgcolor=aa leftmargin=14 topmargin=10
form name=form1 method=POST
Hello All,
My application has a search / query feature where in the user
selects the search criteria and is displayed a page containing the
reults. The user must also be allowed to edit these results and save
them later on. On the results page I use the following logic,
//
// START OF
hello everyone,
I am trying to store one of the fields of the resultset into an array
as I display the results.
while ($row = mysql_fetch_array($result1)) {
// Alternate the bgcolor of each row for visibility
($even % 2) == 0 ? $bgcolor = #EFEFEF : $bgcolor =
#ee;
hello All,
I am trying to store an array as a session variable.
while ($row = mysql_fetch_array($result))
{
if ( !is_array($company_name) ) $company_name = array();
array_push($company_name, $row['company']);
// try to register session variable
$details is empty !!
Thanks
--Pushpinder
On Monday, July 28, 2003, at 03:31 PM, CPT John W. Holmes wrote:
$details is an array (just like $company_name was). Try to view
print_r($details); and see what you get.
---John Holmes...
- Original Message -
From: Pushpinder Singh Garcha [EMAIL
to work since it gives NULL when i try to echo
$_SESSION['link'];
Thanks in advance
--Pushpinder
On Monday, July 28, 2003, at 03:43 PM, Chris Shiflett wrote:
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote:
I am trying to store the value in row['company'] in an array
called $company_name
Thanks John,
I used the $_GET['name'] on the next page to access the
selection.
http://psg.local/~psgarcha/CRM/full-profile.php?name=jack
http://psg.local/~psgarcha/CRM/full-profile.php?name=tim
http://psg.local/~psgarcha/CRM/full-profile.php?name=mary
Shiflett wrote:
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote:
However if I decided to use the sessions approach how would I go about
it? I am just curious to find out why $_SESSION['company_name'] =
$company_name; duz not werk for me!
Did you use session_start() like I mentioned?
If so, you
Hello Chris,
I am using Apache webserver on the MAc Jaguar OS Platform
Regards
--Pushpinder
On Monday, July 28, 2003, at 05:02 PM, Chris Shiflett wrote:
--- Pushpinder Singh Garcha [EMAIL PROTECTED] wrote:
I am using session_start(). All the pages after the login page use
sessions
Thanks Tom,
I appreciate your help ! however I have a 2 quick questions...
1.) should we not save the names of the companies as $companies[$row]
= $row['company'];
2.) the approach of accessing the variable as $details =
$_SESSION['link']['$_GET['name']] is not
working , when I try
try this,
use a meta-refresh ...
echo META HTTP-EQUIV=\refresh\
content=\3;URL=http://wherever_u_wana_go.com/hello.html\;;
hth
--Pushpinder
On Thursday, July 24, 2003, at 11:24 PM, Beauford.2005 wrote:
It's obvious though that PHP can not handle it. This is why I am forced
to use
to the
browser. I am sorry if this is a repeat question because someone
earlier did mention abt output buffering as a way around.
TIA
--Pushpinder
On Thursday, July 24, 2003, at 12:11 PM, Curt Zirzow wrote:
* Thus wrote Pushpinder Singh Garcha ([EMAIL PROTECTED]):
try this,
use a meta-refresh ...
echo
Hello All,
I am trying to create a small MySQL application using PHP. I have a
table of contacts with each record having over 30 fields. I have a
search page where a logged-in admin can search for a particular record
on the basis of certain parameters.
This is a sample code:
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.
Thanks ...I figured out something myself
--Pushpinder
On Monday, June 30, 2003, at 11:41 AM, Pushpinder Singh Garcha wrote:
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
Hello ,
Can someone tell me what is wrong with the following querys ? I am
pretty sure its got something to do with the quotes around $_POST[]
variables.
$sql1 = SELECT * from `admin` where `admin`.user =
'$_POST['validuser']' AND `admin`.pwd = '$_POST['password']';
$sql1 = SELECT * from
schrieb Pushpinder Singh Garcha:
Hello ,
Can someone tell me what is wrong with the following querys ? I am
pretty sure its got something to do with the quotes around $_POST[]
variables.
$sql1 = SELECT * from `admin` where `admin`.user =
'$_POST['validuser']' AND `admin`.pwd = '$_POST['password
Hello All,
I am using phpMyAdmin to administer my MySQl DB. I am running Mac OS
Jaguar.
when I try to start up phpMyAdmin I get an error:
Welcome to phpMyAdmin 2.4.0
Error
MySQL said:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
So I try to start up the MySQL
Hello everyone,
I am trying to execute a simple query using $_POST variables, so
that variable poisoning is not possible. note: I have register_globals
ON on my site. I am getting the error shown below . Please advise ...
as I can't seem to figure out why !
?
// connect to the BD/Table
On Friday, June 13, 2003, at 02:22 PM, Zak Johnson wrote:
$_POST variables are still subject to poisoning; in your case, SQL
injection.
How is variable poisoning possible when using $_POST ?? I always felt
that the php compiler should check to see if the variable was part of
the POST Global
Hello all,
I have php ver 4.1.1 running with register_globals() ON on my site. I
am trying to use sessions to maintain state during a visit to the site.
I have read thru the manual, but my mind is still cluttered with
doubts. I understand that use of the $_SESSION global array will
greatly
of the session. I am a newbie in PHP
session handling and am sorry if any of the above questions sound
extremely lame.
Thanks in advance,
--Pushpinder
On Wednesday, May 21, 2003, at 04:34 PM, Ernest E Vogelsinger wrote:
At 21:51 21.05.2003, Pushpinder Singh Garcha said:
[snip
I am having the same story on my Win XP system. I hv looked all over
message brds @ phpbuilder/zend/php.net . No success
Please let me know if you are able to sort it out.
Thx
--Pushpinder
On Tuesday, May 27, 2003, at 12:07 PM, Brian Dunning wrote:
Hi,
I am a lamer a newbie, and ran the PHP
and then
subsequently exported as a html.
Any help will be highly appreciated
TIA
Pushpinder Singh Garcha
_
Web Architect
: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]
Sent: Monday, March 10, 2003 1:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help Needed
Hey All
My Php App is trying to fopen() and fread() a File that is located in
the Web Server. This works if the file is a simple html file. However
the complicated
the PHP Files
TIA
Pushpinder Singh Garcha
_
Web Architect
. If seesion exists , I would fopen() the file provided the correct
file name is passed to the script
Thanks
Pushpinder Singh Garcha
_
Web Architect : www.MasterStream.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
file for him. My question is:
after checking for the session, how does the php script know what file
to open..meaning what file was linked by that URL.
Please help!
Pushpinder Singh Garcha
_
Web Architect : www.MasterStream.com
--
PHP General Mailing List (http
Hello all
My php script needs to read a text file that is stored in the same Dir
as the php file. However I do not want to allow users to be able to see
the contenst of the file from the Browser. Please suggest some remedy.
Thanks in advance
Pushpinder Singh Garcha
of the file from the Browser. Please suggest some remedy.
Thanks in advance
Pushpinder Singh Garcha
_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Pushpinder Singh Garcha
_
Web
disabled so you may have to FTP or SSH into your account and set the
permissions for the file manually using the chmod command. Good luck.
- Kevin
- Original Message -
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, March 05, 2003 12:51 PM
Subject
, which is weird. I should get it on
separate lines.. Also I am unable to separate the lines of the file
using the explode().
Any help will be highly appreciated
--Pushpinder
Pushpinder Singh Garcha
_
Web Architect
Begin forwarded message:
From: Pushpinder Singh Garcha [EMAIL PROTECTED]
Date: Thu Feb 27, 2003 7:57:38 PM US/Eastern
To: olinux [EMAIL PROTECTED]
Subject: Re: [PHP] Help with Arrays
Thanks
My question was that each line of the file should be stored as one
element of the array
please help me out with this I need to get a 125 element
array...so that my code can check the individual elements of the Array.
Thanks in advance
Pushpinder Singh Garcha
_
Web Architect
Count is: 1
abc111 asd123 aqw234 www234 edr234 vfr456
Sorry, your passport Code was not accepted by our system !
Pushpinder Singh Garcha
_
Web Architect
of the user.
The Admin/ User should get email notification about this. The
notification part is easy the hard part to figure out is how to be able
to keep and tab on the Time Period stipulated for a user.
Thanks in advance
Pushpinder Singh Garcha
_
Web Architect
Hello All,
I need to ask you about some resources for cron jobs. Please suggest
some online help
Thanks
Pushpinder Singh Garcha
_
Web Architect
Hello All;
I am trying to open a File called cmi_list.txt ( stored at the same
level as the php file) and then load these into an array.
Now I check the $passport_codes with the value the User has entered and
set the $flag accordingly
?
.
$PASSPORT_CODES =file(cmi_list.txt);
Hello All,
I have been runing PHP BB2 successfully on my site for a couple of
months . Recently I got this error.
phpBB : Critical Error
Could not connect to the database
Can someone tell what this means..??
Many Thanks
--Pushpinder Singh Garcha
_
Web
Hi all
i wanted to check with if it is possible to see the contents of a .php
file.
I have heard of the Zend Encoder, but I was wondering how could a
person see my php script ?
Any information in this direction would be useful?
TIA
--Pushpinder Singh Garcha
to write echoblah blah blah . ;
will not be a an option. Please suggest a way out .
Many Thanks
Pushpinder
Pushpinder Singh Garcha
_
Web Architect
, Goetz Lohmann wrote:
Pushpinder Singh Garcha schrieb:
Hello All:
My question is related to authentication. I have made a login system
using PHP Sessions and MySQL. Once the user gets authenticated on the
website I want to be able to allow him to see some html pages on the
website. Only users who
. Is
there a better way to be able to do this (Using PHP and MySQL). Thanks
in advance !
Best Wishes
Pushpinder Singh Garcha
_
Web Architect
on to the remote site? Or can I let it remain sitting on the
local server.
Also, I was wondering , what value should I assign to the
$cfg['PmaAbsoluteUri'] variable in the config.inc.php file.
Many Thanks,
Pushpinder
Pushpinder Singh Garcha
_
Web Architect
Pushpinder Singh Garcha
_
Web Architect
and lastname, I
am not able to extract the value. Can you suggest what might be going
wrong. Note I am locally testing the setup on my Mac.
Many Thanks
Pushpinder Singh Garcha
_
Web Architect
Hello there,
I am looking around for some E card senders based on PHP and MySQL .
Duz anyone have any ideas which I should use.?
Please let me know... I really appreciate it,
best
Pushpinder
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
The values entered every time have to be stored)
Thanks in advance.
Pushpinder Singh Garcha
_
Web Architect
T. Falcon Napier and Associates, Inc.
_
Hello Everyone:
I am using Sessions to secure parts of my website. I need to know if
there is a way to set a lifetime for these sessions , so that they are
automatically destroyed when say the user is inactive for 30 minutes.
Any help will be greatly appreciated. Thanks in advance
Pushpinder
at /Users/pgarcha/Sites/edit.php:7) in
/Users/pgarcha/Sites/edit.php on line 8
Thanks in advance
--pS
Pushpinder Singh Garcha
do that.
I want to be able to display a form to the user where his information
is present ... and then he/she can go ahead and make updates.
thanks
--pS
Pushpinder Singh Garcha
_
\', \'ghdfghhgj\', \'hgddj\', \'ggfgfg\', \'hfgdj\', NULL,
NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NOW());';
Can somebody please tell me where I am going wrong..??
Many thanks
Pushpinder Singh Garcha
_
Web Architect
T. Falcon Napier and Associates, Inc.
Thanks Jason...that werked fine for me..
--pS
On Wednesday, December 11, 2002, at 03:50 PM, Jason Wong wrote:
On Thursday 12 December 2002 04:30, Pushpinder Singh Garcha wrote:
Hello,
I am using PHP to create forms and then am entering the user input
into
a MySQL DB
In the first query I am
{
echo 'PYou are authorized!/P';
}
?
However this keeps the user logged on. I want to be able to close the
session once the user has finished his work.
How do I do that??
Many Thanks
--pS
Pushpinder Singh Garcha
_
Web Architect
T. Falcon Napier and Associates
Hi all
I am trying make changes with the register_global variable in the
php.ini file, but I am unable to locate it.
I am running Mac OS JaguarPlease help me out
Many Thanks.
--Pushpinder
Pushpinder Singh Garcha
_
Web Architect
T. Falcon Napier
had entered on the form must not be
reset to blank.
I know this sounds very trivial.
Please help me out.
Thanks
--pS
Pushpinder Singh Garcha
Hi All
I am trying to create a login page using php and mysql database.
This is the code that I am trying to use:
?php
// File Name: auth04.php
// Check to see if $PHP_AUTH_USER already contains info
if (!isset($PHP_AUTH_USER)) {
// If empty, send header causing dialog box to appear
Hi All
I am new in the php development world. I have made a simple mail
application using the phph mail() function.
I needed to use an attachment facility ith the mailing program...so I
have tried to use this solution called phpmailer()
from http://sourceforge.net/projects/phpmailer
I am not
not able to find any installation info on the site...Has
anyoneused this before?
Please help ..
Thanks
--Pushpinder
Pushpinder Singh Garcha
_
Web Developer
T. Falcon Napier and Associates, Inc.
Off : 704 987 6500
Cell : 704 236 2939
Fax : 704 987 5002
hi all
I am using a php form to collect credit card information from clients
and so have hosted the page on a secure server i.e. https
After filing out the form ...the browser displays a confirmation page.
I am using IE 5.2 on MAC OS Jaguar when I point IE to the secure
site and submit the
that it was sent to others as well.
I want to be able to send mail so that each recipient thinks that this
mail was ONLY sent to him/her.
Thanks
--pS
Pushpinder Singh Garcha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi,
I am making a secure page where users will be able to send credit card
information.
What kind of support does php offer?
Thanks
Pushpinder Singh Garcha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the system.
Please help me out.
Thanks in advance
Pushpinder
Pushpinder Singh Garcha
_
Web Developer
T. Falcon Napier and Associates, Inc.
Off : 704 987 6500
Cell : 704 236 2939
Fax : 704 987 5002
_
on
the other user. I ahve tried to play with System Preferences / Users
option ...but that did not help.
The other user exists in the /Users Directory.
Thanks
Pushpinder
Pushpinder Singh Garcha
_
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
but
with PHP I am not so sure. Please help.
Thanks,
Pushpinder
Pushpinder Singh Garcha
Web Developer
T. Falcon Napier and Associates, Inc.
Url : http://www.masterstream.com
Off : 704 987 6500
Cell : 704 236 2939
Fax : 704987 5002
--
PHP
79 matches
Mail list logo