s John Holmes wrote:
i
d Curt Zirzow wrote:
e
Top posting is like this.
p
o How about middle posting?
s
t Please don't top post.
i
n
g
? --
J By-Tor.com
i It's all about the Rush
m http://www.by-tor.com
G --
r PHP General Mailing List (http://www.php.net/)
i To unsubscribe, visit:
[snip]
Fatal error: Call to undefined function: pg_connect() in
/Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData
.php on line 28
[/snip]
http://www.php.net/manual/en/features.commandline.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks
On Aug 23, 2004, at 12:04 PM, Jay Blanchard wrote:
[snip]
Fatal error: Call to undefined function: pg_connect() in
/Users/jcapy2/Sites/Jesper/SyncPosgresToMbrMaxData
.php on line 28
[/snip]
http://www.php.net/manual/en/features.commandline.php
--
PHP General Mailing List
I am a newby having a configuration problem. I am using PHP 4.3.6 and
postgres 7.4.3
The problem is when I try to execute my php scripts that connect to
postgres from the command line I get error like this:
Fatal error: Call to undefined function: pg_connect() in
Yes I have found that I am running v 4.3.2 on the command line and
4.3.6 under apache
Is it possible to run the same version both on the command line and
running on apache?
On Aug 23, 2004, at 12:23 PM, Michal Migurski wrote:
I am a newby having a configuration problem. I am using PHP 4.3.6
[snip]
Yes I have found that I am running v 4.3.2 on the command line and
4.3.6 under apache
Is it possible to run the same version both on the command line and
running on apache?
[/snip]
Yes.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Ok next stupid question
At the command line how to I force the execution of the 4.3.6 apache
version or change the default to it.
On Aug 23, 2004, at 2:39 PM, Jay Blanchard wrote:
[snip]
Yes I have found that I am running v 4.3.2 on the command line and
4.3.6 under apache
Is it possible to run
[snip]
At the command line how to I force the execution of the 4.3.6 apache
version or change the default to it.
[/snip]
You need to install the proper CLI version as described
http://www.php.net/manual/en/features.commandline.php
--
PHP General Mailing List (http://www.php.net/)
To
On Tuesday 24 August 2004 02:42, Joshua Capy wrote:
Ok next stupid question
At the command line how to I force the execution of the 4.3.6 apache
version or change the default to it.
What one usually does is compile different 'versions' of php using the same
config options (if you want them
Joshua Capy wrote:
of PHPADMIN and try use pg_query() to do a select such as SELECT
PersonID FROM person
the string that is sent is select personid from person. Now this is
a problem because in the data base the field PersonID is not the same
case as in the select that is sent and I get the
[snip]
I am new to postgres using PHP. I have gotten PHP POSTGRES and PHPADMIN
installed and have a database setup using PHPADMIN. The problem that I
am having is that when I connect to postgres outside of PHPADMIN and
try use pg_query() to do a select such as SELECT PersonID FROM person
the
$query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2;
while($row2 = mysql_fetch_array($query4)) {
//print array
}
this will print whole array. i just want to print a row at a time and it should be in
the loop because i am printing other things as well. can you tell me how to
On Thursday 12 August 2004 21:20, Deepak Dhake wrote:
$query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2;
while($row2 = mysql_fetch_array($query4)) {
//print array
}
this will print whole array. i just want to print a row at a time and it
should be in the loop because i
On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake
[EMAIL PROTECTED] wrote:
$query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2;
while($row2 = mysql_fetch_array($query4)) {
//print array
}
this will print whole array. i just want to print a row at a time and it should be
On Thu, 12 Aug 2004 10:04:00 -0700
[EMAIL PROTECTED] (Justin Patrin) wrote:
On Thu, 12 Aug 2004 09:20:44 -0400, Deepak Dhake
[EMAIL PROTECTED] wrote:
$query4 = mysql_query(SELECT result FROM TBL_result WHERE survey_no=2;
while($row2 = mysql_fetch_array($query4)) {
//print array
}
On Wed, 11 Aug 2004 17:13:49 -0400, Deepak Dhake
[EMAIL PROTECTED] wrote:
i am trying to print some values from a table with using
mysql_fetch_array in a loop but not able to get correct values.
it works fine for the loop i=0, prints all desired values but when it
bocomes i=1 and starts the
[snip]
! Still the problem remains that there is no mysqli equivalent for
mysql_field_name
[/snip]
As I had suggested earlier you could do a DESCRIBE `table` query and
loop through the column names returned.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Thanks for pointing me in the right direction.
I managed to kill my existing authorisation credentials by throwing a
401 unauthorised header at IE.
Just in case anybody else is interested here is the basic layout of the
code I used(I did format it but that might have got lost, apologies if
it
From: Mark Collin [EMAIL PROTECTED]
Does anybody have any ideas on how I can prevent caching of
$_SERVER['PHP_AUTH_USER'] and $_SERVER['PHP_AUTH_PW'], or clear them?
You can't clear them; they're sent by the browser. It'll keep resending the same
values and you're script will authenticate.
On Mon, 26 Jul 2004 12:18:37 -0500 (CDT), Rodolfo Gonzalez Gonzalez
[EMAIL PROTECTED] wrote:
Hi,
I'm trying to use PEAR's DB class with the new PHP 5 MySQLi support on
MySQL 4.1.3, using this example from the PEAR's docs (with my parameters
of course). I'm getting DB unknown error messages
Hello,
Thank you very much for all the people who replied me
so fast.
Unfortunately I still have a problem with that part.
Matt M. [EMAIL PROTECTED] wrote:
Now, I want to know which numbers have been checked
by the player.
I have a :
input name=Grid1 type=checkbox
for the first grid. Grid2
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem of a beginner with Array[Scanned]
Hello,
Thank you very much for all the people who replied me
so fast.
Unfortunately I still have a problem with that part.
Matt M. [EMAIL PROTECTED] wrote:
Now, I want to know which numbers have been
Henri marc [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
Thank you very much for all the people who replied me
so fast.
Unfortunately I still have a problem with that part.
Matt M. [EMAIL PROTECTED] wrote:
Now, I want to know which numbers have been checked
by the
Hello Torsten,
try this:
input name=Grid1[1] typecheckbox file://1st
grid, 1st checkbox
input name=Grid1[2] typecheckbox file://1st
grid, 2nd checkbox...
Seems I can't do another way than this. Not possible
to do just Grid1[].
After submit you will receive $_POST['Grid1'] as an
ARRAY
Henri marc [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Torsten,
try this:
input name=Grid1[1] typecheckbox file://1st
grid, 1st checkbox
input name=Grid1[2] typecheckbox file://1st
grid, 2nd checkbox...
Seems I can't do another way than this. Not possible
to do
earlier together with that sent by Torsten
will containg the answer.
HTH,
Michael Egan
-Original Message-
From: Henri Marc [mailto:[EMAIL PROTECTED]
Sent: 21 July 2004 13:51
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem of a beginner with Array[Scanned]
Hello Torsten,
try
I would prefer to have if possible:
input name=Grid1[] typecheckbox //1st grid, 1st
checkbox
input name=Grid1[] typecheckbox //1st grid, 2nd
checkbox...
That's what Matt M proposed.
If I do: echo $_POST['Grid1'];
I have on as a result and not a value. I also tried
with echo
Now, I want to know which numbers have been checked by the player.
I have a :
input name=Grid1 type=checkbox
for the first grid. Grid2 for the grid #2...
input name=Grid1[] type=checkbox value=whatever /
input name=Grid2[] type=checkbox value=whatever /
if the user checks any Grid1[] boxes
Name each of the checkboxes grid[] (input type=checkbox name=grid[]
value=your_valueYour Text), then in your processing script,
$_POST['grid'] will be an array with the values of all the checked boxes
(assuming at least one was checked - otherwise it won't be set). If you
want a limit on the
You don't have to declare an array size in PHP.First you can do this:
$arr = array();
then
$arr[1] = 50;
$arr[2] = true;
$arr[3] = some value;
or you can loop through
foreach( $i = 0; $i 50 ; $i++ )
$arr[$i] = false;
I believe you can assign the checkbox names in HTML as grid[] and in php
Henri Marc wrote:
I want to make a lottery site (just as an exercise), so I made a page with 6 grids of 50 numbers each (check boxes).
Now, I want to know which numbers have been checked by the player.
I have a :
input name=Grid1 type=checkbox
for the first grid. Grid2 for the grid #2...
I was
On Tue, 20 Jul 2004 20:09:33 +0200 (CEST), Henri Marc
[EMAIL PROTECTED] wrote:
Hello,
I'm just starting with PHP and I have a problem. This is certainly very easy for you
but for me, it's tough.
I want to make a lottery site (just as an exercise), so I made a page with 6 grids
of 50
Hey John, maybe you should ask him how his script picks the winning lottery
numbers :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Jason Wong wrote:
On Thursday 15 July 2004 23:30, Frank Holtschke wrote:
Even if you could prevent an included file from being parsed, I can't see
how it would help you as you can't assign the contents to a variable. But
you say that you sometimes have problems which implies that sometimes
it
Rosen wrote:
I use some numbers from mysql table and other local vars to calculate one
number.
But on one calc I receive thath $value=4.5474735088646E-013;
This must be zero (0) - I see all vars and calc then with calculator. I use
function number_format($value, 2, ., ) and it return me -0.00
Thanks !
abs() will not work for me, because I may have na negative numbers, but with
round() it worked !
10x
John W. Holmes [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Rosen wrote:
I use some numbers from mysql table and other local vars to calculate
one
number.
But on
On Thursday 15 July 2004 19:52, Frank Holtschke wrote:
i have sometimes problems to include images. the reason are substrings
like ? in the image.
in that case the php-parser tries to parse the string and returns the
error:
parse error, unexpected ',' in
unforunatly there in no other way
Jason Wong wrote:
On Thursday 15 July 2004 19:52, Frank Holtschke wrote:
i have sometimes problems to include images. the reason are substrings
like ? in the image.
in that case the php-parser tries to parse the string and returns the
error:
parse error, unexpected ',' in
unforunatly there in no
On Thursday 15 July 2004 23:30, Frank Holtschke wrote:
Even if you could prevent an included file from being parsed, I can't see
how it would help you as you can't assign the contents to a variable. But
you say that you sometimes have problems which implies that sometimes
it works. Could
You can't unset $_REQUEST. All it does is unset the reference to it in
the current context. It still exists elsewhere. If you *really* want
to get rid of $_REQUEST, you should do it this way:
unset($GLOBALS['_REQUEST']);
But I would advise against that. Why exactly are you unsetting a
I found the answer, as my second post on this told.
Why unset the globals?
I plan on implementing filters on all User input to ALL scripts in the prepend file.
And if someone wants to get a variable that was supplied by a user, they have to
specifiy if it's going to be INT, STR(with options to
Ok
Why not just set the values in $_REQUEST then?
AbstractEnvironment::stripTagsArr($_REQUEST);
Or something like this:
foreach($_REQUEST as $key = $val) {
$_REQUEST[$key] = stripTagsNStuff($key, $val);
}
On Thu, 15 Jul 2004 15:45:45 -0700, Dennis Gearon [EMAIL PROTECTED] wrote:
I found
Dennis Gearon wrote:
Why unset the globals?
I plan on implementing filters on all User input to ALL scripts in the
prepend file. And if someone wants to get a variable that was supplied
by a user, they have to specifiy if it's going to be INT, STR(with
options to remove run on spaces, validate
I've had a similar problem. The issue was that Norton Personal
Firewall was corrupting the download...I have no idea why. To make it
work, I had to use mod_rewrite to make the URL look like a normal file
URL, then I found out that it would only work over HTTPS.again, no
idea why. If the user
--- Nitin [EMAIL PROTECTED] wrote:
Hi all,
I'm using PHP function crypt() to encrypt the
password while updating the password for user's
email accounts.
It was running fine on PHP 4.0.6, but since I
updated to PHP 4.1.2, it's giving me problems. No
errors, nothing, password is updated but
: [PHP] problem with crypt
--- Nitin [EMAIL PROTECTED] wrote:
Hi all,
I'm using PHP function crypt() to encrypt the
password while updating the password for user's
email accounts.
It was running fine on PHP 4.0.6, but since I
updated to PHP 4.1.2, it's giving me problems
On Sat, 2004-07-03 at 16:57, Rosen wrote:
Hi,
I have the following problem with strcasecmp() function.
It should be compare strings case insensitive. When I use it on my local
computer, - it works correctly.
But when I upload file on some internet server - the function doesn't work .
I use
Both versions are Version 4.3.7 of PHP.
Scot L. Harris [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, 2004-07-03 at 16:57, Rosen wrote:
Hi,
I have the following problem with strcasecmp() function.
It should be compare strings case insensitive. When I use it on my
On Sat, 2004-07-03 at 17:08, Rosen wrote:
Both versions are Version 4.3.7 of PHP.
Then more information is needed to figure out the problem.
Sample code plus any error messages or results would help.
--
Scot L. Harris
[EMAIL PROTECTED]
Plaese porrf raed.
-- Prof. Michael
The code:
echo strcasecmp(Òåñò , òåñò); // This are Test and test in
cyrillic
echo br;
echo strcasecmp(Test, test);// This no problem - it works
Results:
-32
0
Scot L. Harris [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Sat, 2004-07-03 at 17:08, Rosen wrote:
Both
shouldn't session_start() come first?
also remember that your devel computer might have different settings in
the PHP.ini file to that of your ISP, probably register_globals is set
to off. I would check it.
HTH
Angelo
Jordi Canals [EMAIL PROTECTED] 7/2/2004 11:14:28 AM
Hi all,
I have an
Jordi Canals wrote:
This problem only arises on my ISP hosting (Linux+Apache 1.3) and does
not show on my devel computer (Windows+Apache 2.0). I've been searching
the manual, but found no explanation about that.
Sorry forgot it: The two platforms run PHP 4.3.7
Thanks again,
Jordi.
--
PHP General
Angelo, thanks for your comments.
session_name must go before session_start.
I think register_globals has nothing to do with session cookies. I
always work with register_globals = off as recommended.
About the cookie params (In PHP.INI) I checked them on the two platforms
with phpinfo() and
Jordi Canals wrote:
Angelo, thanks for your comments.
session_name must go before session_start.
I think register_globals has nothing to do with session cookies. I
always work with register_globals = off as recommended.
About the cookie params (In PHP.INI) I checked them on the two platforms
Lars Torben Wilson wrote:
About the cookie params (In PHP.INI) I checked them on the two
platforms with phpinfo() and are exactly the same.
Was your binary compiled with --enable-trans-sid? If so, I imagine the
explanation would be something along the lines that because the session
manager
Jordi Canals wrote:
the ISP changed a param in the PHP.INI, and they changed
session.use_trans_sid setting it to 1.
[...]
Now I should talk to the provider to not set this parameter to ON by
default, because the security risk on it (As stated on the manuals).
If they allow you to use
Vincent DUPONT mailto:[EMAIL PROTECTED]
on Wednesday, June 30, 2004 1:05 PM said:
Hi,
hi.
could anyone help on this 'by reference' problem.
when starting a new thread please do not just reply to an ongoing thread
and change the subject. please start a new email.
your fellow list
so, why don't you reply correctly? :p
Chris W. Parker wrote:
Vincent DUPONT mailto:[EMAIL PROTECTED]
on Wednesday, June 30, 2004 1:05 PM said:
Hi,
hi.
could anyone help on this 'by reference' problem.
when starting a new thread please do not just reply to an ongoing thread
and change the
better don't blame the other pal :-)
http://screens.erisx.de/reply.gif
-- red
Red Wingate wrote:
so, why don't you reply correctly? :p
Chris W. Parker wrote:
Vincent DUPONT mailto:[EMAIL PROTECTED]
on Wednesday, June 30, 2004 1:05 PM said:
Hi,
hi.
could anyone help on this 'by reference'
* Thus wrote Shannon Werb:
Hi all, I filed a PHP bug related to others I found online, but thought I
would throw it by the list also...
You can find the bug at:
http://bugs.php.net/bug.php?id=28967
You're going to need to get some sort of backtrace, either from the
core dump or ran
Curt, how do I do this?
I have the httpd.core that apache produced, how should I send it in?
Regards,
Shannon
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 8:10 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with pspell module
: Re: [PHP] Problem with pspell module
* Thus wrote Shannon Werb:
Hi all, I filed a PHP bug related to others I found online, but
thought I would throw it by the list also...
You can find the bug at:
http://bugs.php.net/bug.php?id=28967
You're going to need to get some sort
* Thus wrote Shannon Werb:
Following is my backtrace, I found how to do it at:
http://bugs.php.net/bugs-generating-backtrace.php
BACKTRACE:
(gdb) bt
#0 0x0 in ?? ()
#1 0x28519319 in _init ()
from /usr/local/lib/php/phpa/php_accelerator_1.3.3r2.so
#2 0x28524595 in _fini ()
from
PROTECTED]
Sent: Wednesday, June 30, 2004 9:31 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with pspell module
* Thus wrote Shannon Werb:
Following is my backtrace, I found how to do it at:
http://bugs.php.net/bugs-generating-backtrace.php
BACKTRACE:
(gdb) bt
#0 0x0
(gdb)
Disable php accelerator and see if it happens. You'll most
likely need to reinstall php accelerator.
SHIT, that did it...
I didn't disable it in php.ini like I had thought, but once I did everything
is fine...
So why is this causing it?
To re-install it maybe I just need to
-Original Message-
From: Shannon Werb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 9:27 PM
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problem with pspell module
(gdb)
Disable php accelerator and see if it happens. You'll most
likely need
* Thus wrote Shannon Werb:
-Original Message-
From: Shannon Werb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 9:27 PM
To: 'Curt Zirzow'; [EMAIL PROTECTED]
Subject: RE: [PHP] Problem with pspell module
(gdb)
Disable php accelerator and see if it happens
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 10:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with pspell module
* Thus wrote Shannon Werb:
-Original Message-
From: Shannon Werb [mailto:[EMAIL PROTECTED
: Wednesday, June 30, 2004 10:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with pspell module
* Thus wrote Shannon Werb:
-Original Message-
From: Shannon Werb [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 9:27 PM
To: 'Curt Zirzow'; [EMAIL PROTECTED
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 30, 2004 10:02 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Problem with pspell module
* Thus wrote Shannon Werb:
-Original Message-
From: Shannon Werb [mailto:[EMAIL PROTECTED
* Thus wrote Shannon Werb:
-Original Message-
From: Curt Zirzow [mailto:[EMAIL PROTECTED]
You can install it with the pear utility:
pear install apc
I tried, no luck:
batt3# pear install apc
downloading APC-2.0.4.tgz ...
Starting to download APC-2.0.4.tgz (44,606
* Thus wrote Pablo Gosse:
if ($mode == 1) {
$html = htmlentities($html, ENT_QUOTES);
} else {
$trans_tbl = get_html_translation_table(HTML_ENTITIES,
ENT_QUOTES);
$trans_tbl = array_flip($trans_tbl);
$html =
Keith Aldridge wrote:
New to php, can't see the problem with mail().
snip
?php
if (mail($to, $subj, $body)) {
echo (Successful send);
}
else {
echo (Failed);
}
?
Please don't send email to a mailing list asking for read reciepts.
Can the box that you're testing this script
So what do you get as the error message? Does it just return failed?
Also, I think using parentheses with echo statements like yours is
unnecessary.
Keith Aldridge wrote:
New to php, can't see the problem with mail().
?php
if (mail($to, $subj, $body)) { echo Successful send; }
else { echo
This should work:
if (mail($to, $subj, $bodytext)) {
echo Mail send;
} else {
echo ... something go wrong:
}
One tip: when configuring/installing php, if there is not /usr/bin/sendmail
it asumes that there is no way of send mails so mail function always return
false, check that just in case.
* Thus wrote Keith Aldridge ([EMAIL PROTECTED]):
New to php, can't see the problem with mail().
Server running 4.0.0
Path to sendmail: /var/sbin/sendmail
Please don't double/quad space, it makes things hard to read
...
if (mail($to, $subj, $body)) {
echo
Install the devel package of imageMagick in addition to the binary one.
Or install ImageMagick from sources.
Magick-config gives the c and ld flags to gcc, of all the libs that the
lib-magick uses :
gcc `Magick-config --cflags` app.c `Magick-config --ldflags --libs`
hey,
don't you need a page thats after that and will check the info, if you have
it will help use see what your problem with the $_POST[] is.
From: Shelby [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP] Problem with PHP + WML + Post method
Date: Fri, 4 Jun 2004 11:46:10 +0800
Hi,
I'm
Hi,
the href property is going back to index.php. It is going back to itself.
Tyler Replogle [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
hey,
don't you need a page thats after that and will check the info, if you
have
it will help use see what your problem with the $_POST[] is.
On Wednesday 02 June 2004 01:31, alantodd wrote:
I have php with pg and mysql commands working on the web site all scripts
work. When I call them from the cmdline I get a different story. Call to
undefined function: pg_connect() but run the same script from the web and
it works no problem..
Hi there,
Try using:
round($number, 2);
cheers,
Gareth
On 25 May 2004, at 16:00, [EMAIL PROTECTED] wrote:
Hi,
please suppose PHP 4.3.2 and $number=502,3550
number_format($number,2,'.',' ') returns 502.36.
It seems ok, but if $number=253,0650
number_format($number,2,'.',' ') returns 253.06 instead
From: [EMAIL PROTECTED]
please suppose PHP 4.3.2 and $number=502,3550
number_format($number,2,'.',' ') returns 502.36.
It seems ok, but if $number=253,0650
number_format($number,2,'.',' ') returns 253.06 instead of 253.07.
Why?
I've noticed this non-coherent approximation behaviour when
* Thus wrote John W. Holmes ([EMAIL PROTECTED]):
From: [EMAIL PROTECTED]
please suppose PHP 4.3.2 and $number=502,3550
number_format($number,2,'.',' ') returns 502.36.
It seems ok, but if $number=253,0650
number_format($number,2,'.',' ') returns 253.06 instead of 253.07.
Why?
Perhaps you might want to try an mmcache list.
Andrei Verovski (aka MacGuru) wrote:
Hi,
I have compiled and installed (precisely following instruction) turck-mmcache
2.4.6 for Apache2-2.0.49-23/php4-4.3.4-43.3 on SuSE 9.1.
Unfortunately, I cannot start Apapche2 anymore, I am getting this error
[snip]
i am a beginner for php programming, my OS is win98 while my webserver
is PWS, all is in the same machine,when i try to run my internet
explorer( type in http://localhost/phpinfo.php), phpinfo.php cannot be
display.
i try to reinstall pws and php follow the instrustruction but its still
Jessica Mays wrote:
From: [EMAIL PROTECTED]
Subject: problem with a while loop
Date: May 6, 2004 11:25:28 AM EDT
To: [EMAIL PROTECTED]
Hey everybody!
I am new to php (and mySQL) and I am working on a php page that links up
to a mySQL database. My current code
From: Jessica Mays [EMAIL PROTECTED]
I am new to php (and mySQL) and I am working on a php page that links
up to a mySQL database. My current code works up to a point, BUT what
happens is that I try to have a while loop and check a variable with an
inner while loop but it only catches after
From: John Nichel [EMAIL PROTECTED]
$i =0;
while ($i $num_results) {
$row = mysql_fetch_array($result);
$producer = $row[PRODUCE];
snip
Try changing the above from
while ($i $num_results) {
$row = mysql_fetch_array($result);
To
John W. Holmes wrote:
Same thing, really. It's a little more efficient than keeping a count, but
not the cause of any of the problems. :)
---John Holmes...
Chris! John is picking on me!
;)
--
John C. Nichel
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List
From: John Nichel [EMAIL PROTECTED]
Same thing, really. It's a little more efficient than keeping a count,
but
not the cause of any of the problems. :)
---John Holmes...
Chris! John is picking on me!
I thought we agreed that Chris is the one that cannot be trusted??
---John
* Thus wrote KidLat Ngayon ([EMAIL PROTECTED]):
Subject: Problem installing CURL for phpMySearch
To: [EMAIL PROTECTED]
Greetings!!!
I hope that there would be someone could help me in
installing CURL Version 7.11.0 for PHP Version 4.3.2.
I've already configure the CURL in PHP using on
Not quite sure what you mean...
So I assume the data was written into the worng fields.
If that is the case you could modify your insert query:
INSERT INTO table (id, name) VALUES ('$id', '$name')
hth
Richard
Friday, April 9, 2004, 4:11:05 PM, you wrote:
Hi,
I am getting 2 values from a
Hey Richard,
Thanks for replying.
If that is the case you could modify your insert query:
INSERT INTO table (id, name) VALUES ('$id', '$name')
No, thats not the problem, its inserting the text $id and $name instead
of the
values the variables hold.
Ideas?
Thanks,
-Ryan
Hi,
I am
From: Ryan A [EMAIL PROTECTED]
2. The query also checks if I have a stored sql statement for this C_ID
2a. If YES it tries to execute the query (if NO, execution stops here,
all
is well)
3.The stored SQL is usually something like insert into
tester('$client_id','$client_name')
Heres where
On Friday 09 April 2004 22:24, Ryan A wrote:
If that is the case you could modify your insert query:
INSERT INTO table (id, name) VALUES ('$id', '$name')
No, thats not the problem, its inserting the text $id and $name instead
of the
values the variables hold.
Don't use single quotes.
--
Jason Wong wrote:
On Friday 09 April 2004 22:24, Ryan A wrote:
If that is the case you could modify your insert query:
INSERT INTO table (id, name) VALUES ('$id', '$name')
No, thats not the problem, its inserting the text $id and $name instead
of the
values the variables hold.
Don't use single
From: John Nichel [EMAIL PROTECTED]
Don't use single quotes.
$sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name
. ')
awww, come on... someone besides me had to understand wtf Ryan was
blabbering about, right
;) ;) ;)
---John Holmes...
--
PHP General Mailing List
You have to eval() the code from the database to get the variables
replaced
(or use a regex).
?php
$name = 'John';
$str = file_get_contents('test.txt'); //Reads Hello $name
eval('$str = ' . $str . ';');
echo $str;
?
Hi John,
That didn't work (eval i dont know regex well enough so
John W. Holmes wrote:
From: John Nichel [EMAIL PROTECTED]
Don't use single quotes.
$sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name
. ')
awww, come on... someone besides me had to understand wtf Ryan was
blabbering about, right
;) ;) ;)
---John Holmes...
I have
On 4/9/2004 5:22:12 PM, John Nichel ([EMAIL PROTECTED]) wrote:
John W. Holmes wrote:
From: John Nichel [EMAIL PROTECTED]
Don't use single quotes.
$sql = INSERT INTO table (id, name) VALUES ( ' . $id . ', ' . $name
. ')
awww, come on... someone besides me had to understand wtf
901 - 1000 of 1893 matches
Mail list logo