Hrms. Got a small problem.
I'm now using functions on a regular basis, but I've come to another
sticking point with them: returning multiple variables from the function...
Here's a really quick example (nothing to do with what I intend to use the
functions for):
function CUP ($connection,$use
Hi All,
I've seen a couple of references to archiving files using exec() and tar or
zip. I am wondering, however, if this is the best/only way to do this. Is
this an inherently threaded process, so multiple simultaneous requests won't
seriously compromise server performance? What other gotchas sh
On Mon, Feb 12, 2001 at 09:13:09PM -, James, Yz wrote:
> What if I wanted to "return" more than one variable from the function? And
> how would I assign it a name? Like the actual variable, or is that just not
> possible?
>
> I've tried
> return $var1,$var2;
You're on the right track.
re
On Monday 12 February 2001 11:34, Michael Hall wrote:
> this works fine except that 14.95 * 2 comes out as 29.9 not 29.90. In
> other words, how to add a zero so that there are always two decimal
> places. Any solution to this, including regex? I can't find anything
look for number_format() and s
Hi Ramiro,
Your code looks ok, why don't you try the following and tell me is
working or not
$arr_aantal = explode (",", $aantal);
$arr_str_men = explode (",", $str_men);
$arr_recht = explode (",", $recht);
$arr_rechtverstek = explode (",", $rechtverstek);
$arr_verstekgelijk = explode (",", $ve
An approach that many people take is to simply have a function return success
or failure, and have any data that needs to be propogated upwards assigned to
pass-by-reference parameters. I like this approach because it removes any
question as to what a function returns. One drawback is that it bec
I am trying to process a form using text/html and mail().
The resulting email continues to have an ! inserted randomly
into the email. Does anyone know how to avoid this??
__
Lorenzo Curtis
Website/Database Developer
prexar - internet and beyond
[EMAIL PROTECTED]
On Monday 12 February 2001 21:08, Jesse Swensen wrote:
> >> This should be a quick one, but I can't seem to wrap my brain around
> >> it. All I need to do is replace leading or trailing spaces with
> >> underscores. If there is spaces in between words, leave them alone.
> but I wanted to convert
Hello,
My problem is that I have in the table below an URL (see $indice_url)
that points to the graphic (.gif) that has to be use by the the
"$indice" variable. The graphics ( five different ones) located in
the same folder as the script " data_out.php3"
Any Guru out here could shred me the "Blu
On Monday 12 February 2001 10:41, PHPBeginner.com wrote:
> I'm having a rather strange problem. I'm trying to compare two
> values. "01" and "1". The variables names that they are submitted
> under are pick1 and pick2. i use the following code
[...]
> I still get the error. Anyone have a
I am doing the same with the following code
$rec1=@mysql_fetch_object($result);
$image=$rec1->iurl;
$alt=$rec->mnam;
$array=GetImageSize("image/$image");
echo "";
and it works a charm.
Malouin Design Graphique wrote:
> Hello,
>
> My problem is that I have in the table below an URL (see $in
On Monday 12 February 2001 22:27, Curtis, Lorenzo wrote:
> I am trying to process a form using text/html and mail().
>
> The resulting email continues to have an ! inserted randomly
> into the email. Does anyone know how to avoid this??
Yes. Look through your code and find out where you're inser
Does anyone have examples of using PHP to process forms? I'd also like
to know if I can embed the code in my html file or do I have to write a
CGI server side script to do it?
Thanks,
Don
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additiona
These are really basic functions of PHP and you should probably start out
with some of the beginner tutorials found on php.net
--Joe
On Mon, Feb 12, 2001 at 04:54:30PM -0500, Don wrote:
> Does anyone have examples of using PHP to process forms? I'd also like
> to know if I can embed the code in
I don't think it's a bug in my code... I have gone through it
dozens of times and there are NO exclamation points...
__
Lorenzo Curtis
Website/Database Developer
prexar - internet and beyond
[EMAIL PROTECTED]
(207) 974-4334
-Original Message-
From: Ch
On Monday 12 February 2001 23:00, Curtis, Lorenzo wrote:
> I don't think it's a bug in my code... I have gone through it
> dozens of times and there are NO exclamation points...
Well, somewhere it has to come from, and PHP doesn't have an "insert
stuff into mails randomly" festure...
> On Monda
-Original Message-
From: Steve Haemelinck [mailto:[EMAIL PROTECTED]]
Sent: maandag 12 februari 2001 21:52
To: 'Steve Haemelinck'
Subject:RE: [PHP] XML Parsing The Sequel II
Ok, I solved the problems with my proxy, I can get the xml but I can not get
it completely.
Why?
When a form is submitted from an image (e.g. ) this will be passed in the
URL as paging.x=SOME_NUMBER.
If I try and access this variable as ${paging.x} in the subsequent PHP script
I get nothing.
How can I access this variable? all I want to do is test for it's existance ?
Simple as it seems ..
> When a form is submitted from an image (e.g. ) this
> will be passed in the URL as paging.x=SOME_NUMBER. If I try and
> access this variable as ${paging.x} in the subsequent PHP script
> I get nothing. How can I access this variable? all I want to do
> is test for it's existance ? Simple as
on 2/12/01 4:30 PM, Christian Reiniger at [EMAIL PROTECTED] wrote:
> On Monday 12 February 2001 21:08, Jesse Swensen wrote:
This should be a quick one, but I can't seem to wrap my brain around
it. All I need to do is replace leading or trailing spaces with
underscores. If there is
Hi,
I'm sending a form, with check-boxes, via post to PHP-script and if the
boxes are not checked they don't post value for its variable - Can I check
with a function if the variable is defined? (or should I focus on another
solution?)
Regards,
Sumarlidi Einar Dadason
SED - Graphic Design
I'm really struggling configuring the php mod with oracle 8i support on
Solaris 8.
./configure --enable-track-vars --with-o8ci=/export/home/oracle
--with-oracle --enable-sigchild --with-apxs
The ORACLE_HOME is set to /export/home/oracle.
I am getting an error:
checking Oracle Install-Dir...
+-
On Mon, Feb 12, 2001 at 11:21:45PM -, SED wrote:
> I'm sending a form, with check-boxes, via post to PHP-script and if the
> boxes are not checked they don't post value for its variable - Can I check
> with a function if the variable is defined? (or should I focus on another
> solution?)
php
Hi
all,
I've created a page
(see attached file) everything works fine in IE but once i check it in NN i get
nothing showing up, when i view the source code of the page i can see the full
code can any one offer me any suggestions as to why this is so...( I have check
all HTML and its all c
try:
isset($var);
return true is variable is set, false otherwise. Check www.php.net for more
info.
Reuben D. B
At 11:21 PM 2/12/01 +, SED wrote:
>Hi,
>
>I'm sending a form, with check-boxes, via post to PHP-script and if the
>boxes are not checked they don't post value for its variable -
In article
<[EMAIL PROTECTED]>,
[EMAIL PROTECTED] ("Curtis, Lorenzo") wrote:
> I don't think it's a bug in my code... I have gone through it
> dozens of times and there are NO exclamation points...
It may be in a variable or constant. Try doing a var_dump() or echo() on
each. If you're sti
if (isset($var))
> -Original Message-
> From: SED [mailto:[EMAIL PROTECTED]]
> Sent: Monday, February 12, 2001 6:22 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] How to check if vaiable is defined or not?
>
>
> Hi,
>
> I'm sending a form, with check-boxes, via post to PHP-script and if the
> I've created a page (see attached file) everything works fine
> in IE but once i check it in NN i get nothing showing up, when
> i view the source code of the page i can see the full code can
> any one offer me any suggestions as to why this is so...( I have
> check all HTML and its all corr
> I'm really struggling configuring the php mod with oracle 8i support on
> Solaris 8.
>
> ./configure --enable-track-vars --with-o8ci=/export/home/oracle
> --with-oracle --enable-sigchild --with-apxs
>
> The ORACLE_HOME is set to /export/home/oracle.
>
> I am getting an error:
>
> checking Oracle
Sounds like just what I need. Thanks, Ankur & Maxim.
Ankur Verma wrote:
> try using session variables.
>
> take a look at phplib if you are using PHP3 or
>
> http://www.php.net/manual/en/ref.session.php
>
> if you are using PHP4
>
> hope that helps
>
> Ankur Verma
> HCL Technologies
> A1CD, Sec
What exactly does
serialize/deserialize data
mean?
--
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, e-mail: [EMAIL PROTECTED]
rswfire,
This thread does not pertain to the php-general list anymore, nor was your
origional post. I personally emailed you OFF list and your reply was ON list
which didn't have any business with this anymore. This situation is between
you and me and i am happy to discuss anything which you would
Hello there,
I'm posting a username and a password with:
When I check $HTTP_POST_VARS I can see the values as they're plain text. Is
this still safe to do or should I encrypt the strings before posting them
between pages?
Thanks for your help.
-Original Message-
From: Brian V Bonini
I think you should encrypt (crypt).
On Tue, 13 Feb 2001, Marc Aragnou wrote:
> Hello there,
>
> I'm posting a username and a password with:
>
>
>
>
> When I check $HTTP_POST_VARS I can see the values as they're plain text. Is
> this still safe to do or should I encrypt the strings before po
Is there a script I can run to tell which version of PHP the
server is using to run it?
Details:
Two reasons I ask. One is if I have a client on an unfamiliar
server with bad or no documentation. Or to test when using
.htaccess to use the .phtml extension for php3 when the server
would normally
> Is there a script I can run to tell which version of PHP the
> server is using to run it?
http://uptime.netcraft.com/up/graph/
Enter the URL under "what's that site running?", and assuming PHP
has not been instructed to keep itself quiet on that box you'll
see the version.
Jason
--
Jason Mu
Make a file call it what ever you want (example: phpinfo.php) and write:
then run that script
Thank you,
Brandon Orther
WebIntellects Design/Development Manager
[EMAIL PROTECTED]
800-994-6364
www.webintellects.com
--
Does anyone have examples of using PHP to process forms? I'd also like
to know if I can embed the code in my html file or do I have to write a
CGI server side script to do it?
Thanks,
Don
--
What's your name
When the submit button is pressed, the value of the some_name input field is
How can I associate a list of checkboxes to a list of texfields?
if I had only several checkboxes I'd have:
Cb1
Cb2 ... etc...
but what if have:
Cb1 Cb2 http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL
can someone explain me how to use LOCK TABLES to subtitute transactions?
I don't seem to get how this is possible... and I really need this... I
have a script that updates 4 tables at a time, and I have to be sure all of
them are updated, or NONE... I can only see this possible using
commit/ro
My company is willing to pay for some assistance in helping us install:
PHP apache mod with oracle 8i functions on a Solaris 8 box.
Are there any takers?
--
Richard Bradley
CTO YourLink, inc.
(321) 452-6699
IM lagoonr
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
> Does anyone have examples of using PHP to process forms? I'd also like
> to know if I can embed the code in my html file or do I have to write a
> CGI server side script to do it?
>
> Thanks,
> Don
Here's a form processor :
foreach ($HTTP_POST_VARS as $key => $value) {
print "$k
http://www.thickbook.com/extra/index.phtml
Jeff Oien
> Does anyone have examples of using PHP to process forms? I'd also like
> to know if I can embed the code in my html file or do I have to write a
> CGI server side script to do it?
>
> Thanks,
> Don
>
--
PHP General Mailing List (http://w
I have written a regular expression that searches for any occurance of
src="*" in a html page and rewrites it so that it is equal to
src="http://www.whereever.com/images/filename.jpg" -
If there are five occurances of this match then it replaces them all. Is
there anyway to make it only run once.
Hi Guys,
Im looking for a way to parse a value from between two tags
This is what i want to return
Basically its simply a block of HTML from within a large HTML file.
Speed is definately a consideration in any solution.
Any ideas?
Cheers,
Mark
--
<< If I was a signature file, where would I
Right, this is also true
Cheers,
Maxim Maletsky
-Original Message-
From: Ben Peter [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 10, 2001 2:10 AM
To: Maxim Maletsky
Cc: 'Todd Cary'; [EMAIL PROTECTED]
Subject: Re: [PHP] echo vs print
Maxim Maletsky wrote:
> Anyway, " " compa
If you look closer, in PHP.INI you can find an alternative of your server.
In fact you can specify a completely different server to use in order to
send emails.
Cheers,
Maxim Maletsky
-Original Message-
From: Emmanuel Halphen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 4:
I've never done what you are saaying, but if I would have to, I would then
create a file with an exec() (in case there's nothing like that within PHP
build-in functions) and would run it from cron automatically.
Cheers,
Maxim Maletsky
-Original Message-
From: Michael Geary [mailto:[EM
hm... dunno how to answer ..
Yes you can process forms,
and you don't necessarily need any CGI to do that...
you know what?... Search on Goolge how to do it, or download and install
some relatively light PHP software and try to see it "deep inside"
Cheers,
Maxim Maletsky
-Original M
phpversion()
Cheers,
Maxim Maletsky
and, there's a very nice tip here: www.php.net/phpversion
Cheers,
Maxim Maletsky
-Original Message-
From: Jeff Oien [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 13, 2001 9:31 AM
To: PHP
Subject: [PHP] How To Tell Which v. PHP?
Is there a sc
subject says it all - any way to create a new folder in the filesystem?
regards,
andrew
--
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, e-mail: [EMAIL PROTECTED]
This should do the trick.
(.*)", $readfile, $output);
fclose($file);
echo $output[1];
?>
cheers,
Thor.
-Original Message-
From: Mark Green [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 12, 2001 6:06 PM
To: PHP General Mailing List
Subject: [PHP] Parse HTML Block
Hi Guys,
Im look
See :
http://www.php.net/manual/en/function.mkdir.php
Regards,
Philip
On Mon, 12 Feb 2001, andrew wrote:
> subject says it all - any way to create a new folder in the filesystem?
>
> regards,
> andrew
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail:
Hiya
Could some one please give me a step in the right direction,
I've created a simple login script that checks the data base against the
user name and password that the user has inputted in aform, i want to have
stored in the session their user name and password, as well as their email.
I can
"Brian V Bonini" <[EMAIL PROTECTED]> wrote:
> What exactly does
> serialize/deserialize data
> mean?
See the manual at http://www.php.net/manual/en/function.serialize.php.
Serializing is a way of storing values so that they retain their type and
structure. Session variables are stored in this wa
I have a need to use php similar to how I would bash when creating shell
scripts. I have two RH6.2 machines that have the same version of php
(slightly different compile-options). One machine in particular lacks the php
binary in /usr/local/bin and that's what I need to use php in a shell script
Hi,
Is there anything wrong with this code below?
Any help or fix to this code would be very much appreciated.
The file to get the data out (gif file):
");
printf("%s\n",
$row["indice_url"]);
}
?>
Here's the "tiny" table that feeds it:
-
"Christian Dechery" <[EMAIL PROTECTED]> wrote:
> How can I associate a list of checkboxes to a list of texfields?
> but what if have:
> Cb1 Cb2
> how would I associate each textfield to its checkbox? In the same array?
in
> a different one? How??
I would recommend generating these checkbox / te
"Malouin Design Graphique" <[EMAIL PROTECTED]> wrote:
> Is there anything wrong with this code below?
> Any help or fix to this code would be very much appreciated.
Let's take a look.
> $db = mysql_connect("www.server.com", "root", "password");
> mysql_select_db("db_name", $db);
> $sql = "select
On Tue, 13 Feb 2001 13:55, Malouin Design Graphique wrote:
> Hi,
>
> Is there anything wrong with this code below?
> Any help or fix to this code would be very much appreciated.
>
>
>
> The file to get the data out (gif file):
>
>
> /* data_out.php3 */
>
> $db = m
"Peter Houchin" <[EMAIL PROTECTED]> wrote:
> I've created a page (see attached file)
Oops! I believe attachments are blocked from this list. Send inline or
post a URL where we can look.
> everything works fine in IE but once
> i check it in NN i get nothing showing up, when i view the source c
Hi Tony
Did you happen to check the manual? :)
This will get you started:
./configure --with-your-required-options --enable-discard-path
- Original Message -
From: "Tony Bibbs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 13, 2001 1:18 PM
Subject: [PHP] Using php
On Tue, 13 Feb 2001 13:48, Tony Bibbs wrote:
> I have a need to use php similar to how I would bash when creating
> shell scripts. I have two RH6.2 machines that have the same version of
> php (slightly different compile-options). One machine in particular
> lacks the php binary in /usr/local/bi
I really need help with this.
I have written a regular expression that searches for any occurance of
src="*" in a html page and rewrites it so that it is equal to
src="http://www.whereever.com/images/filename.jpg" -
If there are five occurances of this match then it replaces them all. Is
th
hey all,
Was just wondering how to do the following:
So how does one correctly assign a variable to a variable inside a class withot doing
something like:
var $bar = '';
$this->bar = $foo;
Any insight would be much appreciated.
Regards
Joseph
--
PHP General Mailing List (http://www.php.
Yes SIR! Steve!
THIS IS WORKING NOW!
MANY... MANY... MANY... THANKS FOR YOUR CODE!
As a newbie... I have been working so hard on this one...
You noticed that I have a lot of reading to do...
Best regards,
Merci encore, (Thanks again,)
Yves
At 22:41 -0500 12/02/2001, Steve Werby wrote:
>"Ma
Have I lost something somewhere?
I have code which runs under PHP3.0.15, and PHP4.0.2 which references the
result of a
$row = mysql_fetch_array($result_of_query);
by doing things like:
$row["this_is_a_field_name"]
Seems simple, right?
Well - I compiled a new copy of Apache 1.
"Malouin Design Graphique" <[EMAIL PROTECTED]> wrote:
> THIS IS WORKING NOW!
> MANY... MANY... MANY... THANKS FOR YOUR CODE!
Glad to help!
> As a newbie... I have been working so hard on this one...
> You noticed that I have a lot of reading to do...
Everyone has to start somewhere. printf() i
> Was just wondering how to do the following:
>
> class Foo {
>
> var $bar = $foo; // causes parse error
> var $bar = "$foo"; // causes parse error
> var $bar = '$foo'; // works but $foo is not evaluated
>
> }
> ?>
>
> So how does one correctly assign a variable to a variable inside a class
witho
I'd be curious to see others' answers on this because I upgraded everything
the other day (been at php4 for a while though) and I don't have a problem
with the quotes.
On 2/12/01 11:11 PM this was written:
> Have I lost something somewhere?
>
> I have code which runs under PHP3.0.15, and PHP4.0
"Scott Brown" <[EMAIL PROTECTED]> wrote:
> I have code which runs under PHP3.0.15, and PHP4.0.2 which references the
> result of a
> $row["this_is_a_field_name"]
>
> Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1,
> and upgraded mysql to the new stable version at the same
"Scott Brown" <[EMAIL PROTECTED]> wrote:
> $row["this_is_a_field_name"]
>
> Seems simple, right?
>
> Well - I compiled a new copy of Apache 1.3.17, pushed PHP up to 4.0.4pl1,
> and upgraded mysql to the new stable version at the same time...
>
> Now the above code doesnt work. But if I do a:
For
On Mon, 12 Feb 2001 20:11:14 -0800
Joe wrote:
JC>
JC> I was curious too, so I looked it up. Seems you can't. From
JC> http://www.php.net/manual/en/language.oop.php
JC>
JC> "Note: In PHP 4, only constant initializers for var variables are
JC> allowed. Use constructors for non-constant initia
Great program man!
Carlos
"Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:...
> Hey everyone,
>
> I just released phpdoc v2.0, which is a program used to document PHP
class
> definitions.
> This version is a complete rewrite of v1.0, and takes a different approach
> to creating
> So how does one correctly assign a variable to a variable inside a class withot
>doing something like:
>
> var $bar = '';
> $this->bar = $foo;
>
That's how you have to do it.
class MyClass {
var $bar;
// This is the class's constructor
sub MyClass () {
Hi - I want to print a list of numbers linked to URLs I create on the fly -
something like this:
table:
---
pathpid
-|-
foo.jpg 1
bar.jpg 1
$count; $currrent_row = mysql_fetch_row($result); ++$i;)
{
$path=$current_row[2]"; //database fiel
Sorry, I got this from a user. Didnt mean to send to newsgroup
> Great program man!
>
> Carlos
>
>
> "Christian Calloway" <[EMAIL PROTECTED]> wrote in message news:...
> > Hey everyone,
> >
> > I just released phpdoc v2.0, which is a program used to document PHP
> class
> > definitions.
> > This
Hi,
I'm wondering what're the best classes available for reading/
sending emails?
I want to do a webmail solution (for myself at first), and don't want
to use IMP. I'd need to be able to handle attachments as well.
Any pointers?
Cheers,
Gfunk - http://www.gfunk007.com/
I
> Forgot to ask - does referencing an array with double quotes
> around the key work for arrays not associated with a MySQL
> result? I doubt it's specific to MySQL result arrays, but
> it doesn't hurt to check. Make a small array and test.
I grabbed an example of of php.net dealing with just
On Mon, 12 Feb 2001 23:44:08 -0500 (EST)
Sean wrote:
SC>
SC> That's how you have to do it.
SC>
SC>
SC> class MyClass {
SC> var $bar;
SC>
SC> // This is the class's constructor
SC> sub MyClass () {
SC> $this->bar = $foo;
SC> }
SC> }
I didn't think php had sub routi
>
> I'd be curious to see others' answers on this because I
> upgraded everything
> the other day (been at php4 for a while though) and I don't
> have a problem
> with the quotes.
>
I've probably just putzed something somewhere during the build it's
been one of those days.
But the thing i
Hi!
How to get this to work for every month:
$tomorrow = date ("d", mktime(0,0,0,0,date("d") +4 ) );
echo "Today + 4 days is $tomorrow ";
screws up Feb et al
Thanks,
Christopher C. M. Allen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMA
> SC>
> SC> That's how you have to do it.
> SC>
> SC>
> SC> class MyClass {
> SC> var $bar;
> SC>
> SC> // This is the class's constructor
> SC> sub MyClass () {
> SC> $this->bar = $foo;
> SC> }
> SC> }
>
> I didn't think php had sub routines like perl? shouldn't that be:
>
> function MyClass(){
>
On Tue, 13 Feb 2001 15:24, andrew wrote:
> Hi - I want to print a list of numbers linked to URLs I create on the
> fly - something like this:
>
> table:
> ---
> pathpid
> -|-
>
> foo.jpg 1
> bar.jpg 1
>
>
> include("db_connection_params.inc"); //al
I'm having problem with Netscape6 does not resend valid POST data to PHP.
Netscape is waiting until connection timeout. If I hit stop button, it logs
warning message attached to this mail. (These forms work fine with IE5.x,
NN4.5)
To find out what's wrong, I made a very simple form. With this simp
David, Theo,
Got it working - much thanks for your help!!
regards,
andrew
On 2/13/01 12:05 AM, "David Robley" <[EMAIL PROTECTED]>
wrote:
> On Tue, 13 Feb 2001 15:24, andrew wrote:
>> Hi - I want to print a list of numbers linked to URLs I create on the
>> fly - something like this:
>>
>> tab
On Mon, 12 Feb 2001 21:04:30 -0800
Joe wrote:
JC> Is this closer to what you were looking for?
JC> - Joe
JC>
JC>
JC> class Foo {
JC>
JC> var $bar;
JC>
JC> function mymethod(){
JC>
JC> global $foo;
JC> $this->bar = $foo;
JC>
JC> }
JC>
JC> }
JC>
JC> $foo = "hello world";
JC>
JC> e
"Scott Brown" <[EMAIL PROTECTED]> wrote:
> I grabbed an example of of php.net dealing with just arrays and it works
...
>
> Here's what I'm seeing - THIS WORKS:
> while ( $row = mysql_fetch_array($rslt) )
> {
> echo "\n";
> echo "$row[ID]";
> But
Hi,
Can you have a SELECT statement (using mysql) that goes something like
$sql="SELECT id && email FROM table WHERE user='$user' and pass='$pass'";
and if you can't is there a away around this?
Thanks
Peter
Assuming you want to select both id and email from table, use commas :
SELECT id,email FROM ...
Also, check out this basic SQL tutorial :
http://www.sqlcourse.com/
It's fairly useful.
regards,
Philip
On Tue, 13 Feb 2001, Peter Houchin wrote:
> Hi,
>
> Can you have a SELECT stateme
Okay, im a little stumped. I have been asked to use a formula which
calculates Monthly Repayments on a mortgage loan. The formula I have been
given is
M = P * ( J / (1 - (1 + J) ** -N))
My problem is, the last part. It explains it in english as "then take that
to the -N (minus N) power"
My p
On Tue, 13 Feb 2001 16:00, Peter Houchin wrote:
> > Hi,
>
> Can you have a SELECT statement (using mysql) that goes something like
>
> $sql="SELECT id && email FROM table WHERE user='$user' and
> pass='$pass'";
>
> and if you can't is there a away around this?
>
> Thanks
>
> Peter
In SQL queries
you can set the maximum execution timeu using either the
max_execution_time = 30 ; Maximum execution time of each script, in
seconds
setting in php.ini
or can set it at runtime for a script using the set_time_limit() function
check the php manual for more details.
hope that helps
Ankur
use stripslashes on the data being posted.
for ex if the text field name is varText
use $varText=stripslashes($varText)
That should take care of it
regards
Ankur Verma
HCL Technologies
A1CD, Sec -16
Noida, UP
India
- Original Message -
From: "John P. Donaldson" <[EMAIL PROTECTED]>
T
ok I've changed my code to
$sql = "SELECT id, email FROM users WHERE user='$user' and pass='$pass'";
but still no joy can any one suggest why?
(& Yes email is a field in the table)
Peter
> Hi,
>
> Can you have a SELECT statement (using mysql) that goes something like
>
> $sql="SELECT
> Okay, im a little stumped. I have been asked to use a formula which
> calculates Monthly Repayments on a mortgage loan. The formula I have been
> given is
>
> M = P * ( J / (1 - (1 + J) ** -N))
>
> My problem is, the last part. It explains it in english as "then take that
> to the -N (minus N) p
A possible way to find out :
$result = mysql_query($sql) or die(mysql_error());
Does it say anything? mysql_error() is your friend, it can be printed
anywhere within the script and will print the last mysql error. So
perhaps :
print mysql_error();
Right before the query or ...
Regar
try using the SMTP class from the Kazzam Intranet Email system which I have
attached with the email.
Also, you can download the complete intranet web email application from
http://myprojects.cjb.net/ and take a look at the code for sending mail that
uses this class instead of sending the email
h
On Tue, 13 Feb 2001 16:09, Chris Aitken wrote:
> Okay, im a little stumped. I have been asked to use a formula which
> calculates Monthly Repayments on a mortgage loan. The formula I have
> been given is
>
> M = P * ( J / (1 - (1 + J) ** -N))
>
> My problem is, the last part. It explains it in eng
On Tue, 13 Feb 2001 16:20, Peter Houchin wrote:
> ok I've changed my code to
>
> $sql = "SELECT id, email FROM users WHERE user='$user' and
> pass='$pass'"; but still no joy can any one suggest why?
>
> (& Yes email is a field in the table)
>
> Peter
>
> > Hi,
> >
> > Can you have a SELECT stateme
101 - 200 of 213 matches
Mail list logo