One question that comes up is why are you putting the double quotes around the search
string ready maria? Should there be an entry in the database that includes the double
quotes. Right now that is what your sql statement is looking for. So an entry like
this
Are you ready maria?
Would not
Anyone know how to unsubscribe from this list. I have tried several different things
including the unscribe field on the mailing list page and an unsubscribe command via
email.
Robbert van Andel
I am having issues uploading a file. I am trying to up load a file from my
computer to the server so taht I can run a mysql query using the load data
infile query. here is the code
html
body
?PHP
if (isset($users_file))
{
// connect to the database
Vogelsinger [mailto:ernest;vogelsinger.at]
Sent: Tuesday, November 12, 2002 3:46 PM
To: Van Andel, Robert
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] File Upload problem
At 00:25 13.11.2002, Van Andel, Robert said:
[snip]
FORM action=? echo $PHP_SELF; ? method
Upon reading my reply, I think perhaps I wasn't clear enough. I am using
users_file, etc. I am unable to upload a file because $users_file is given
the value of none.
-Original Message-
From: Van Andel, Robert
Sent: Tuesday, November 12, 2002 3:59 PM
To: Ernest E Vogelsinger
Cc
You should be able to use substr().
In your case, you would do
$newstring = substr($string,10);
Click the link for documentation.
http://www.php.net/manual/en/function.substr.php
Robbert van Andel
===
Network Operator
NW Regional Operations Center
Charter
This looks fine except the MAX_FILE_SIZE looks rather small. I had an issue
with it earlier this week and found that the fileI was trying to upload was
larger than the MAX_FILE_SIZE. I believe this is measured in bytes, so your
file cannot be larger than 1KB. Are you getting any errors?
Anyone else having trouble accessing PHP.net?
Robbert van Andel
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking of any
Don't know about a correct way but you can use if(empty($variable))
Robbert van Andel
-Original Message-
From: Frank Wang [mailto:wang960;yahoo.com]
Sent: Friday, November 15, 2002 7:10 AM
To: [EMAIL PROTECTED]
Subject: [PHP] newbie's question
Hi,
what is the correct way of testing
Yes it would. I like to make things complicated :)
Robbert van Andel
-Original Message-
From: Steve Keller [mailto:skeller;healthtvchannel.org]
Sent: Friday, November 15, 2002 5:11 PM
To: [EMAIL PROTECTED]
Subject: RE: [PHP] newbie's question
Err... sorry. The logic was there but my
I recently set up a log in page. I'm doing it a little differently than
you. First I establish a session and set up two session variables
(sessusername and sesspassword).
I check to see if these variables have been set,
if they have, I then check the username and password with the database to
Your variables are also available as plain old variables. For a newbie it
might be easier and more user frinedly to use it that way rather than the
array mentioned below.
In your case, $demand and $name would contain the information entered by the
user. I generally use this method in my code.
If the word document you are trying to download is already on the server,
you could probably just make a link to the file
a href=http://host.com/document.doc;
When the user clicks on it, they either view the document if they have the
MS Word plugin, or they are asked to download it. I'm not
How would I return an array of data with a function?
Robbert van Andel
The information transmitted is intended only for the person or entity to
which it is addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other use of, or
taking
This works too.
$fp = fopen($filename,'r');
while($line=fgets($fp))
{
//do what you need to do with $line
}
fclose($fp);
Robbert van Andel
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 19, 2002 11:44 AM
To: Kelly Meeks
Cc: [EMAIL
$sql1 = titulo like '%$titulotxt%'
$sql2 = cd like '$cdstxt';
$sql = SELECT * FROM divx WHERE $sql1 AND $sql2 ORDER BY titulo;
I think you are getting the error because of the ($titulotxt) ? portion of
your sql statements. You really only need the two statements listed above
and then put into
: Wednesday, November 20, 2002 12:03 PM
To: PHP-GEN
Subject: Re: [PHP] Graph Question..
On Wednesday 20 November 2002 20:37, Van Andel, Robert wrote:
More information would be helpful. Perhaps the code to the page that is
causing you trouble (i.e. the one where you are using the class you
Perhaps its the moderator sending them out ;) (This'll be my one and only
off topic post, I just couldn't resist).
Robbert van Andel
-Original Message-
From: UberGoober [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 5:35 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] MY
This is what I did.
$StartTime = date(U);
$result = mysql_query($query);
$EndTime = date(U);
$difference = $EndTime - $StartTime;
echo pThe query took $difference seconds to generate/p\n;
Perhaps not the most accurate but who cares about a few milliseconds.
Robbert van Andel
-Original
Sorry, I didn't read the entire message. Didn't realize you were already
using my suggestion.
Robbert van Andel
-Original Message-
From: Tularis [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 8:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] show mysql- processing time
I
Perhaps the error lies in
for ($n = 0; $i count($$pdag); $n++) {
You have $$pdag instead of $$pdag. You also have it lower down in the code.
Robbert van Andel
-Original Message-
From: -[ Rene Brehmer ]- [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:05 PM
To: [EMAIL
The message should say:
Perhaps the error lies in
for ($n = 0; $i count($$pdag); $n++) {
You have $$pdag instead of $pdag. You also have it lower down in the code.
-Original Message-
From: Van Andel, Robert
Sent: Thursday, November 21, 2002 1:10 PM
To: -[ Rene Brehmer ]-; [EMAIL
Check boxes should not be given the same name. Radio buttons should to
denote a grouping. In other words, if you want to have a bunch of radio
buttons indicating a choice between items (say bananas, oranges, and
apples), you would name them the same thing and give them each a different
value.
Sounds like JavaScript would be the answer here. You can use a javascript
function to validate the form before it is even submitted.
Robbert van Andel
-Original Message-
From: Pushpinder Singh Garcha [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:28 PM
To: [EMAIL
Testing
Robbert van Andel
-Original Message-
From: Arnaud [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] GD : Black background with imagecreatetruecolor
Hi everyone,
I'd like to use imagecreatetruecolor function in order to
Use an array (checkbox[1], checkbox[2]). Then use a loop to pull get the
data after posting. If you expect only one choice, use a radio button.
Robbert van Andel
-Original Message-
From: Xin Qi [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 1:54 PM
To: Van Andel, Robert
This can be done with JavaScript
input type=radio value=somevalue name=somename
onclick=this.form.submit()
I don't think there is a way to do it with PHP since PHP is a server side
application.
Robbert van Andel
-Original Message-
From: Krzysztof Wozniak [mailto:[EMAIL PROTECTED]]
Make sure that you have nothing before
?PHP
session_register();
etc
You may also need to add session_start() but I'm not 100% sure on that. I
generally do on all my applications that use sessions.
Robbert van Andel
-Original Message-
From: empty
$amount = 17.9;
$dollars = $ . number_format($amount, 2);
echo $dollars;
you should see $17.90.
Robbert van Andel
-Original Message-
From: Bryan Koschmann - GKT [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 11:29 AM
To: PHP General
Subject: [PHP] decimal places
Hello,
$result = mysql_query(select * from [database table]);
echo table;
while($data = mysql_fetch_array($result))
{
$count++;
echo tr;
echo td$count/td;
echo td$data[0]/td;
echo td$data[1]/td;
...and so on
echo /tr;
}
echo /table;
This
I believe if(empty($keywords)) or even if(!$keywords) will check if they are empty
Robbert van Andel
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 26, 2002 4:41 PM
To: [EMAIL PROTECTED]
Subject: [PHP] testing for empty array
I have an
One problem may be your browser timing out before the end of the script. Another may
be (although I'm not 100% sure) is that the file excedes the max memory set aside by
PHP.
Robbert van Andel
-Original Message-
From: Nick Wilson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November
What I do on my pages is perhaps a convoluted way of doing it but it works. I set a
username and password session variables. Every time the page loads the script verifies
the username and password are correct. If not, they don't get to see the rest. This,
in my mind, pervents someone from
the authentication process
Robbert van Andel
-Original Message-
From: Evan Nemerson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 27, 2002 12:59 PM
To: Van Andel, Robert; [EMAIL PROTECTED]
Subject: Re: [PHP] ignoring client supplied session data
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
, Robert
Cc: Evan Nemerson; [EMAIL PROTECTED]
Subject: RE: [PHP] ignoring client supplied session data
At 22:17 27.11.2002, Van Andel, Robert said:
[snip]
On the other hand, I use only one query, searching for the username. I had
experimented with other
35 matches
Mail list logo