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'
. Th
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);
T
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")){
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 u
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
troubl
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 a
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
ente
Thanks for the link,
$link = $row['company'];
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 PROTECTED]>
I am using an ap
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 :
http://masterstrea
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
p
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 = $row["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.
Als
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 :
>
if I try to echo the variable $email_1, I get the correct value i.e.
"thisisa long e-mail address"
/// However when it c
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">
"; ?>
Complete
Candidate Profile
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 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 P
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 an
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 mentio
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
http://psg.local/~psgarcha/CRM/fu
array $company_name as a
session var and access it on the following page. $_SESSION['link'] =
$company_name;
does not seem 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 Shif
$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 G
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
$_
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 =
"#eefff
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
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:
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
try this,
use a meta-refresh ...
echo "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 javascript. I have already spent a week on this a
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']"' A
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 * f
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 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.
-
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 Serv
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 arr
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 et
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 ad
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 a
PHP Files
TIA
Pushpinder Singh Garcha
_
Web Architect
-----
From: 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 c
subsequently exported as a html.
Any help will be highly appreciated
TIA
Pushpinder Singh Garcha
_
Web Architect
particular 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
sts
3. 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://w
nction has been
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]>
Sen
ble to
see
the contenst 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
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
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 ar
234
www234
edr234
vfr456
When I echo "$temp[0]" ... I get abc111 asd123 aqw234 www234 edr234
vfr456 on one straight line, 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
;
}
?>