http://myphpcalendar.sourceforge.net/
$query = "DELETE FROM product WHERE manufacturer=\"$hidden_manuf_id\"";
mysql_query($query,$bb) or die(mysql_error());
or:
mysql_query("DELETE FROM product WHERE manufacturer=\"$hidden_manuf_id\"", $bb);
=
Phil Clark wrote:
>I'm trying to insert the va
SELECT DISTINCT kat FROM mytable;
Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 10, 2002 12:40 PM
Subject: [PHP] SQL field problem
Hello
I have a problem with mysql.I create a table with a field "kat".In this field are
entries
lets all spam Erik
Somewhat related to this discussion.
There are some posters to this email list that appear as Newsgoup entries in my
OutLook Express. Most posters, however, are identified as mail, not news postings.
"Peter" is one of those that appears as a News post. I've looked at the headers of
his m
$_POST[]
$HTTP_POST_VARS[]
- Original Message -
From: "Renaldo De Silva" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 18, 2002 3:21 PM
Subject: [PHP] getting variables the hard way?
how can i get variables posted from a form without calling then distinctly
first, it's not PHP that won't delete the cookie...it's the nature of cookies.
second, there is no need to try to delete it and set it to a new value. Just set it
to the new value.
third, the cookie will expire and disappear when the browser closes. The browser MUST
close, not simply go
The value is returned in whatever is stored in $nome. So, if $nome="var", then $var
will contain the selected value.
Second, this could not possibly operate the way you want it to, because the
mysql_result() is called TWICE with each line. You want it called only ONCE to
retrieve the value
the value is returned in whatever is stored in $nome. So, if $nome="var", then $var
will contain the selected value.
- Original Message -
From: "Alexandra Aguiar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, January 04, 1980 12:56 PM
Subject: [PHP] Combo box selected
First, why store it in a database? Why not store it as a separate file,
then store pointer/file-name to it in database?
If you do want it in the database (may I assume mysql?), then INSERT/LOAD
the file directly into the field without conversion.
-Original Message-
From: Jay Paulson [ma
perhaps you could use $file_name
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 2:54 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Assigning unique form names...
Ok I understand what you mean here, however what I need to do is have a
unique form actio
mysql is a relational database. therefore, the concept of a row number is
irrelevant.
that said, what do you REALLY want to do
-Original Message-
From: Julian [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 2:59 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mysql question
Hi!!!
I
$fp = fopen($filename, "w");
fwrite($fp, $outputstring);
READ THE DOCS
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] fwrite() - problems
I have a large string that I want to written t
$A->variable
Rather than having us all guess, show your code...
-Original Message-
From: Robert J. Cissell [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 11:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Object Confusion
If object of type A ($A) contains a variable $B which is an
What you're seeking is push technology. I'm not certain that PHP can
provide that.
However, PHP can email you using the mail() function
-Original Message-
From: Rodolfo Silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 12:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Upload ale
so what does line 111 look like?
we can't read your mind...
-Original Message-
From: erich [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 08, 2002 3:35 AM
To: [EMAIL PROTECTED]
Subject: [PHP] difficulty in solving the unknown warning
i am a php programmer whose learning expr. is about
stripslashes($text)
-Original Message-
From: Rob Packer [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 7:46 PM
To: [EMAIL PROTECTED]
Subject: [PHP] getting slash with single quotes in form mail
Hi,
I have a contact form and when someone fills it out, all the single
quotes (
riginal Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 1:28 PM
To: 'Brian McLaughlin'; [EMAIL PROTECTED]
Subject: RE: [PHP] Arrays within classes
I corrected the syntax errors Erik found and added var_dump() after each $t
equation/assignment
The proble
I corrected the syntax errors Erik found and added var_dump() after each $t
equation/assignment
The problem is that you refer to $test->words. You should refer to
$test->words
BIG DIFFERENCE
$test->words means find the value of $words and look for that variable in
$test. That is, if $words ="a
what happened when you tried your query?
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] MySQL - UPDATE & INSERT
Is this query legal?
$query = "UPDATE table SET (var1, var2, var3) VALUE
yes, put the name of the PHP file
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 12:23 PM
To: Rick Emery
Subject: RE: [PHP] refresh
When I delete a record from a table in php it loops back to the table.
However, It does not show that the
MAIL PROTECTED]]
Sent: Friday, April 05, 2002 11:35 AM
To: Rick Emery
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] regexp for ' replacement
Nop. I don't want to affect the first and last ' of every line.
On Fri, 5 Apr 2002, Rick Emery wrote:
> addslashes($textline)
>
>
try creating a script with fopen(), fwrite(), etc.
When you run into problems, ask here.
$filex = fopen("myfile","w");
fwrite( $filex, "write this here");
fclose($filex);
-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:29 AM
To: PHP Gener
addslashes($textline)
-Original Message-
From: Thalis A. Kalfigopoulos [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:54 AM
To: [EMAIL PROTECTED]
Subject: [PHP] regexp for ' replacement
Yet another regexpr question.
If I have as part of a text:
...and then 'the quick brown f
after database submission, header("location: ...") re-directed to the script
you wish to go to
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:31 AM
To: [EMAIL PROTECTED]
Subject: [PHP] refresh
I want to be able to refresh my browser window
When ad_done.php3 is called, it will receive a variable named $files.
Change:
$file_name";
to:
";
$files will contain the value of the file selected
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] D
It's okay to do so. That's why include() was created; to provide
conditional inclusion.
-Original Message-
From: Andrew Warner [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 11:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] conditionaly including classes/functions
Is it okay pra
the contents of the SELECT box and the contents of the HIDDEN field are
separate entities.
Append the path upon transfer to the next PHP script
Show us what you REALLY want to do here instead of keeping us guessing...
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday,
I must be missing something.
Just add a HIDDEN type in your form. It will be sent with all your form
data.
-Original Message-
From: Jas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 10:14 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Directory to array to select box...
Hey Ric
Since I ran this on Win2000 machine, I changed name of directory:
You were right on the money with your code; just a minor mod or two was
required:
$filex\n";
}
$form = "\n".
"$file_count\n".
"\n".
"";
// close directory
closedir($dir);
print $form;
?>
outputs the following:
.
..
activities.txt
Assume the following file is named "this_script.php":
This is all in ONE file.
\n";
do some other stuff
exit;
}
?>
-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 4:19 AM
To: PHP General List (PHP.NET)
Subject: [PHP] Includ
If this is a web-page you are generating, I believe browser timeout is 5
minutes.
-Original Message-
From: Ando [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 05, 2002 6:19 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP stops execution without error message
Importance: Low
Running php ver
it should print:
V:\memo\F0001\abcdef.com
\F0001\abcdef.com
-Original Message-
From: Rodolfo Gonzalez [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:35 PM
To: Rick Emery
Cc: 'Fredrik Arild Takle'; [EMAIL PROTECTED]
Subject: RE: [PHP] eregi_replace
I got this as
ECTED]]
Sent: Thursday, April 04, 2002 3:18 PM
To: Rick Emery
Subject: RE: [PHP] eregi_replace
> $NoteNm[$i] = eregi_replace ("V:\memo\F0001\", "", "$NoteNm[$i]");
> $NoteNm[$i] = eregi_replace ("\\LOBBY\VismaDok\Memo\", "",
&
show the whole line of coding again. very few of us keep threads. include
previous responses
-Original Message-
From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 3:14 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] eregi_replace
> Backslashes are magic.
>
you need to open and process yahoo with file statements, not include
please read the PHP manual...
-Original Message-
From: Ryan Govostes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 2:44 PM
To: PHP People
Subject: [PHP] strip_tags() problem
The following simple code does
Because you did NOT \\ all your \'s
What error are you getting?
-Original Message-
From: Fredrik Arild Takle [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 1:11 PM
To: [EMAIL PROTECTED]
Subject: [PHP] eregi_replace
Why won't this work?
$NoteNm[$i] = eregi_replace ("V:
What happened when you tried?
-Original Message-
From: javier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 1:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] references a functions
I trying to code a kind of DB wrapper.
So when is dbQuery turn I run into trouble.
I read in php ma
change to:
SELECT * FROM tifrequest LEFT JOIN USING(user) WHERE tifexpire.exp_date
>="2002-04-04"
It helps if you provide the error message. Also, this would have been found
when you entered it directly into the mysql command line prompt.
-Original Message-
From: ROBERT MCPEAK [mailto:[
yes
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 10:43 AM
To: PHP
Subject: [PHP] Classes??
Maybe a simple question.
But can one file contain 2 or more classes??
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
change:
$Location_Info = mysql_fetch_row($result);
to:
$row = mysql_fetch_array($result);
$Location_Info = $row['fieldname'];
replace "fieldname" with the real name of your database field
-Original Message-
From: Jason Tobias [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:2
Count me as AGAINST, because <<< is heredoc operator
-Original Message-
From: Jason Greene [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 9:43 AM
To: PHP-Dev; Andi Gutmans; Zend Engine 2
Subject: [Zend Engine 2] Unsigned Right(Maybee Left) Shift [Again]
So far, after posting
on a unix/linux box, all queries are in /var/log/mysqld
-Original Message-
From: Moschitz Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 04, 2002 8:55 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Logfile of Mysql Queries?
Is there any possibility of logging all the Insert, Update an
send an email to yourself:
-Original Message-
From: Chuck "PUP" Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 3:26 PM
To: PHP General
Subject: [PHP] Help with e-mail...
I have just install a program called Web Calendar. It suppose to be able to
send reminders via e
$arrText[$i] still contains the new-line character at the end. Is that
harmful here?
-Original Message-
From: Jack Davis [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] mail() problem...
I wrote a small piece of code to take a tex
ok...so what problem are you having? what's the error?
your code worked for me, i.e., it compiled and executed
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:15 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Any ideas on combining arrays???
SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date >=
$somedate;
or
SELECT * FROM table2 LEFT JOIN USING(user) WHERE table1.exp_date >= now();
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 12:00 PM
To: [EMAIL PROTECTED]
Cc:
Need one more quote (se below)
Of course that's a mysql parse error!!
Mysql dates are -MM-DD.
Do NOT use slashes
$query = "SELECT * FROM table where date >=
\"$year_1-$month_1-$day_1/$year_1\" AND date <=
\"$year_2-$month_2-$day_2\"";
Read the mysql manual concerning dates, formats,
Of course that's a mysql parse error!!
Mysql dates are -MM-DD.
Do NOT use slashes
$query = SELECT * FROM table where date >=
\"$year_1-$month_1-$day_1/$year_1\" AND date <=
\"$year_2-$month_2-$day_2\"";
Read the mysql manual concerning dates, formats, functions
-Original Message-
Convert to date/time variable and perform arithmetic.
Otherwise, if these dates are from mysql, let mysql do it
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 11:12 AM
To: [EMAIL PROTECTED]
Subject: [PHP] syntax for date math expressions
show the rest of your code
When you say this code is "repeated again", what does that mean? repeated
in a function, a loop,...?
Print out $sumItUp["TU4R"] prior to if(). Is it as you expect?
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03,
stripslashes() failed???
I've used stripslahses in this situation, and it's worked perfectly. Wonder
what else is going on here? Go without quotes.
Try:
mail($usersemail, $subject, $message, $headers);
-Original Message-
From: hamish [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April
show us code
-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 03, 2002 6:02 AM
To: PHP General List (PHP.NET)
Subject: [PHP] Passing Values
Hello,
Today I was working on an object that will create all of the columns
and
tables in my DataBas
2, 2002 4:56 PM
To: 'Rick Emery'; [EMAIL PROTECTED]
Subject: RE: [PHP] images not displaying
yes. the SRC=/home/website/testingArea/images/
Should I just make it http://website.com/testingArea/images/
instead?
__
Carl Schmidt | Developer |
L
examine the generated HTML with View Source in your browser. Does it
contain what you expect?
-Original Message-
From: Carl [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 4:45 PM
To: [EMAIL PROTECTED]
Subject: [PHP] images not displaying
the images folder is in /website/
. To believe otherwise would allow many of us an opportunity
for off-list humor at the believer's expense.
-Original Message-
From: Steffan Harris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 2:13 PM
To: Rick Emery
Subject: RE: [PHP] Cookies
sorry, I was in a rush when I wro
what is an infinite cookie? do you mean one that lasts after the browser is
closed and can be re-examined at a later date?
Already there...
-Original Message-
From: Steffan Harris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 1:57 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Cooki
no such thing as a global variable accessible from all pages.
use cookies or sessions
-Original Message-
From: Morten Nielsen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Remembering choices
Hi,
I have a menu, where I would like
[mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 02, 2002 2:06 PM
> To: Rick Emery
> Subject: Rick...
>
>
> Rick,
> After typing in:
>
> mysql> SHOW GRANTS FOR johndoe@localhost;
>
> I get an ERROR 1064
>
> Regards,
> TR
> ......
I assume that instead of johndoe, you used the real user name that you have
in your script
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 2:06 PM
To: Rick Emery
Subject: Rick...
Rick,
After typing in:
mysql> SHOW GRANTS FOR john
if done in mysql:
SELECT
PERIOD_DIFF(DATE_FORMAT("2002-06-05","%Y%m"),(DATE_FORMAT("2001-08-27","%Y%m
") );
-Original Message-
From: John Hughes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Counting months between two dates
I wa
John,
Are you pulling dates from mysql? If so, let mysql do it for you.
If you don't know how, ask again.
-Original Message-
From: John Hughes [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:33 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Counting months between two dates
I wan
at the mysql command line, type:
mysql> show grants for johndoe@localhost;
what does it show?
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 1:08 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Connecting to a DB using PHP and mysql...
Crai
have permissions been granted to contacts in mysql using that combination of
username and password?
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Connecting to a DB using PHP and mysql...
Us
I've used undefined variables for over 30 years...which has caused many
late-night debugging sessions and much pain.
Defining and initializing variables is a good thing. I believe PHP has a
flag set to warn of use of un-initialized data.
I do prefer strongly-typed languages, such as C++. That
what do you mean "timeout"?
What is timing out?
-Original Message-
From: Carl Schmidt [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 8:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] set browser timeout
Is there an HTTP tag in the header that can be sent to tell the browser
not to
use cache control in your HTML to prevent BACK button usage
This is easily done
"Erik Price" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]...
> Sorry to plague this list with questions today, but I was hoping someone
> could help me understand a fundamental thing about how bro
> What I don't understand is how did $result_row become $result_row[0] and
> $result_row[1]?
mysql_fetch_row() returns an array structure
> Also what does it mean to select max(thread) as thread, max(mesid) as
> mesgid? I have never used this "as" command before.
max(x) returns the highest
Normally, you'll create the databases within the native database
environment. For instance, for mysql, at the mysql command line.
Then, you use PHP/PERL/C/sh/bash/... to access the database with various
queries, such as SELECT.
You also use the database native environment to update/maintain tab
FYI:
http://www.lindows.com
Unlike the http://www.mslinux.org (see below), which is an April Fool's
joke, Lindows is an actual product in beta development now. It is a Linux
based operating system that runs MS Windows applications.
I can't wait to see the impact on PHP development that Lindows
Don't need to convert to timestamp. Mysql will handle dates directly
without this unnecessary conversion.
-Original Message-
From: James E. Hicks III [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 7:31 AM
To: ROBERT MCPEAK; [EMAIL PROTECTED]
Subject: RE: [PHP] date expressions
Robert,
I believe you are extracting this info from a mysql database. let mysql do
it for you as I explained in my examples yesterday.
If you need more infor from me, just ask/
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 7:25 AM
To: [
Jason means that you should execute it from the mysql command line;
In your PHP code: print $sql.
Then copy from that window and paste into mysql command line and execute.
What are the results?
-Original Message-
From: Dr. Shim [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:4
$query="INSERT INTO news VALUES($newsid,'$title','$author',$posted,'$body'
)";
-Original Message-
From: menezesd [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 02, 2002 12:03 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Need some help please
Hello Friends.
I know I am asking for too much.
No, this is NOT a bug. You recurse 10 times down into the function.
Therefore, as you come back up and exit the previous call to test(), you
complete Test's processing, which is to print j
The recursion process is as expected and correct
==
At 09:59 AM 31/03/2002, Ur
What is the class instance name? Are you referring to the name of the
variable that holds the instance?
-Original Message-
From: Nate [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:25 PM
To: [EMAIL PROTECTED]
Subject: [PHP] class instance name
How do you determine the class
> Extended info at http://www.mslinux.org
ROFLMAO
-Original Message-
From: margehair.terra.es [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 5:17 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] New php functions?
I love that manual! And what about the one in win help format? Not
I've got the PHP manual as a series of hyper-linked HTML pages. Searchig is
is very fast. And, I don't need to wait for download of single page.
I've got the index.html page in my Favoties list, so the PHP manual ia
always available; I don't have to try to remember where the downloaded doc
is.
Are you retrieving the stored date from a mySQL database? If so, you can
let mysql SELECT only those records that fit the tardy date criteria.
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 2:22 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date
He's not including the ; in the SELECT statement. The ; you're seeing is at
end of the PHP statement
-Original Message-
From: Matt Friedman [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 2:02 PM
To: 'ROBERT MCPEAK'; [EMAIL PROTECTED]
Subject: RE: [PHP] parse error, mysql select
$query = "SELECT DATE_FORMAT( exp_date, \"%W, %M %d, %Y\") AS thedate from
tifrequest where user='$user' limit 1,1";
Missing escape \ in front of quotes
-Original Message-
From: ROBERT MCPEAK [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 1:55 PM
To: [EMAIL PROTECTED]
Subject: [
> $query="INSERT INTO news (newsid,title, author, body, posted)
> //VALUES($newsid,'$title','$author', '$body', $posted)";)
What's with the // in front of VALUES? Change to:
$query="INSERT INTO news (newsid,title, author, body, posted) ".
"VALUES($newsid,'$title','$author', '$body', $
Both connects are "active".
you specify which link when you select the database:
mysql_select_db("database_name", $db1); mysql_select_db("database_name",
$db2);
-Original Message-
From: James Taylor [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 12:48 PM
To: PHP List
Subject: [
which line is 45
-Original Message-
From: news.php.net [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Parsing error
Hi,
I'm real new in php and trying to read a txt file
this is my code :
and when i run it i get : Parse error:
You CANNOT execute the PHP script until the form is submitted. You are
attempting to do both at the same time.
Second, ALL your text fields muse be surrounded by quotes in your INSERT
statement.
Third, use NULL, not UNIX_TIMESTAMP() to insert a timestamp field.
In the following, assume the name
It's been moved: http://sourceforge.net/projects/snoopy/
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 8:08 AM
To: 'Stephen Phillips'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problems reading a URL
You wan
You want Snoopy: http://snoopy.sourceforge.com
-Original Message-
From: Stephen Phillips [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 01, 2002 7:22 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Problems reading a URL
Hi,
I'm working on a script to read in the results from a search eng
I ran it through my PHP. Worked fine.
You may wish to close each line with a ".
-Original Message-
From: Eric Kilgore [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 3:46 PM
To: php-general (E-mail)
Subject: [PHP] Can you find the parse error?
What's wrong with this code that
I mean:
$this->mFileArray:
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 1:13 PM
To: 'Eric Starr'; [EMAIL PROTECTED]
Subject: RE: [PHP] Re: function calls...Incorrect output...What am I
doing wrong?
Your problem is that
Your problem is that you reference $mFileArray. You should reference
$this_.mFileArray:
for ($i=0; $i < count( $mFileArray ); $i++) // iterates through the array
Therefore, count($mFileArray) is 0, so the loop ends without an explicit
exit
-Original Message-
From: Eric Starr [mailto
> What will a database-driven web site do for?
If you have to ask, you have no need
> How does it relieve stress on me?
It doesn't. Quite the opposite
> What is it good for?
If you have to ask, you have no need
> Why should I learn it?
If you have to ask, you have no need
-Original Messa
> $query .= "ON $username";
The ON clause should identify the database name, not the user. It should
appear as "*.*.
-Original Message-
From: Liam [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 29, 2002 4:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP] creating MySQL Users
29/03/2002
require() is used when you want the file included regardless of whether any
information is used from it. include() may be conditional.
-Original Message-
From: javier [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:44 PM
To: [EMAIL PROTECTED]
Subject: [PHP] require or include
Username: \n";
print "";
?>
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:48 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting user name in text area
Hi all,
Here is what I have and what I am trying to do.
I would like the us
string basename (string path [, string suffix])
i recommend you read the manual before posting
-Original Message-
From: Sharat Hegde [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:49 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting just the filename
Hello,
Is there a simpl
http://sourceforge.net/projects/snoopy/
-Original Message-
From: Devin Atencio [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:14 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Emulating POST ?
I need to somehow write a PHP Script that will POST
XML type stuff to UPS like this:
this appears to be a coding issue.
show your code...we can't read your mind...
-Original Message-
From: Caspar Kennerdale [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 6:45 PM
To: PHP
Subject: [PHP] classes- getting their slowly but surely I think
just a quick query, hopefu
What do you mean ORDER BY 'S' ??
yes, it can be a column or combination of columns and data.
What are you trying to DO?
-Original Message-
From: Sebastian A. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 10:30 AM
To: PHP General List (PHP.NET)
Subject: RE: [PHP] SQL Question
> How do I sort out data from mysql_fetch_row() or mysql_fetch_array? For
> example say I wanted to list all my users alphabetically. How would I do
> this?
You would sort in your SQL statement, not PHP.
SELECT * FROM my table ORDER BY field_name;
> Or say I had a form and I wanted to present t
What do you mean you "donĀ“t have the filepointer anymore"? File pointer to
what? The image file? Is the image file dynamically created using PHP? I
must be dense...I don't understand.
-Original Message-
From: Moschitz Martin [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 8
201 - 300 of 538 matches
Mail list logo