Hello all,
The LFReD Project has gone open source. LFReD is the award winning language
processing intelligent agent.
First release is a PHP conceptual knowledge base.
https://sourceforge.net/projects/lfred/
http://www.LFReD.com
Terry Brownell
--
PHP General Mailing List
I am trying to use anytext in an object but I am having a number of
problems. anytext does not seem to work if it is indented. If I un-indent
anytext and the text between it, it works perfectly. Does anyone know
what could be causing this error? I can give you a sample of my code if it
would
On Sat, 30 Mar 2002, Sebastian A. wrote:
I am trying to use anytext in an object but I am having a number of
problems. anytext does not seem to work if it is indented. If I un-indent
anytext and the text between it, it works perfectly. Does anyone know
what could be causing this error? I can
Hi there,
I would like to change the color on a png file from black to blue. This png
file is
transparent and contains only a spot which is black. It is needed to stay
transparent
because I am gonna merge it later on with a jpeg.
I tryed imagecolorset but anyhow I do not understand the syntax.
first:
http://www.php.net/manual/en/function.imagefill.php
$col = imagecolorallocate($im, 51, 51, 204);
then:
ImageFill http://www.php.net/manual/en/function.imagefill.php($im, $x,
$y, $col);
or
ImageSetPixel($im, $x, $y, $col);
bvr.
Andy wrote:
Hi there,
I would like to change the
1 Dollar = 10 South African Rands
for the best prices in the world
www.auction4sale.co.za
CHECK IT.
Stand a chance to win a new cell phone when you register and sell something.
Once you've added your auction, tell all your friend about it.
You are also added to the competition when you bid
www.auction4sale.co.za
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I have qmail on my server.
I've set up and email address to send all incoming mail to a php script.
How would I break down the message and read the to field and the from field
etc.
where can i find information on that ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
can you use class extends feature to refernce more than one class-
so a class called contnet could call functions fromone called html and one
called db?
thanks in advance
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
after your last two spams I'd be surprised if anyone would be will to answer
your questions
-Original Message-
From: Vins [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2002 10:15
To: [EMAIL PROTECTED]
Subject: [PHP] Qmail Question
I have qmail on my server.
I've set up and email address to
Supposedly, in your apache httpd.conf file you can
specify php config values. I'm trying to shore up
security on a new box by setting the following
within VirtualHost tags:
php_value open_basedir /path/to/virtualhost/
However, it doesnt work. If I set the values in the
php.ini file, it DOES
It doesn't work with CGI installations of PHP.
bvr.
Robert Montgomery wrote:
Supposedly, in your apache httpd.conf file you can
specify php config values. I'm trying to shore up
security on a new box by setting the following
within VirtualHost tags:
php_value open_basedir
This is what you've been waiting for:
F@#$CK OFF!
bvr.
Vins wrote:
I have qmail on my server.
I've set up and email address to send all incoming mail to a php script.
How would I break down the message and read the to field and the from field
etc.
where can i find information on that ?
Read http://www.php.net/manual/language.oop.php
bvr.
caspar kennerdale wrote:
can you use class extends feature to refernce more than one class-
so a class called contnet could call functions fromone called html and one
called db?
thanks in advance
--
PHP General Mailing List
Three tips:
- Let the session expire after X secs.
- Use BODY's ONUNLOAD attribute/JS event handler
- Provide a 'Logout' button.
bvr.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Lets define that
Large quantities of email sent to large ammounts of email address at one
time.
I posted 2 messages.
You people take everything too seriously.
I'm sure you've also doen it once in you life before.
And a message for bvr and caspe kennerdale.
You are obviousely Americans
Hi
I need a function that will get a date in the past and return how much
time has passed since that date till now.
The input to the function is a MySQL DATETIME format and the output
should be something like :
2 Years, 36 Days, 7 hours , 25 minutes
I would write it but I'm pretty sure it has
But actually be it one email, two emails or 1000 emails what you did really is
considered spam.
spam
1. messaging (From Hormel's Spiced Ham, via the Monty Python Spam song) To post
irrelevant or inappropriate messages to one or more Usenet newsgroups, mailing lists,
or other messaging system
What about phpAdsNew?
http://www.phpadsnew.com
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: tom hilton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 11:11 PM
To: [EMAIL PROTECTED]
when i try to execute a program, PHP just stalls there for ages, my page
doesnt load or anything. the program is a dos pogram, i pass variables thru
d command line and when the program runs it just returns 1 line of output
and stops.
WHATS D PROBLEM?
btw, i first get PHP to write a text file and
once apon a time there was a South African online company called
EasyInfo.co.za.
have a look, www.easyinfo.co.za, the pulled a stunt and stoll all the
unlisted numbers from the local telephone company telkomsa www.telkom.co.za.
turns out, after the big court case they are now getting 3 times more
http://www.weberdev.com
Check out the Articles / Tutorials
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where PHP might take you tomorrow.
-Original Message-
From: Omland Christopher m [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 12, 2002 6:43 PM
To:
I'm west-european, and I don't want to fuck with you and I don't know
what it's like..
THANKS AGAIN.
bvr.
Vins wrote:
Listen here.
I'm south african.
You wouldn't want to fuck with.
I'm sure you know what we all are like.
Watch what you say
- Original Message -
From: bvr [EMAIL
Yeah, pretty obvious .. you must have figured that from the .NL
extension to my e-mail address..
Lemme guess, .ZA that's Japan nie waar nie ??
You are obviously not an expert so don't make us filthen this list with
(anti-)SPAM messages and stupid off-topic definitions.
THANKS!
bvr.
Vins
oh dam
and American that can actually speak some Traditional Afrikaans that makes
absolutely no sense.
listen check the south african afrikaans gramma website before trying to
message me with shit like that
Bvr [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
And a message for bvr and caspe kennerdale.
You are obviousely Americans
setting the record straight- this is a huge assumption- and I'm not
american, and you didnt even spell my name correctly!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
well, lets just clasify that as a dis to your name
Caspar Kennerdale [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
And a message for bvr and caspe kennerdale.
You are obviousely Americans
setting the record straight- this is a huge assumption- and I'm
well.
just a small translation...
i will climb through my monitor and out yours and beat the living shit out
of you
Bvr [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
I'm west-european, and I don't want to fuck with you and I don't know
what it's like..
WHEN DOES IT GET TO YOUR BRAIN that i'm not American..
grammatica hulp is niet nodig, ik spreek *echt* nederlands ;)
bvr.
oh dam
and American that can actually speak some Traditional Afrikaans that makes
absolutely no sense.
listen check the south african afrikaans gramma website
and what of it
-Original Message-
From: Vincent Kruger [mailto:[EMAIL PROTECTED]]
Sent: 30 March 2002 14:08
To: caspar kennerdale
Subject: oh no
you a fucking pommy.
god dam
phpadsnew is good.
well developed program
and it's making me tons of cash
Boaz Yahav [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
What about phpAdsNew?
http://www.phpadsnew.com
Sincerely
berber
Visit http://www.weberdev.com Today!!!
To see where
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
love it.
cheerz all
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 30 Mar 2002, vins wrote:
SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM SPAM
*plonk*
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
So the end justifies the means is what you are saying. Using an example
of someone who got what they wanted through devious and dishonest
actions as a justification for your actions is a demonstration of your
warped ideas of what is ok and what is not.
Spammers do not get it. They're only out
I'm sorry,
I made a mistake even responding to this person and with that annoyed
lots of people on this list and wasted my time.
Now we're running the risk that he will turn into a spoiler which can be
pretty bad on an unmoderated list..
Therefore I'll stop replying to his messages (including
I need help with qmail
could anyone help me?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Can anyone tell me what is causing the following error:
Warning: Supplied argument is not a valid MySQL result resource in
/ip/sums/www/test/admin/mailing_list.phtml on line 123
The page will work fine one time, then I'll come back later and get the
error. I won't change anything, but the page
php-general Digest 30 Mar 2002 16:50:10 - Issue 1257
Topics (messages 90744 through 90791):
Re: Processing Code created on the fly
90744 by: Jason Wong
90745 by: Jonathan Duncan
90749 by: Miguel Cruz
90750 by: Jason Wong
Re: gettext functionality needs
Always always always check your queries for errors before trying to use
the result set.
ie.
$result = mysql_query($sql) or die(mysql_error());
(assuming you want a query failure to be a fatal error)
-Rasmus
On Sat, 30 Mar 2002, Brian Waskiewicz wrote:
Can anyone tell me what is causing
Hi,
I'm not sure where to post this, neither if I should report this as a
bug, because I'm not sure if it is one at all.
I installed php 4.2 ORC1 lately and encountered a strange session
problem. The following script reproduces this problem:
?php
session_start();
echo a
My page works fine from other computers - it just doesn't work from mine. I
think it could be that the page is caching and IE6 isn't getting a new copy.
How can I prevent it frlom caching? I've tried clearing my history, but I
still get the error.
Thanks.
Rasmus Lerdorf [EMAIL PROTECTED] wrote
On Saturday 30 March 2002 14:26, Philip J. Newman wrote:
Hi People,
I just installed PHP again, and am having some problems with a few things.
When Posting to a form, veriables do not travel across the pages. I have
checked the PHP.INI for something but nothing seems to change this.
Is it
On Sunday 31 March 2002 02:02, Brian Waskiewicz wrote:
My page works fine from other computers - it just doesn't work from mine.
I think it could be that the page is caching and IE6 isn't getting a new
copy. How can I prevent it frlom caching? I've tried clearing my history,
but I still get
(shrug) convert to unixtime, subtract, and reformat
In fact, you could do the conversion and subtraction in your SQL query,
returning just 'elapsed seconds since date', and reformat from there.
I need a function that will get a date in the past and return how much
time has passed since that
Andy [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi there,
I would like to change the color on a png file from black
to blue. This png file is transparent and contains only a
spot which is black. It is needed to stay transparent
because I am gonna merge
I am trying this method: Register a global variable ($CSS) using a FORM.
[snip]
I wonder if I am not doing something stupid/overlooking something obvious,
but I am very new PHP so that is possible.
// in my global PHP file
// Now what I am trying to do here is set a default that should
I need a php script that checks if the there is a
cookie set with the users username and if not it
brings you to an other page and telling you that
you are not loged in!
(a) Don't cross-post all over.
(b) Cookies 'automagically' become global variables, so
a simple version is
OK, I've figured it out. Apparantly when setting php
vars in an apache config file, you HAVE to use the
form
php_admin_value as opposed to just php_value.
Some of the php documentation is vague or even
misleading, such as this example from the online docs,
which does not use the form
Aaargh! typo...
if(!session_is_registered(username)) ])) {
should be
if(!session_is_registered(username)) {
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Still didn't work, found the problem thoe. it was a file I never put into my
system32 folder (o; Thanks for your help.s
- Original Message -
From: Jason Wong [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, March 31, 2002 6:10 AM
Subject: Re: [PHP] Some Problems that Newman has
I was just wondering if there's any way to work with dates returned from a
MySQL query in PHP. Right now I do all of different stuff in my MySQL query
but it's really cumbersome, so I would like to be able to do it all with
PHP. Is there any way to do that? Thanks,
Dave
Here's my MySQL query:
Ok, I've been looking at the image functions, and found that I needed
to recompile PHP with exif support and load GD and other functions.
I've done all of that and now I get the following:
Source: /home/jamboimages/images/uploads/alamoarea_97_round_sm.jpg
600 : /images/patches/1997/1997R15.jpg
On Sunday 31 March 2002 04:04, David Johansen wrote:
I was just wondering if there's any way to work with dates returned from a
MySQL query in PHP. Right now I do all of different stuff in my MySQL query
but it's really cumbersome, so I would like to be able to do it all with
PHP. Is there
Hello, I need a script that can track impressions through PHP.
I know you load a php script from IMG tags than some how the image is
loaded or redirected.
Is their a way I can record impressions and environment variables like IP,
Browser, referrer, etc.
--
PHP General Mailing List
How do I get the current time() for Central European Time
(= GMT +01:00).
I want it to work wherever the server stands.
How can I get the difference between server time
and GMT, for instance?
A. Nawroth
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Why wouldn't you use gmdate:
http://www.php.net/manual/en/function.gmdate.php
and then increment it yourself by an offset?
Scott
-Original Message-
From: anders nawroth [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 30, 2002 5:05 PM
To: [EMAIL PROTECTED]
Subject: [PHP] time
Question I have is,
Is it possible to specify a php.ini in each virtual host?
That way allowing each website to run a different configuration.
Cause I have a website that I want to use
Session_set_save_handler = user but I want another website to use the
default php
Files handle.
Also for
(c) Obviously, this won't prevent someone from
faking a username via the querystring, so you have to
specify that it's a cookie:
if(!isset($_COOKIE[username])) {
header(Location: http://www.mysite.com/login.php;);
exit;
}
Note that nothing prevents users
OK, I've figured it out. Apparantly when setting php
vars in an apache config file, you HAVE to use the
form
php_admin_value as opposed to just php_value.
Some of the php documentation is vague or even
misleading, such as this example from the online docs,
which does not use the form
31/03/2002 9:05:53 AM
Hi all,
I'm running a webhosting service and I'm looking at security issues.
at the moment I have register_globals set to on
Is there any reason I should turn it off?
What are the security risks of having them on?
Cheers,
Liam
--
PHP General Mailing List
exif_imagetype() is new function only available in PHP 4.2 (not released
yet) and above. Use GetImageSize() for now.
-Rasmus
On Sat, 30 Mar 2002, Dale Lora Marshall wrote:
Ok, I've been looking at the image functions, and found that I needed
to recompile PHP with exif support and load GD
Alberto Wagner wrote:
Why everyone uses $foo or $foobar as examples?
Why not? They are relatively benign words that are simply to
type and aren't terribly language centric.
$moo and $moocow would work just as well, or $asdf or $qwerty
or others.
As far as I know, they have no specific
31/03/2002 9:26:46 AM
You tool!
Stop spying on my emails!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Look at chapter 3 of the PHP manual, it covers specifying PHP configuration
in your http.conf or .htaccess files, you can do this per virtual host, per
directory or however else you want to do it.
Jason
Chris Kay [EMAIL PROTECTED] wrote in message
I have a question about something weird that I've noticed Here's some code
that I have that loads up
$sql = SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) =
$dayofmonth;
$result = mysql_query($sql, $dbh);
$day = mysql_fetch_array($result);
for ($i=0; $isizeof($day); $i++)
Hello,
Im making a small php script, but I need to know how to do something.
My problem is: I have a script thats like this:
?php
if ($HTTP_USER_AGENT == WHAT GOES HERE FOR IE AND NS?) {
echo You have Internet Explorer;
} else {
echo You have Netscape;
}
?
Do you know
Why not echo $HTTP_USER_AGENT and find out?
- Original Message -
From: Sean Kennedy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 30, 2002 11:43 AM
Subject: [PHP] $HTTP_USER_AGENT
Hello,
Im making a small php script, but I need to know how to do something.
My
It prints out Mozilla/4.74 [en]C-CCK-MCD NS4xx/Winxx/EZN (Win95; U). Which part
of that do i use?
Thanks,
-Sean
Kennedy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi!
This is a code
function Test()
{
static $count = 0;
$count++;
echo $count;
if ($count 10) {
Test ();
}
echo j;
}
test();
Output is
12345678910jj
Why is there 10 j at the and. If this would work it can be
only one. If $count is grater than 10 it
No it's right. Because $count will equal 10 and it'll print it out, the test
will fail and then it'll trace the recursion back and print the j's. It
would be a bug if it printed an 11, but it's right the way it is.
Dave
Uros Gruber [EMAIL PROTECTED] wrote in message
[EMAIL
try
if( eregi(NS, $HTTP_USER_AGENT) )
{
echo('You are using Netscape!');
}
elseif( eregi('IE', $HTTP_USER_AGENT) )
{
echo('Your using IE');
}
else
{
echo('No Clue what the hell your using');
}
- Original Message -
From: Sean Kennedy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
On Sat, 2002-03-30 at 15:59, Uros Gruber wrote:
Hi!
This is a code
function Test()
{
static $count = 0;
$count++;
echo $count;
if ($count 10) {
Test ();
}
echo j;
}
test();
Output is
12345678910jj
Why is there 10 j at the and.
Hi!
This I simply don't understand why this code executes that
way. So there is only inportant to put return after recursive
call and it works like i wan't. I sometimes write small C
programs and I don't remeber that code like this have to work
that way Hm.
--
bye,
Uros
I need to pull data into and array from a mysql database and then sort
that data according to one of the fields and then print it to the
screen.
Hear is an example of the data in the database
username Pnumber sec2 sec3 sec4 sec5 sec6
Gary 123.345.122YES YES NO YES YES
OK, I basically just want to make it so that the user can't go back once
they're done with an application form that I'm working on. I don't case if
they go back in the middle and my page handles that just fine, but I want
them to not be able to go back when they're all done. Is there some way
Run a while loop on your data and pull it into an array
Heres an example (though this pulls from a text file the idea is the
same...) Hope this helps...
?php
// READING THE DATA
function read_data($datafile) {
$data=file($datafile);
foreach ( $data as $line ) {
You could use sessions for the script... store a variable in the session
when the page has been completed and make sure the script does not
execute if the current session has the appropriate variable...
-Original Message-
From: David Johansen [mailto:[EMAIL PROTECTED]]
Sent: Saturday,
Hello,
Whats the HTTP_USER_AGENT for opera?
Thanks,
-Sean
Kennedy
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 2002-03-30 at 16:16, Uros Gruber wrote:
Hi!
This I simply don't understand why this code executes that
way. So there is only inportant to put return after recursive
call and it works like i wan't. I sometimes write small C
programs and I don't remeber that code like this have to
On Sat, 2002-03-30 at 15:40, David Johansen wrote:
I have a question about something weird that I've noticed Here's some code
that I have that loads up
$sql = SELECT * FROM pickup_times WHERE DAYOFMONTH(time0_name) =
$dayofmonth;
$result = mysql_query($sql, $dbh);
$day =
Thank you for the response to my question unfortunately your answer just
confused me even more.
Saturday, March 30, 2002, 4:25:40 PM, you wrote:
DSK Run a while loop on your data and pull it into an array
DSK Heres an example (though this pulls from a text file the idea is the
DSK
Hi,
Ok, no I understand why. So this explains why every function
must have return. But how can i program for example one
recursion or where to put return so that test would not be
waiting for return but at the end of this recursion i would
like to do something with that $count for example.
Hmm
Probably Opera
- Original Message -
From: Sean Kennedy [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 30, 2002 12:28 PM
Subject: [PHP] Another ?
Hello,
Whats the HTTP_USER_AGENT for opera?
Thanks,
-Sean
Kennedy
--
PHP General Mailing List
Try a foreach... it works well...
-Original Message-
From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]] On Behalf Of Lars
Torben Wilson
Sent: Saturday, March 30, 2002 4:38 PM
To: David Johansen
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] For Loop going too long
On Sat, 2002-03-30 at
Take a look at this:
?php
$result = mysql_query();
while ( $data = mysql_fetch_array($result) ) {
$pnumber=$data[Pnumber];
$ourdata[$pnumber][]=$data;
}
echo pre;
foreach ( $ourdata as $data ) {
foreach (
I need a good autorizating script that works in any browser an apache server
Alberto
Tkz
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
When I email using this function, the email which is received has the following
content at the top of it...
From: [EMAIL PROTECTED]
Return-Path: [EMAIL PROTECTED]
Message-ID: [EMAIL PROTECTED]
X-OriginalArrivalTime: 31 Mar 2002 01:14:57.0786 (UTC) FILETIME=[790BEDA0:01C1D851]
Any ideas on how
Hi, newbie here.
I was erroneously using error_reporting=E_ALL ~E_NOTICE on my debug
server.
Now, I changed it to error_reporting=E_ALL and I can see lots of warnings
about using undefined variables.
So, if I don't want to see warnings all over the place, I have to check
every variable with
On Sat, 2002-03-30 at 17:30, Ernesto wrote:
Hi, newbie here.
I was erroneously using error_reporting=E_ALL ~E_NOTICE on my debug
server.
Now, I changed it to error_reporting=E_ALL and I can see lots of warnings
about using undefined variables.
So, if I don't want to see warnings all over
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not really. You either have to init your variables or turn off notices
in error_reporting() (or otherwise suppress them; i.e. display_errors =
off).
initialising them with safe defaults is the thing to do - the point of the
error is to warn
You're asking the wrong question.
'Disabling the back button' changes the expected behaviour
of the browser and as such is an *EVIL* thing to do, roughly
on par with driving the wrong way down one-way streets or
spray-painting your neighbor's cat.
What you want is to 'prevent the user from
On Sat, 2002-03-30 at 17:43, Shane Wright wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Not really. You either have to init your variables or turn off notices
in error_reporting() (or otherwise suppress them; i.e. display_errors =
off).
initialising them with safe defaults
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
sorry, didnt get that that was your prefered method - didnt mean to step on
your toes :)
S
On Sunday 31 March 2002 2:50 am, Lars Torben Wilson wrote:
On Sat, 2002-03-30 at 17:43, Shane Wright wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash:
On Sat, 30 Mar 2002, David Duong wrote:
Hello, I need a script that can track impressions through PHP.
I know you load a php script from IMG tags than some how the image is
loaded or redirected.
Is their a way I can record impressions and environment variables like IP,
Browser, referrer,
$Sql_Query_Login Returns an empty mysql array like:
$Sql_Query_Login = Mysql_Query(SELECT Nome FROM users WHERE User = 'Anyone')
There isn't a user if name Anyone...
Why
If (!$Sql_Query_Login) {
Echo Ninguem;
}
Is returning False?
--
PHP General Mailing List (http://www.php.net/)
To
here is a function used to authenticate users against mysql database.
Problem is, I am not connecting for some reason. I have the db variables:
$db_host
$db_user
$db_pass
$db_name
They are populated from an include (x.php) in the beginning of the php
section. It is getting past the connect
Hello Ciro,
For database access and automatic generation of forms, see
http://phplens.com/
You can create search/edit/new record forms automatically through the web
user
interface with little coding. It also has a low level PHP interface for
deep coding. This is a commercial product, developed
31/03/2002 01:02:04, Patrick Hartnett [EMAIL PROTECTED] wrote:
You Need to use the command
Mysql_Select_Db($db_name) Or Die(Unable to connect!);
after connect with mysql
I use something like this:
mysql_connect($db_host, $db_user, $db_pass) or die (Unable to connect!);
I don't think those variables are readable in the function. Not totally
sure though.
Tyler Longren
Captain Jack Communications
[EMAIL PROTECTED]
www.captainjack.com
- Original Message -
From: Patrick Hartnett [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, March 30, 2002 10:02
Actually, that type of stuff is at the top of all e-mails. You'd always see
it if you set your e-mail client to show you the headers. So, it may be
something with your e-mail client. Can you provide the code you're using to
send the e-mail? The mail() part would suffice.
Tyler Longren
1 - 100 of 116 matches
Mail list logo