"Joseph Blythe" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
000801c10f42$9912f860$3e060bd2@binarylogic">news:000801c10f42$9912f860$3e060bd2@binarylogic...
> Hey,
>
> Was just wondering if it was better practice to unregister session
variables
> before writing new values to them or if it was fine to
In article <000b01c10f4a$d569c5c0$0300a8c0@sparlak>,
[EMAIL PROTECTED] (Philip Murray) wrote:
> In Perl you can do this:
>
> $foo =~ tr/012/mpf/;
>
> Which is the same as:
>
> $foo = str_replace("0", "m", $foo);
> $foo = str_replace("1", "p", $foo);
> $foo = str_replace("2", "
hi jack,
the easiest way for you to do this is by using javascript. do somethins
like:
mailto:[EMAIL PROTECTED]"; onClick="countClick()">Big
George
and have a javascript function like:
function countClick()"= {
...do stuffs
}
i dont know if you can embed php in javascr
Yes, that is the point here. We normally use variables from php to do
something in php function, how could we use javascript variables to do
something in php function?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
- Original Message -
From: halmi yasin <[EMAIL PROTECT
Check the list archives - this question gets posed quite often.
--zak
- Original Message -
From: "Jack" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 1:38 PM
Subject: Re: [PHP] count number of email sent to us
> Yes, that is the point here. We normally use
select count(*) from test1
where
MINUTE(tm1) >= 15
and
MINUTE(tm1) <= 30
and
HOUR(tm1)=12
this query will return you on column containing how many record found in
that time range, same as how many customers where surfed at that time
where 30-15=interval
and 12 is the hour you're checking in!
"D
select count(*) from test1
where
MINUTE(tm1) >= 15
and
MINUTE(tm1) <= 30
and
HOUR(tm1)=12
this query will return you on column containing how many record found in
that time range, same as how many customers where surfed at that time
where 30-15=interval
and 12 is the hour you're checking in!
"D
Sorry, It is mistyping here. I mean, we normally use variables from php to
do something in javascript function. But how could we use value from
variables in javascript function to do something in php function?
Jack
[EMAIL PROTECTED]
"Love your enemies, it will drive them nuts"
- Original Messa
The whole string
"Paul A. Procacci" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Hey all,
> I tried passing an argument to a php script that had a plus sign (+)
> in one of the arguments. Observe the following:
>
>
> http://altavista.com/sites/se
Anyone have functions for formatting numbers being multiplied by variables
and whatnot to two decimal points - rounded up? As for displaying total
cost, etc?
_
Get your FREE download of MSN Explorer at http://explorer.msn.com
--
This function that matt sent to automatically write hidden inputs is
awesome. it works great. I am only using the first function.
It's a great solution.
thanks
Original Message Follows
From: "maatt" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: [PHP] passing variables from form
Both topics are covered frequently :)
--zak
Jack wrote:
> Sorry, It is mistyping here. I mean, we normally use variables from php to
> do something in javascript function. But how could we use value from
> variables in javascript function to do something in php function?
--
PHP General Maili
foreach ($array as $key=>$element)
{ if (your_condition) echo("{$array2[$key]} $element");
}
this is a general solution, but in your case why do you need to use the
array with lastname as the element, why not just test the keys of the first
name array, i.e.
foreach ($array2 as $key=>$elemen
On Wed, 18 Jul 2001 17:21, Tim Olsen wrote:
> Anyone have functions for formatting numbers being multiplied by
> variables and whatnot to two decimal points - rounded up? As for
> displaying total cost, etc?
PHP has :-) have a look at the mathematical functions.
http://www.php.net/manual/en/ref.
argv
Array of arguments passed to the script. When the script is run on the
command line, this gives C-style access to the command line parameters. When
called via the GET method, this will contain the query string.
argc
Contains the number of command line parameters passed to the script (if run
I am working with php and mysql and have the need to write a query like:
$sql_statement=mysql_query(" select * from table where column='string' ");
What comes out is:
select * from table where column=\'string\'
mysql doesn't like this one bit and I get the dreaded:
"Warning: Supplied ar
How do I stop a previous page being repeated when the
user hits their back button on the browser?
Is PHP can do it?
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
--
PHP General Mailing List
> I am working with php and mysql and have the need to write a query like:
>
> $sql_statement=mysql_query(" select * from table where column='string' ");
>
> What comes out is:
>
> select * from table where column=\'string\'
Only if you pass that variable through a GET/POST/COOKIE operation a
Hello.
I want to use a NEWSLETTER for my web site .
I have 2 servers
Server A:
qmail,php-4.0.5,apache,courier/imap,mysql
server b:
sendmail,php4.0.2,apache,cyrus/imap,mysql
In server A when i am trying to send a newsletter i have the following
error:
Warning: mail() is not supported in this PH
http://php.net/number_format
> -Original Message-
> From: Tim Olsen [mailto:[EMAIL PROTECTED]]
> Sent: 18 iulie 2001 10:52
> To: [EMAIL PROTECTED]
> Subject: [PHP] formating numbers to two decimal points - money - best
> ways
>
>
> Anyone have functions for formatting numbers being m
Hi
Using PHP, how can i check my mail and dump it to a text file?
As if email2text ?
--
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]
Hi Luiz!
On Tue, 17 Jul 2001, Luiz Fernando (Tuca) wrote:
> Somebody know how it is the management of memory by PHP?
>
yes, it's quite well done :)
what exactly are you interested in?
-- teodor
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
Thank you
"Elias" <[EMAIL PROTECTED]> skrev i melding
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> select count(*) from test1
> where
> MINUTE(tm1) >= 15
> and
> MINUTE(tm1) <= 30
> and
> HOUR(tm1)=12
>
> this query will return you on column containing how many record found in
> that time ra
I would like to know like is the management, that recourses the php utlize.
I am making a work to university and I need of more information.
I find in www.zend.com a article about Reference Counting, but i stayed
confuse, if o recourse is of PHP 4 or of
ZEND Engine..
Thanks
Luiz Fernando
<[EMA
i have in a server PHP 4.0.2 version and a function (mail) is working
perfectly.In the version PHP 4.0.5 i have problems.How can i unintall the
4.0.5 to install 4.0.2?
Do i just go to the sourcer directory of the 4.0.2 and give the ./configure
command?
__
În 18 Jul 2001 14:59:21 +0300 Constantine Koulis a scris:
> i have in a server PHP 4.0.2 version and a function (mail) is working
> perfectly.In the version PHP 4.0.5 i have problems.How can i unintall the
> 4.0.5 to install 4.0.2?
Unfortunatelly php doesn't have the classic make uninstall
You c
Hi,
Is there some way to include HTML tags in a XML doc???
I want to use a XML document to include HTML data for my
webpage. I have made a solution of replacing a special word to
the '<' and '>" of a HTML tag.
But I think my solution is very stupid.
And is there a special php xml newsgroup??
tha
> Is there some way to include HTML tags in a XML doc???
Yes, if your HTML is wellformed -> XHTML
> And is there a special php xml newsgroup??
http://www.onlamp.com/pub/a/php/php-xml-ml.html
Bye
Jens
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED
I post this yesterday, but no one responds. Please someone help. I wonder if
my problem is actually a bug in php or cron.
--
Hello,
I have a php script that connect to database and retrieve something, or do
something with the db.
I can run the script fro
I would gather the output from phpinfo() for each case (web server & cron
job) and compare them. Often a path or environment variable will be
different. This is especially true of Oracle which is somewhat fussy about
having it's environment set properly in order to connect.
- Tim
http://www.p
hi,
here's a little question. I like to know what is better and WHY ??
$string = "bla bla $somevar bla bla bla $somevar$somevar bla";
of
$string = "bla bla ".$somevar." bla bla bla ".$somevar.$somevar." bla";
kind regards
Jeroen Olthof
--
PHP General Mailing List (http://www.php.net/)
To
hi
can I use $PHP_AUTH_USER
as a global variable?
I'm having a hard time with it in my other pages.
--
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 P
Johan,
As the PHP documentation points out in "Function Reference: LDAP
functions":
"...You will need to get and compile LDAP client libraries from either
the
University of Michigan ldap-3.3 package or the Netscape Directory SDK
3.0. You will also need to recompile PHP with LDAP support enabled
Jeroen,
I guess it depends on your coding style and preference. Functionally,
they do the same thing. First line is easier to read while the second
line requires more typing.
One note. This will not work (using an associative array):
"bar");
$string1 = "bla bla $somevar[1] bla bla bla $somevar[
Hello,
I ame facing a cookies problem with with Internet Explorer
I issue the following command to set the cookie:
setcookie( $cookie_name, $cookie_value, time()+15768, "/",
".mydomain.gr", 0 )
The page that sends the cookie is in an IFRAME inside the main
browser's window. The domain in the
I have a table that looks like
Name | Type | X | Y
Foo| Ship | 9 | 29
Bar| Base | 9 | 29
Is there any way I can write a query that selects
everything with Type = Base, and X and Y = Foo's X and Y?
ie
"Select * from table where type = Base and X = {Foo:X} and Y = {Foo:Y}";
Anyway, a
Is there any way for php to call a perl module? If so, would I need to do
some sort of include (like the Perl "use THIS;")? I don't know if this
can even be done, but thanks in advance.
Jessica
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For ad
I am running php4/mysql/apache in a large NT complex, behind a firewall.
How can I authenticate users to my site using NT authentication? Has anyone
done this?
thanks,
Warren Vail
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Hello,
Manual and news group search returned to result on this topic. (or May
be I miss something.)
The objective : to be able to identify (print, compare, etc.) variable
name as a String to be able to override class method based on variable
name. Variable will be an associative array.
Conside
Reference counting works in the following way.
Normally, if you assign an identifier to the value of an instantiated object
then the parser will create a copy of that object. That is, the parser will
allocate a physical chunk of memory of the relevant size and copy the memory
contents of the origi
I would like to store a mix of php and html in a database and then return
the results. I can't figure out how to do this.
$abc='' ;
...
$Message="Hello World" ;
...
echo eval ($abc) ;
where $abc is actually retrieved from a database.
Does not work, but may illustrate what I am trying to accompi
Hi,
Does anyone know if there is a Windows distribution with a sendmail.c that
actually works when using Bcc and/or Cc headers?
TIA!
Met vriendelijke groet / With kind regards,
ICL Nederland B.V. Simon de Kraa
e-Applications / Logistic Systems Systems Architect
Het K
> One note. This will not work (using an associative array)
Whoops. I should have tested my script before posting it...correction:
"bar");
$string1 = "bla bla $somevar[0] bla bla bla $somevar["foo"]$somevar[0]
bla";
$string2 = "bla bla ".$somevar[0]." bla bla bla
".$somevar["foo"].$somevar[0]."
Hello
i tried to use the FTP functions of PHP.Then, i've compiled PHP-4.0.6 with
the "--enable-ftp" option under Linux RedHat 7.1.
but the connexion script doesn't under Linux.
I've tried the same under Zindows and it works very well !
:-))
i need some help ...
friendly
Jean-Charles Preaux
Hi all,
Can anyone tell me if a mySQL table column of type 'varchar' can be set to
auto increment. If it can would 'abc123' automatically increment, if so in
what order... ie, would it increment like so: 'abc124 ,
abc125...abc999, abd000.'
Or does 'auto_incremement' only work on
I've been reading on php.net about the strip_tags function, and it seems that many
people have been writing their own function. Is this because a malicious user could
put something like Long message... or would strip_tags prevent this?
What do you think of strip_tags() vs writing your own func
Yes you can send javascript stuff to php, juste use a form
function whatever(){
document.test.click.value= nomberofclick;
document.test.submit();
}
or something like that and $click will have the number of click in
xy.php
I'm not sure if this is good, can someone double check?
Jac
>Can anyone tell me if a mySQL table column of type 'varchar' can be set to
>auto increment.
Nope.
>Or does 'auto_incremement' only work on integers?
Yep.
mit freundlichen Gruessen / yours sincerely
Gunther E. Biernat
Web Application Engineer
__
It's failing becuase $abc is not valid PHP code, but is HTML.
to get eval to work correctly, only pass it valid PHP code.
This will print "Hello World";
$abc = '
print "$Message";
';
$Message="Hello World" ;
eval ($abc) ;
If you want to output HTML, enclose it within
a print "" statement, or
In html, I can do
How do I do this in PHP?
Thanks,
Jessica
--
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]
u
$TITLE = "some title here";
> -Original Message-
> From: jessica lee tishmack [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 11:28 AM
> To: php
> Subject: [PHP] set var in PHP
>
>
> In html, I can do
>
>
>
> How do I do this in PHP?
>
> Thanks,
> Jessica
>
>
> In html, I can do
>
I've actually never seen this in html...
> How do I do this in PHP?
but is this what you are talking about?
$TITLE = "some title here";
? Or am I missing something?
Or perhaps you want to keep it an html thing...
echo "";
?
Chris
--
PHP General Mailing List (ht
Thanks for the prompt replies...but I think I should clarify...
In regular html, I would do this:
and header.html would have in it (among other things):
So, the title of the webpage would be "some title here"...
How can I accomplish the same thing in PHP?
Thanks,
Jessica
--
PHP Gen
i was wondering this too what happen to
some title here
reminds me of MIVA script or one of the build in things maybe (gulp) a
front page thing?
anyways i suspect that
$TITLE = "some text here";
is what you want
- Original Message -
From: "Chris Boget" <[EMAIL PROTECTED]>
To: <[EMA
http://php.net/manual/en/function.strpos.php
-Original Message-
From: Joseph Bannon [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:46 AM
To: PHP (E-mail)
Subject: [PHP] string search
I need a search function (if statement) that performs a search on a
string
and if the string c
- Original Message -
From: "jessica lee tishmack" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:50 PM
Subject: [PHP] set var in PHP clarified
> Thanks for the prompt replies...but I think I should clarify...
>
> In regular html, I would do this:
>
>
hi
I wanna see how long my scripts load. So, i copied this script from
phpbuilder
---
--
But i am not sure where to put that part. Can i put it anywhere within my
script? And bcsub() is not install on my server. What other fuctions can i
use? can i just use $endtime-$starttime?
You would do
or
$title";
?>
Hope that helps
Sheridan
- Original Message -
From: jessica lee tishmack <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:50 AM
Subject: [PHP] set var in PHP clarified
> Thanks for the prompt replies...but I think I shoul
Under RedHat 7.1, if you installed apache and php from the RPMs, you
should not have to change anything, other than maybe telling it to serve
up index.php pages.
The thing about MySQL from the RPM under that distro is that the server
is not started by default... if you haven't already, use 'chkco
Why don't you explode(";",$header); ??
Ben
-Original Message-
From: Adrian D'Costa [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 14, 2001 2:54 AM
To: php general list
Subject: [PHP] REGEXP
Hi,
I am trying to capture the Header from a mail for my webmail using php
and
pop3. The head
echo '<'."?xml version=\"1.0\" encoding=\"UTF-8\"?".'>';
Also, you may set short open tags off so php is only activated between
.
--
Julio Nobrega.
Because happiness is a warm gun
Bang-bang shoot-shoot
"Daniel Rose" <[EMAIL PROTECTED]> wrote in message
004301c10f49$a9b18fe0$0a01a8c0@w98"
Hello,
I am trying to make shure the amount is positive
and is a float. (format: $$$.$$)
if( $amount == "" && !is_float( $amount ) && !eregi( "^[_a-z]", $amount ) ){
print "Error";
}
this code does not work when I the input is -25.00
What could be wrong?
py
p.s. I read what I could on regul
Look at a folder named 'Benchmark' that comes with php's PEAR. It has a
file named Time.php, and it has nice instructions about how to use it.
--
Julio Nobrega.
Because happiness is a warm gun
Bang-bang shoot-shoot
"McShen" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAI
This is all better now.
I compiled with libmcrypt and php-4.0.6 at the same time, so I'm not sure
exactly which caused the fix, but it works now. Also, the perl module I
was using seemed to generate "apache stype" md5 hash, which is another
reason why authenticating with postgres and md5 hashes
Hello,
it isn't regular html, it is only server-parsed stuff .. Server Side
Includes.
You won't need that in PHP, just do:
blah blah blah ..
SSL
On Wed, 18 Jul 2001, jessica lee tishmack wrote:
> In html, I can do
>
>
>
> How do I do this in PHP?
>
> Thanks,
> Jessica
>
>
> --
> PHP
try using the attached class.
start();
// some code
$time->stop();
$total = $time->gettime();
echo $total;
?>
-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:08 AM
To: [EMAIL PROTECTED]
Subject: [PHP] please help.
hi
I wanna see how long
ok thx
"Michael Geier" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> try using the attached class.
>
> $time = new timer;
> $time->start();
>
> // some code
>
> $time->stop();
> $total = $time->gettime();
> echo $total;
> ?>
>
> -Original Message-
> F
Ok, never got a reply yesterday, so I figured I'd resend this. can this even be
done?
__
How can I pull my data from my SQL db, and store it as a string so that it can be
used? Specificly, I'm working with images.
When the images are stored in the database,
Mr. Tejano:
Aetna/Box 60578/LA, CA 90060-00578
457-74-9048/02 Warren Vail
Group 8--40-010-2
Thank you for clearing this up.
-Original Message-
From: Jonathan Tejano [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 7:02 AM
To: 'Warren Vail'
Subject: RE: bill
Thank you
There's also http://www.aditus.nu/jpgraph/ (never used it)
On Tue, 17 Jul 2001, Rasmus Lerdorf wrote:
> I like Vagrant. See http://vagrant.sourceforge.net
>
> -Rasmus
>
> On Wed, 18 Jul 2001, Chris Aitken wrote:
>
> > Hi everyone..
> >
> > Just wondering if anyone can suggest any methods, or e
oopsie.
- Original Message -
From: "Danielle Forestier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 10:02 AM
Subject: [PHP] RE: bill
>
>
> Mr. Tejano:
>
> Aetna/Box 60578/LA, CA 90060-00578
> 457-74-9048/02 Warren Vail
> Group 8--40-010-2
>
> Thank
Hi all, I want to print all the text stored in a tag. For example:
Hello
World
Again!!!
This is the final select, but is created dinamically with javascript.
So when the sumbit button is pressed, I want that my php script output the folowing:
The number of options is: X(3 in that exampl
Hello everybody
The below code is going crazy..and doing the reverse
thing...
when the value of $check!="" for example still it
shows thankyou.html page. But if I reverse the code
meaning if($check!="") then insert into database..it
doesn't do that it does the reverse thing. Is
something wrong
I have created a php page that accepts a variable called $file using GET. It
then displays this in a textarea box. You can then edit the file and click a
button to save it and it POSTS it to the same page (edit.php) on the server.
This works but it adds slashes before any speech marks (""). Can so
if i have four drop down menus with five values in
each, and the values are the same for each of the four
drop down menus, how many variations are there without
duplicates, any dups,
I though the formula was 5 to the 4th power minus 5,
this can't possibly be right.
math impaired and trying to
Greetings,
I am developing an
application that will access a MySQL database remotely from another
server. I would like to be able to use a standard database connection
using the 3306 port if possible for ease of development, but I certainly do not
want to be sending unencrypted data betwe
Dhaval,
Without looking into this further, the one thing that stands out to me
(I am pretty sure) is the fact that mysql_num_rows() returns an int. So
testing for "" (empty string) is not going to work. Try instead:
...
if ($check != 0)
...
-Jeremy Maziarz
Email: [EMAIL PROTECTED]
--
PHP Ge
Hey all,
was curious if anyone has had experience with limiting the amount of text
pulled from a database and placing a link and the end of the excessive text
line.
ie. the description of a product could be 800 characters long, how can it be
shortened to 50 -100 characters with a link to "read mor
HI
I'm using
require("whatever.php")to access my variables...it works.
The problem is my "whatever.php" page shows up on top of my current page.
Is there a simple clear screen I can use???
I tried include and the same thing happens. What do I do?
--
PHP General Mailing List (http://www.ph
Do you mean if the user selects a single value from each of the four
dropdowns, but never chooses a value that has already been selected in a
previous dropdown? If so, then there are 5 possible choices from the first
list, 4 from the second, etc. So, 5*4*3*2 = 120.
Kirk
> -Original Message--
is whatever.php file encloded in php tags? sounds like it is interupting it
as texted. i didnt test this theory so dont kill me if i am wrong. but it
is a guess
- Original Message -
From: "Jeremy Morano" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 12:53 A
I think that SSL is the more transparent choice.
Cheers.
On Wed, Jul 18, 2001 at 11:38:19AM -0600, Matthew Aznoe wrote:
> Greetings,
>
> I am developing an application that will access a MySQL database remotely
> from another server. I would like to be able to use a standard database
> connect
Did you make sure you had the tags in the whatever.php enclosing the
content?
--
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]
Hiya everybody,
I'm relatively new to PHP and I'm looking for a good text editor on
win2k for creating/manipulating php pages. Notepad is great if your in a
bind, and I've tried phpedit and activestate's Komodo and both seem to have
problems (crashing etc...). Anybody got any suggestions? Free
Greetings,
I have seen hints at the SSL functionality in MySQL, but I have not been
able to find any documentation on how exactly I am supposed to use it. Does
this require special processing on the PHP end of things to activate an SSL
connection to the database?
Matt
-Original Message
yea, make your whatever.php as a php file. that happened to me before. :)
"Chris Schneck" <[EMAIL PROTECTED]> wrote in message
002101c10fb4$252cafa0$[EMAIL PROTECTED]">news:002101c10fb4$252cafa0$[EMAIL PROTECTED]...
> Did you make sure you had the tags in the whatever.php enclosing the
> content
ConTEXT...free, simple, can load HUGE files.
http://www.fixedsys.com/context/
Tyler
- Original Message -
From: "doug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 1:16 PM
Subject: [PHP] a good PHP editor
> Hiya everybody,
> I'm relatively new to PHP a
Hello everyone,
I've been writing database enabled site for quite a while now. One thing I
have never figured out it how to determine if a sql query is successful.
This works:
if ($connection = mysql_connect("host","username","password")) {
print "Successful connection":
}
else {
print "No
I like ultraedit32 http://www.ultraedit.com Although it isn't free, the
price is reasonable.
-
Phil Spitler [Vice President]
Web Hut Design, Inc.
c 704-451-1324
mailto:[EMAIL PROTECTED]
> -Original Message-
> From: doug [mailto:[EMAIL PROTECTED]]
> Sent: Wedne
www.textpad.com - very nifty for PHP and more...
- Original Message -
From: "doug" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, July 19, 2001 2:16 AM
Subject: [PHP] a good PHP editor
> Hiya everybody,
> I'm relatively new to PHP and I'm looking for a good text editor o
did you missplace an echo or printf somewhere?
- Original Message -
From: "Jeremy Morano" <[EMAIL PROTECTED]>
To: "chris schneck" <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 11:23 AM
Subject: RE: [PHP] whatever.php
> I checked and double checked... its in the tags
>
> -Origi
> -Original Message-
> From: Tyler Longren [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 1:25 PM
> To: php-general
> Subject: [PHP] sql query successful
>
>
> I've been writing database enabled site for quite a while
> now. One thing I have never figured out it how to det
I believe you should use the error function for the database you're using to
check for failed queries. If you're using MySQL (which it appears that you
are), you would do something like this:
$sql = mysql_query("SELECT * FROM table ORDER BY rand()");
if(mysql_error())
echo "SQL not exec
What about when DELETING from a table??? It always returns true.
Example...the highest ID in this table is 10:
We try to delete the bulliten with id of 1212, but there is not bulliten
with that ID, and it says "Successful".
I know I could use mysql_affected_rows(), but why doesn't this work??
Dear [EMAIL PROTECTED],
Only reading through this will allow you to decide for yourself if you've found
something worthwhile.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-
Dear Friend & Future Millionaire:
AS SEEN ON NATIONAL TV:
Making over half mi
Tyler Longren pressed the little lettered thingies in this order...
> Hello everyone,
>
> I've been writing database enabled site for quite a while now. One thing I
> have never figured out it how to determine if a sql query is successful.
>
> This works:
> if ($connection = mysql_connect("hos
Would you give the same advice if it were Zend Cache? Show some respect,
please.
/* Chris Lambert, CTO - [EMAIL PROTECTED]
WhiteCrown Networks - More Than White Hats
Web Application Security - www.whitecrown.net
*/
- Original Message -
From: Maxim Maletsky <[EMAIL PROTECTED]>
To: 'doug'
Ok I downloaded and looked at a few and the winner seems to be
edit+.Thanks everybody!
Doug Henry
- Original Message -
From: "Chris Lambert - WhiteCrown Networks" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 18, 2001 1:42 PM
Subject: Re: [PHP] a good PHP editor
> -Original Message-
> From: Christopher Ostmo [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, July 18, 2001 2:43 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] sql query successful
>
>
> Your statement above is checking to see if the fact that $sql
> is equal to mysql_query("SELECT * FR
Tyler Longren pressed the little lettered thingies in this order...
> What about when DELETING from a table??? It always returns true.
> Example...the highest ID in this table is 10:
>
> if ($connection = mysql_connect("localhost","mysql","mysql")) {
> print "Connection established";
>
1 - 100 of 203 matches
Mail list logo