Looks like this may be in wrong order:
url = '$file_name')
^
I think you have ' when it should be '
Here is the command.
mysql_query(UPDATE user_polls WHERE uid = '$UserName' AND type = '$type'
SET
url = '$file_name') or die(mysql_error());
Output
You
I can think of 2 options, neither pleasant. On unix you can write a script
for ftp to use and put a .netrc in your home dir with a line like this
machine hostname login username password password
and that will make it automatically connect. So you could write script to
do things like get a
Correct, SET must be before WHERE.
Joseph
CollegeSucks.com
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 4:04 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] mysql error, dont see why.. please help
Shouldn't it be:
On Mon, 21 May 2001, Alexander Wagner wrote:
Michel 'ZioBudda' Morelli wrote:
Hi, I want to save into a variable ($tmp) the value of
highlight_string command. Any one? or any similar function?
Have a look at PHP 4's output buffering functions. You can use them to
safe the output instead of
On Tue, May 22, 2001 at 02:04:43PM -0700, Andrew V. Romero wrote :
I should clarify that I need to determine the number of elements in $j for
each row ($k).
Thanks,
To reply personally, remove all numbers from address.
Just a note: to receive mail post your real address.
- Markus
--
When ever I am trying to access a php file with an error,my system is
overwelmingly slowing down and restarting is the only solution.
Previously I worked on linux/apache/php 4.0/mysql ,I never had such
problem.I used to get some errors and I used to correct them but working in
this environment is
Hi all,
I'm having the following problem. I have PHP-4.0.5 staticaly compiled
with apache 1.3.19, running on a red hat linux with a 2.2.12 Kernel.
The following script does not work the second time called, the browser
just hangs and returns a this document is empty after a while. I am
getting
I have some field error checking going on ... and when a user (say) doesn't
fill in a field correctly, my error page comes up telling them. They then
must click on their browsers back button and make the changes.
Now -- I have a password field, and when they click back, they are forced to
This link
a href=javascript:history.go(-1)Back/a
will work on javascript enabled machines...
the truly failsafe way is to stuff their data in a session or in the
database and pass an id back to the original script.
You can also make your form to fill out a seperate file, which your first
script
calling session_register() on a var that is allready registered is asking
for trouble. there seems to be some bug in php concerning this.
?php
session_start();
if (!isset($HTTP_SESSION_VARS['counter']))
{
$counter = 0;
session_register('counter');
}
$counter++;
echo
Counter:
At 22.05.2001 23:27, you wrote:
I have some field error checking going on ... and when a user (say) doesn't
fill in a field correctly, my error page comes up telling them. They then
must click on their browsers back button and make the changes.
Now -- I have a password field, and when they
Não presta!
I must call from several different HTML pages. Script1 + script2 or
script1+script3 and even script2+script3, depending upon the page.
Valter Santos [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi!
use script1.php only to call the two
I think your mising the point. I use classes to create more modular code, I
find it keeps my code structured and easy to modify for other sites. I can
have a class for one site, I can then copy that class and easily modify it
to suit for another site. I do not use my classes for storeing data
I want to be able to do this:
function f_of_A( $vara ){
$var +=1;
}
function f_of_B( $varb ){
$var %=3;
}
function do_both( $vara, $varb ){
f_of_A( $vara );
f_of_B( $varb );
}
$gvara=some_number;
$gvarb=some_other_number;
do_both( $gvara, $gvarb );
and have the original, global
your close.
?php
function f_of_A($var)
{
$var +=1;
}
function f_of_B($var)
{
$var %=3;
}
function do_both($vara, $varb)
{
f_of_A($vara);
f_of_B($varb);
}
$gvara = 12;
$gvarb = 13;
do_both($gvara, $gvarb);
?
the '' goes in front of the variable being given, not in
ooops, had a typo, sorry ..
Dennis Gearon wrote:
I want to be able to do this:
function f_of_A( $vara ){
$var +=1;
}
function f_of_B( $varb ){
$var %=3;
}
function do_both( $vara, $varb ){
f_of_A( $vara );
f_of_B( $varb );
}
$gvara=some_number;
Since I want to use a feature that is only in 4.0.6, I'm trying to
install from CVS. This fails with the following error:
[root@rakete php4]# ./buildconf
buildconf: checking installation...
buildconf: autoconf version 2.13 (ok)
buildconf: automake version 1.4 (ok)
buildconf: libtool version 1.4
I am running PHP 4.0.5 on Windows 2000 with SQL server databases.
If there is an error with my PHP code, my computer becomes very very slow
and nothing works. The PHP
process is using 99 % of the CPU. So I have to restart the computer. This
happens everytime there is an error in
my PHP code. For
php-general
i'm a beginner of PHP, i use PHP4.05 of win32, i don't know MySQL or the others
but dBase, so i use dBase function. but when i use the function
dbase_replace_record(). the record can't replace with what i want, but with NULL.why?
the other functions can work well. i think it
On Wed, May 23, 2001 at 12:31:02AM -, [EMAIL PROTECTED] sat at the
'puter and typed:
Hi! This is the ezmlm program. I'm managing the
[EMAIL PROTECTED] mailing list.
Oops, that confirmation number appears to be invalid.
The most common reason for invalid numbers is expiration. I have
I would like to know if any one has heard of a software called Merlin
Server for Linux (Red Hat 6.0) - http://www.abriasoft.com
Merlin server is a complete web development and production server that
provides a robust deployment environment for interactive, database driven
websites. Merlin
Hey all,
Just was wondering if anyone knew what was used to make the php manuals
in the windows help format (.chm), I really like them :-)
Regards,
Joseph.
--
BoldFX / Binary Logic
The Logical Choice
750 Port Road Beverley 5009
Ph: (08) 8244 1800 Fax: (08) 8244 1811
mailto: [EMAIL
Why? We have the manuals in two truly portable formats, HTML and PDF, not
to mention on-line, annotated HTML.
Miles Thompson
At 10:37 AM 5/23/01 +0930, Joseph Blythe wrote:
Hey all,
Just was wondering if anyone knew what was used to make the php manuals in
the windows help format (.chm), I
Miles Thompson wrote:
Why? We have the manuals in two truly portable formats, HTML and PDF,
not to mention on-line, annotated HTML.
Miles Thompson
Because I already have enough browser windows open and I find the
windows help format a lot better as it is easily searchable and also has
Hi all,
Can PHP be used as a general scripting language other than in web?
Has anyone did this before?
I would like to embedded some kind of scripting in application developed using C
or C++.
I don't want to learn a new language. I already know PHP and like the syntax and
style :)
Any hint or
Yes it can. If you are compiling yourself you can use configure without
specifying any webservers (i.e. Apache, Netscape, etc) and a binary called
php will be generated after you build.
-Original Message-
From: Chatchawan Boonraksa
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22,
Ok, use your imaginations and visualize what I'm trying to do with this, because I'm
not quite sure how to explain it. Anyway, I'm trying to have a script that says when
THIS_VAR and THAT_VAR are a certain number it show something. I'm not quite sure how
to do that without making yet another
What's wrong with doing it like
if ($date == 24) {
if ($hour == 3) {
do something
}
}
??
-Original Message-
From: chris herring [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 12:58 PM
To: [EMAIL PROTECTED]
Subject: [PHP] IF statements
Why doesn't work?
$date = 24;
$hour = 3;
if ($date == 24 $hour == 3) { echo 'works'; }
If does not print you 'works': the sky will crash to the ground.
I think you just got confused elsewhere in your code.
Sincerely,
Maxim Maletsky
Founder, Chief Developer
PHPBeginner.com (Where PHP
chris herring [EMAIL PROTECTED] wrote:
if ($date == 24 $hour == 3) { }
But that doesn't work... Any help is appreciated
Your logic is correct. If the code within the braces isn't working it's
likely there's either an error in the code within the braces or $date and
$hour aren't returning
Stig -
Thanks for the help. I've been working to narrow it down and it turns out
that the openldap 2.0.7 (and 2.0.9) will open SSL connections with sslv23 by
default. Apparently there is no way to choose another SSL protocol from the
openldap client or php's ldap functions. (Ref tls.c in the
Can anyone help?
Here is my problem, I am submitting a lot of hidden variables using a FORM and they
come over padded with a space on the left.
I know that I can trim() them but in case I am working with that might be more trouble
then its worth. This does not happin on another installation
Can anyone help?
Here is my problem, I am submitting a lot of hidden variables using a FORM and they
come over padded with a space on the left.
I know that I can trim() them but in case I am working with that might be more trouble
then its worth. This does not happin on another installation
On Wed, May 23, 2001 at 10:37:06AM +0930, Joseph Blythe wrote:
Hey all,
Just was wondering if anyone knew what was used to make the php manuals
in the windows help format (.chm), I really like them :-)
The manual is availabe in chm in several languages.
http://www.php.net/docs.php
Matt
On Wed, 23 May 2001 15:03, Thomas O'Neill wrote:
Can anyone help?
Here is my problem, I am submitting a lot of hidden variables using a
FORM and they come over padded with a space on the left. I know that
I can trim() them but in case I am working with that might be more
trouble then its
Matt McClanahan wrote:
On Wed, May 23, 2001 at 10:37:06AM +0930, Joseph Blythe wrote:
Hey all,
Just was wondering if anyone knew what was used to make the php manuals
in the windows help format (.chm), I really like them :-)
The manual is availabe in chm in several languages.
I'm trying to figure out how to add to the year:
for($x=0; $x20; $x++)
{
$year = date(Y + $x);
print($year . \n);
}
I've tried several variations on the above and cannot get the year to come
out.
Any suggestions?
Thanks
Jason
--
PHP General Mailing List (http://www.php.net/)
To
On Wed, 23 May 2001 08:26, LESM wrote:
Não presta!
I must call from several different HTML pages. Script1 + script2 or
script1+script3 and even script2+script3, depending upon the page.
What about using a conditional include, depnding on the value of, say the
refering page, or a hidden
?
$x=0;
$year = date(Y);
while($x 20)
{
$year = $year+1;
print($year . \n);
$x++;
}
?
Try that.
Tyler
-Original Message-
From: Jason Caldwell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 11:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Date (Year) .. adding..
Matt McClanahan wrote:
On Wed, May 23, 2001 at 10:37:06AM +0930, Joseph Blythe wrote:
Hey all,
Just was wondering if anyone knew what was used to make the php
manuals
in the windows help format (.chm), I really like them :-)
The manual is availabe in chm in several
How do I display a Images that is fetche from an email.
All I get is a bunch of jarble, how do I solve this
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators,
Note that by using the standalone executable of PHP I don't know of anyway
to invoke PHP without first creating a file with the script in it. So you
can't pipe a dynamically created script directly into PHP. You have to use
an intermediary file.
I imagine there is a way to make it work, but I
Hello Everybody :-)
I've been trying to figure something out, but just cant find the right
answer.
I need some code to check that the page is being viewed from a specific url.
EXAMPLE: Not just http://www but https://www1 if it is https://www1 then
show the page otherwise echo a message.
The
Hey
How can I add a certain number of whitespace chars to a text file?
I write variables to a text file and I want to seperate them by certain numbers of
whitespace chars
eg : $var(40 whitespace)$var2(10 whitespace)
TIA
Wade
On Wed, 23 May 2001 15:44, Wade Halsey wrote:
Hey
How can I add a certain number of whitespace chars to a text file?
I write variables to a text file and I want to seperate them by certain
numbers of whitespace chars
eg : $var(40 whitespace)$var2(10 whitespace)
TIA
Wade
metacharacter.
- Original Message -
From: Dennis Gearon [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: 2001. május 22. 09:34
Subject: [PHP] regex
Is a '.' inside of a [] a literal '.', or a 'any character'
?
--
-
Look
hello,
I'd like to know if there is a more elegant and smoother way to retrieve some array
elements with given keys and put them into an other array.
Yes, I can write a function like the following, but maybe I missed some new PHP
awesome feature or array function which does this job.
So, is
Thanks for your fast reply.
One more question related to this topic.
Would it be valueable to extend the existing array_values() function to support this
feature?
just to balance with array_keys() and its optional value argument.
- Original Message -
From: Markus Fischer [EMAIL
On Wed, May 23, 2001 at 12:06:42AM +0200, Gyozo Papp wrote :
function array_part($fromarray, $keys)
{
foreach($fromarray as $key = $val)
{
if (in_array($key, $keys)
$anotherarray[$key] = $val;
}
return $anotherarray;
}
foreach( $keys as $key)
On Wed, May 23, 2001 at 12:27:04AM +0200, Gyozo Papp wrote :
Thanks for your fast reply.
One more question related to this topic.
Would it be valueable to extend the existing array_values()
function to support this feature? just to balance with
array_keys() and its optional value argument.
101 - 150 of 150 matches
Mail list logo