I'm running php 5.1.6 with mysql 5.0.45 on CentOS 5.3 box trying to
loop through a while statement to send about 3000 email using
phpmailer. It's worked well in the past but after an upgrade it seems
to be timing out now after 200-300 emails over 1 minute or two. I've
added
have u checked max_execution_time
Chaitanya
On Fri, Apr 9, 2010 at 7:17 PM, Stephen Sunderlin
stephen.sunder...@verizon.net wrote:
I'm running php 5.1.6 with mysql 5.0.45 on CentOS 5.3 box trying to loop
through a while statement to send about 3000 email using phpmailer. It's
worked
: Chaitanya Yanamadala dr.virus.in...@gmail.com
Date: Fri, 09 Apr 2010 19:26:22
To: Stephen Sunderlinstephen.sunder...@verizon.net
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] mysql/php time out issue
have u checked max_execution_time
Chaitanya
On Fri, Apr 9, 2010 at 7:17 PM, Stephen Sunderlin
@lists.php.net
Subject: Re: [PHP-DB] mysql/php time out issue
have u checked max_execution_time
Chaitanya
On Fri, Apr 9, 2010 at 7:17 PM, Stephen Sunderlin
stephen.sunder...@verizon.net
mailto:stephen.sunder...@verizon.net wrote:
I'm running php 5.1.6 with mysql 5.0.45
dr.virus.in...@gmail.com
mailto:dr.virus.in...@gmail.com
Date: Fri, 09 Apr 2010 19:26:22
Cc: php-db@lists.php.net mailto:php-db@lists.php.net
Subject: Re: [PHP-DB] mysql/php time out issue
have u checked max_execution_time
Chaitanya
On Fri, Apr 9, 2010 at 7:17 PM, Stephen
Hi List,
I'm experiencing the problem as described at
http://forums.mysql.com/read.php?37,39779,136287#msg-136287
I'm using the following script to test:
?php
$p = 0;
$n = 0;
for ($i = 0; $i 120; $i++) {
$conn = mysql_connect(www.myserver.org, user, secret);
if ($conn) {
YVES SUCAET wrote:
Hi List,
I'm experiencing the problem as described at
http://forums.mysql.com/read.php?37,39779,136287#msg-136287
I'm using the following script to test:
?php
$p = 0;
$n = 0;
for ($i = 0; $i 120; $i++) {
$conn = mysql_connect(www.myserver.org, user, secret);
Subject: Re: [PHP-DB] MySQL + PHP on WinXP x64 = ??
YVES SUCAET wrote:
Hi List,
I'm experiencing the problem as described at
http://forums.mysql.com/read.php?37,39779,136287#msg-136287
I'm using the following script to test:
?php
$p = 0;
$n = 0;
for ($i = 0; $i 120; $i
YVES SUCAET wrote:
Hi Chris,
I don't need 120 concurrent connections. The problem arises from subsequently
opening connections and the script is a way to simulate the problem: the
first
100 connections e.g. open up fine; then the next 5 mess up; then the next 7
are good to go again etc...
I'm
Hello, all. I don't know if this is a php-mysql question or just a
mysql, but here goes:
I have a list of DVDs that my library loans out, and I'd like to allow
people to add comments to each item. Since this list gets regenerated
periodically (it's extracted from another system, the library
One thing I've done in situations like this is just load your returned DB data
into an array. Something like this would do:
$dvdarr[$result['call_number']]['Title'] = $result['title'];
$dvdarr[$result['call_number']]['Publisher'] = $result['publisher'];
= $rows['title'];
}
//echo out the rest of the data
echo trtd.$rows['comment']./td/tr;
}
hth
Bastien
From: Andrew Darby [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] MySQL/PHP Left Join Question
Date: Thu, 25 May 2006 11:28:56 -0400
Hello, all. I don't know if this is a php
Some good examples of how to deal with this in PHP have already been
given, especially the associative array solution.
The question I have is with something like this, how do you weight out
the pros/cons of code development versus speed?
i.e. for code development breaking the logic up into 2
Thanks to Bastien and TG for their suggestions. I'd been looking at
it Bastien's way, but TG's is probably better suited to what I want to
do. I'd forgotten about that possibility, cramming it all into an
array . . . .
Again, thanks for the help,
Andrew
p.s. I'd be curious about the relative
test both and let us know
bastien
From: Andrew Darby [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: Re: [PHP-DB] MySQL/PHP Left Join Question
Date: Thu, 25 May 2006 12:33:15 -0400
Thanks to Bastien and TG for their suggestions. I'd been looking at
it Bastien's way, but TG's is probably
Hi
I have two MySQL databases, on for aeromodelistas (aeromodelling) and
another for Códigos Postais (Postal Codes). I whant to do the
following query
SELECT CódigoPostal FROM Aeromodelistas
WHERE CódigoPostal IN
(SELECT distinct(CP4) FROM codigopostal.LOCART,codigopostal.DISTRITO
WHERE
This is what I use when needing to do this:
1. Put all the values you want to search for in an array $vals (loop
around the first result)
2. $query =
select count(Nome) from Aeromodelistas
where year(AnoQuota)=2005
and Sexo='Masculino' and Distrito IN .sqlIn($vals)
;
function
I'm pretty new to this...I've set this book example up on my PC and
it's fine.
I've attempted this on two Macs...
Here's the error I get when I try to run the application. What does
the error mean?
UNHANDLED ERROR on line 84 in
/Library/WebServer/Documents/wda2-winestore/index.php.
[PHP
James wrote:
I'm pretty new to this...I've set this book example up on my PC and it's
fine.
I've attempted this on two Macs...
Here's the error I get when I try to run the application. What does the
error mean?
UNHANDLED ERROR on line 84 in
You could also try www.vitalspeeds.com they dont host any microsoft
stuff like .Net or ASP but they are reliable and cheap. Hope this helps.
Regards,
Marcus Joyce
J. Connolly wrote:
Is there a site that someone could recommend that does PHP, Mysql
hosting? If they do .NET that would be good
On Tue, 2005-02-08 at 16:07 -0500, J. Connolly wrote:
Is there a site that someone could recommend that does PHP, Mysql
hosting? If they do .NET that would be good also. This is for practice
and development not for a company so I am looking to keep the costs
down. There are so many sites, I
Is there a site that someone could recommend that does PHP, Mysql
hosting? If they do .NET that would be good also. This is for practice
and development not for a company so I am looking to keep the costs
down. There are so many sites, I thought maybe someone here might have a
good solution.
i buy my hosting on ebay. haven't had a problem
bastien
From: J. Connolly [EMAIL PROTECTED]
To: PHP list php-db@lists.php.net
Subject: [PHP-DB] MySQL PHP hosting
Date: Tue, 08 Feb 2005 16:07:47 -0500
Is there a site that someone could recommend that does PHP, Mysql hosting?
If they do .NET
joe,
thanks for the advicei just can't host where i work and trying to
develop only on my laptop only at work is becoing tedious. The sys admin
is not happy about me running iis or apache on my laptop here. But at
least I didn't ask how you how to configure my php and mysql
richard,
On Mon, 1 Mar 2004 17:16:01 -0800 (PST), Mike Ni wrote:
Hey everyone,
Does anyone outhere is running Apache/Linux/PHP/Mysql?
I am having hard time with MYSQL PHP API. Apache/PHP
simply would not recognize any cmysql function call
such as mysql_connect.
I have recompile the php with mysql
I'm confused.
I replied to your inquiry to tell you what information you need to
provide if you are to receive help.. Why are you asking me questions
about *your* problem?
And keep the discussion on the list.
Doug
Mike Ni wrote:
Do you know for certain whether it is a matter of
Hey everyone,
Does anyone outhere is running Apache/Linux/PHP/Mysql?
I am having hard time with MYSQL PHP API. Apache/PHP
simply would not recognize any cmysql function call
such as mysql_connect.
I have recompile the php with mysql extension and th
problem continue tobe there.
I run the
hi!
(B
(BI am first question of php in this news group. I would like to ask my
(Bquestion about
(Bphp + mysql. Now I am programming php+mysql. I put word, excel, mpeg and
(Bany binaries into
(Bthe mySQL database using php on linux server,But I can take out these binay
(Bfrom mySQL
]
(BSent: Monday, December 08, 2003 1:10 PM
(BTo: [EMAIL PROTECTED]
(BSubject: [PHP-DB] mysql + php
(B
(Bhi!
(B
(BI am first question of php in this news group. I would like to ask my question about
(Bphp + mysql. Now I am programming php+mysql. I put word, excel, mpeg and any
(Bbinaries
From: "Will Contact" [EMAIL PROTECTED]
(B
(B Now I am programming php+mysql. I put word, excel, mpeg and
(B any binaries into
(B the mySQL database using php on linux server,But I can take out these
(Bbinay
(B from mySQL database. I would like to see the files and save my pc from
(B
no quarrel with this behaviour.
Ignatius
_
- Original Message -
From: Peter Beckman [EMAIL PROTECTED]
To: Ignatius Reilly [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 4:13 PM
Subject: Re: [PHP-DB] MySQL, PHP or ghost?
On Wed, 27 Aug 2003
El Mié 27 Ago 2003 11:34, Ignatius Reilly escribió:
Hmmm...
You have a point; the doc is not quite clear.
Illegal YEAR values are converted to
My understanding is that any illegal value will be first converted into
'', then into the corresponding year inside the 1901-2155
, August 28, 2003 2:36 PM
Subject: Re: [PHP-DB] MySQL, PHP or ghost?
El Mié 27 Ago 2003 11:34, Ignatius Reilly escribió:
Hmmm...
You have a point; the doc is not quite clear.
Illegal YEAR values are converted to
My understanding is that any illegal value will be first converted
El Jue 28 Ago 2003 11:25, Ignatius Reilly escribió:
Well, it IS logical provided one is aware of the rules of the game,
meaning, as you rightly point out, that MySQL does not reject SQL
statements for incorrect values, but attempts at converting them at any
price. I have no clue whether it is
28, 2003 9:37 PM
Subject: Re: [PHP-DB] MySQL, PHP or ghost?
El Jue 28 Ago 2003 11:25, Ignatius Reilly escribió:
Well, it IS logical provided one is aware of the rules of the game,
meaning, as you rightly point out, that MySQL does not reject SQL
statements for incorrect values, but attempts
El Jue 28 Ago 2003 17:20, Ignatius Reilly escribió:
Well, you're certainly right (except I didn't get the meaning of 'FS' -
anything obscene?). However:
File System.
1. The job of this ML is to help people get things done
2. For criticisms concerning the design of MySQL, you may get better
Seems that either I don't understand mysql, or something.
My table, with the non-important things removed...
mysql explain plate;
+-+---+--+-+-++
| Field | Type | Null | Key | Default
Read the MySQL manual.
0 value is interpreted as 2000.
Your empty string is converted to an integer, thus 0.
HTH
Ignatius
_
- Original Message -
From: Peter Beckman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 3:39 AM
Subject: [PHP-DB
Peter --
...and then Peter Beckman said...
%
% Seems that either I don't understand mysql, or something.
Looks like it, though I admit that the manual doesn't adequately explain
your results. Check out section 6.2.2.4 for details.
%
% My table, with the non-important things removed...
...
%
On Wed, 27 Aug 2003, Ignatius Reilly wrote:
Read the MySQL manual.
Hmmm, I thought I did. 6.2.2.4:
Illegal YEAR values are converted to .
0 value is interpreted as 2000.
Your empty string is converted to an integer, thus 0.
What confuses me (what I can't find) is why a quoted empty
to this year pass it NOW().
-Original Message-
From: Peter Beckman [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 02:40
To: [EMAIL PROTECTED]
Subject: [PHP-DB] MySQL, PHP or ghost?
Seems that either I don't understand mysql, or something.
My table, with the non-important things removed
On Wed, 27 Aug 2003, David T-G wrote:
Looks like it, though I admit that the manual doesn't adequately explain
your results. Check out section 6.2.2.4 for details.
I did; see my previous (moments ago) email on my read on that manual
section.
% So my assumption is that if I insert with
Peter, et al --
...and then Peter Beckman said...
%
% On Wed, 27 Aug 2003, David T-G wrote:
%
% Looks like it, though I admit that the manual doesn't adequately explain
% your results. Check out section 6.2.2.4 for details.
%
% I did; see my previous (moments ago) email on my read on that
Hi Peter Beckman,
Seems that either I don't understand mysql, or something.
My table, with the non-important things removed...
mysql explain plate;
+-+---+--+-+-++
| Field | Type |
:[EMAIL PROTECTED]
Sent: 27 August 2003 15:29
To: Griffiths, Daniel
Subject: RE: [PHP-DB] MySQL, PHP or ghost?
On Wed, 27 Aug 2003, Griffiths, Daniel wrote:
mysql will default to 2000 for a year value if you pass it as an entry
because it will accept short values for the years this century, eg
On Wed, 27 Aug 2003, Ruprecht Helms wrote:
you have chosen a wrong format. The format for year is . With string
the field years don't know what to do.
Right -- and if it doesn't know what to do, why would it insert a value
that isn't correct and not give me an error? It does give a
-
From: Ignatius Reilly [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 9:31 AM
To: Peter Beckman; [EMAIL PROTECTED]
Subject: Re: [PHP-DB] MySQL, PHP or ghost?
Read the MySQL manual.
0 value is interpreted as 2000.
Your empty string is converted to an integer, thus 0.
HTH
Is there an automatic way to insert an XML file into a MySQL DB through say,
Load Data InFILE?
Or does one have to Pick apart the XML with PHP and insert data into the
fields one by one, record by record?
/T
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit:
A quick google search produced this:
Creating XML from MySQL (it also talks about importing XML)
http://www.zdnet.com.au/builder/architect/database/story/0,234918,20266023,00.htm
On Wed, 11 Jun 2003 21:53:56 -0500, [EMAIL PROTECTED] wrote:
Is there an automatic way to insert an XML file
hi,
i put a script together to scan a directory and its subdirectories for
all mp3 files. the tag informations and path then should be put into a
mysql database.
i included a script called mphp3.php from http://res.crea-bmb.de/mphp3/
which returns the needed tag info from one file.
the script
Hi,
Where do you get $info2 from?
I only see $info in this function.
.: Allowee
function scan_dir($dir)
{
$info = New mphp3(2);
$handle = @opendir($dir);
while ($file = @readdir ($handle))
{
if (eregi(^\.{1,2}$,$file))
{
continue;
}
hi allowee,
sorry, this was not meant to be. $info2 is supposed to be $info. my
fault. but that is not the actual problem.
Hi,
Where do you get $info2 from?
I only see $info in this function.
.: Allowee
function scan_dir($dir)
{
$info = New mphp3(2);
$handle =
hmmm,
maybe this code..
$info-load(/.$dir.$file);
if $dir = mp3s and $file = test.mp3
then it will load '/mp3s/test.mp3'
you got that directory?
I've seen the class and you are hiding the fopen error message, which could be
the problem.
.: Allowee
On Saturday 07 June 2003 11:11, Ole Hornauer
Hi,
Where do you get $info2 from?
I only see $info in this function.
I guess that the $info-values are formfieldvalues.
$info-[db-field] is normaly used within a whileloop for
outputing a select-statement.
In the case of formfieldvalues you can use $formfieldname.
.: Allowee
function
On Saturday 07 June 2003 11:20, Allowee wrote:
hmmm,
maybe this code..
$info-load(/.$dir.$file);
if $dir = mp3s and $file = test.mp3
then it will load '/mp3s/test.mp3'
you got that directory?
I've seen the class and you are hiding the fopen error message, which could
be the problem.
well, you are right. the dir '/mp3' does not exist. 'mp3' is a subdir
from my htdocs dir. so i think the right path should be
'mp3/someartist/somesong', right?
i fixed that, but the original problem is still the same :(
hmmm,
maybe this code..
$info-load(/.$dir.$file);
if $dir = mp3s
moin,
sorry, my php-knowledge is not the best.
what do you mean with formfieldvalues?
i think $info-value is used to get the id3-tag info from the class,
right? this worked for me in a more simple way without the recursive
scan:
?
include(mphp3.php);
$info = New mphp3(2);
On Sunday 30 March 2003 11:11, Bruce Feist wrote:
I wonder why the PHP/MySql interface doesn't simply return dates as
dates instead of strings. *frowns*
How do you mean? PHP doesn't have a date type.
--
Jason Wong - Gremlins Associates - www.gremlins.biz
Open Source Software Systems
Jason Wong wrote:
On Sunday 30 March 2003 11:11, Bruce Feist wrote:
I wonder why the PHP/MySql interface doesn't simply return dates as
dates instead of strings. *frowns*
How do you mean? PHP doesn't have a date type.
Ummm That's a good reason! As I said, I'm a newbie to PHP, and
I originally wrote:
when I retrieve a date from MySQL into PHP, it shows up as a string instead of a date data type
What's the best way of controlling date format?
John W. Holmes replied:
If you want a Unix timestamp, which is compatible with the date()
function in PHP, then use the
I'm experienced with SQL, but new to MySql and PHP, which I'm using
together to create a dynamic web site. Right now, I'm having minor
difficulties with date formatting. It seems that when I retrieve a date
from MySQL into PHP, it shows up as a string instead of a date data
type, with format
I'm experienced with SQL, but new to MySql and PHP, which I'm using
together to create a dynamic web site. Right now, I'm having minor
difficulties with date formatting. It seems that when I retrieve a
date
from MySQL into PHP, it shows up as a string instead of a date data
type, with
Hi I was wonder if any knows how 2 display sound clips held in a mysql
database using a php page ? I have stored the urls of the clips in
mysql database and I belive I need some like to (below) to display them
but its not quite working.
while ($row= mysql_fetch_row($result)) //retrieve a row
while ($row= mysql_fetch_array($result)) //retrieve a row and store in
echo A HREF= .$row['UrlColumnName'].;
That's how I'd do it.
Ryan
-Original Message-
From: G [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 8:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] mysql +php
: RE: [PHP-DB] mysql +php
while ($row= mysql_fetch_array($result)) //retrieve a row and store in
echo A HREF= .$row['UrlColumnName'].;
That's how I'd do it.
Ryan
-Original Message-
From: G [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 8:16 PM
To: [EMAIL PROTECTED
Thanks got it working
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to place a text from a textfield into a database and displaying
it on another page. All works fine and well but my problem is:
If i place newline characters (press enter) in the forms textfield they
don't show up on my display page. This is logical because newlines are not
br codes. So
in a browse like the above.
Aaron
-Original Message-
From: Ro Stonemountain [mailto:[EMAIL PROTECTED]]
Sent: January 9, 2003 10:53 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] [mysql - php] Newline to BR problem
I'm trying to place a text from a textfield into a database and
displaying
Ok, I've been racking my brain trying to figure this one out, so
I thought I'd post the question here and see who bytes. =)
I have a table:
id INTEGER, PRIMARY KEY
parentid INTEGER DEFAULT (0)
name VARCHAR(32) NOT NULL
Ok, and I am using this structure to make a kind of drill down
structure, so
-Original Message-
From: Micah Stevens [mailto:[EMAIL PROTECTED]]
Sent: 23 September 2002 18:09
I've been running into a strange problem on my server with
scripts that
take form input and reformat it into SQL. It only happens
with statements
that insert or update data, the
Hi,
I've been running into a strange problem on my server with scripts that
take form input and reformat it into SQL. It only happens with statements
that insert or update data, the first four characters of the POST variables
starting at the fourth variable passed are dropped.
So lately if I
Where can I find a good manual/tutorial on how to access mySQL w/PHP. Keep in mind
that I am new to both PHP and mySQL, and my database theory is sketchy at best.
Thanks.
try a little thought...
http://www.google.com/search?sourceid=navclientq=php+mysql+tutorial
// -Original Message-
// From: Bryan McLemore [mailto:[EMAIL PROTECTED]]
// Sent: Friday, 30 August 2002 2:52 PM
// To: PHP LIST
// Subject: [PHP-DB] MySQL/PHP
//
//
// Where can I find
i think the problem is bad syntax:
you should try:
mysql_query(update prod_list set prod_manu=$prod_man where sku='.$prod.');
that is because when you have single quotes you will not evaluate the
expression so your querry will do the update only for sku equally with
the string '$prod'...
hope
Jason, this is intriguing.
Please show us a bit more code before the mysql_query() call.
-Original Message-
From: Jason [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 1:54 AM
To: Php-Db
Subject: [PHP-DB] MySQL/PHP Update
I'm trying to update my MySQL database
On Thursday 28 March 2002 17:04, cristi radulescu wrote:
i think the problem is bad syntax:
you should try:
mysql_query(update prod_list set prod_manu=$prod_man where
sku='.$prod.');
that is because when you have single quotes you will not evaluate the
expression so your querry will do
Emery [mailto:[EMAIL PROTECTED]]
Sent: March 28, 2002 7:20 AM
To: 'Jason'; Php-Db
Subject: RE: [PHP-DB] MySQL/PHP Update
Jason, this is intriguing.
Please show us a bit more code before the mysql_query() call.
-Original Message-
From: Jason [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March
I'm trying to update my MySQL database, but it doesn't seem to be taking.
my code is:
mysql_query(update prod_list set prod_manu=$prod_man where sku='$prod');
where
prod_manu is an int
$prod_man is an int
sku is a varchar
$prod is text
mysql_query() comes back successful, and
I'm trying to update my MySQL database, but it doesn't seem to be taking.
my code is:
mysql_query(update prod_list set prod_manu=$prod_man where sku='$prod');
Try: mysql_query(update prod_list set prod_manu='$prod_man' where
sku='$prod');
Maxwell
--
PHP Database Mailing List
Jason a écrit :
I'm trying to update my MySQL database, but it doesn't seem to be taking.
my code is:
mysql_query(update prod_list set prod_manu=$prod_man where sku='$prod');
where
prod_manu is an int
$prod_man is an int
sku is a varchar
$prod is text
mysql_query()
Hello, all!
Can anyone tell me how to easily calculate which days are on which week?
ie, week 8 : 18. Feb - 24. Feb? I retrieve information from a database
on a weekly basis, and I'd like print out what range of dates are on a
specific week. I know about date(W...), but I really don't want to
On Wed, 2002-02-20 at 13:16, Sven Jacobs wrote:
You can do it like this
calculate the current day and extract 7 days of it
ehm? extract 7 days of it? from what?-) I'm not quite following...
then with an array the current day until the calculated day :-)
ehm, call me stupid, but I didn't
Hello,
something that you can help is the follow
try var_dump($newquery);
then you see the complete query and run it in phpmyadmin.
Jeroen
- Original Message -
From: Jonathan Underfoot [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 2:43 PM
Subject: [PHP-DB
-
From: Jonathan Underfoot [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 08, 2002 7:43 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] MySQL / PHP Database Help
I'm trying to write a script that checks for multiple entries on a table in
a database. So far I've been plagued by MySQL errors. I'm
Jonathan,
I'm trying to write a script that checks for multiple entries on a table in a
database. So far I've been
plagued by MySQL errors. I'm fairly confident my scripting is ok (Then again, I've
been wrong before.) I think
moreover there might be some difficulty with my theory. Then
What does bool(false) mean?
Thats off the vardump
-J
- Original Message -
From: Jeroen Timmers [EMAIL PROTECTED]
To: Jonathan Underfoot [EMAIL PROTECTED]
Cc: [PHP-DB] [EMAIL PROTECTED]
Sent: Friday, February 08, 2002 8:58 AM
Subject: Re: [PHP-DB] MySQL / PHP Database Help
Hello
, February 08, 2002 8:48 AM
To: Jeroen Timmers
Cc: [PHP-DB]
Subject: Re: [PHP-DB] MySQL / PHP Database Help
What does bool(false) mean?
Thats off the vardump
-J
- Original Message -
From: Jeroen Timmers [EMAIL PROTECTED]
To: Jonathan Underfoot [EMAIL PROTECTED]
Cc: [PHP-DB] [EMAIL PROTECTED
PROTECTED]
Sent: Friday, February 08, 2002 3:47 PM
Subject: Re: [PHP-DB] MySQL / PHP Database Help
What does bool(false) mean?
Thats off the vardump
-J
- Original Message -
From: Jeroen Timmers [EMAIL PROTECTED]
To: Jonathan Underfoot [EMAIL PROTECTED]
Cc: [PHP-DB] [EMAIL PROTECTED
Jonathan,
[have put the cc back to the list]
Is it possible to make BOTH the date and venue into a single unique index?
=Why not? Like a good woman, treat her right, and SQL will do almost anything for you:
6.5.3 CREATE TABLE Syntax
CREATE [TEMPORARY] TABLE [IF NOT EXISTS] tbl_name
Hi All,
Normally I try not to take work home with me, mainly because I'm good
enough at breaking my own code. In this case, however, I think it might
be a good idea if I knew the answer to the question I was asked.
Basically, there's a PHP script. This script is a rather kludgy way of
Can someone offer some help...?
Lets say i have a date collumn in a mysql table that includes dates that get
stored each time i enter an entry...
How can i check when i enter the page that displays the entries to delete
all entries older than 30 days?
thanks.
Check the MySQL manual DATE/TIME functions.
try: DELETE FROM mytable WHERE date_column ( CURRDATE()-30 )
-Original Message-
From: Koutsogiannopoulos Karolos [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 7:41 AM
To: 'Php-Db (E-mail)
Subject: [PHP-DB] mysql - php DATE
sorry for misspelling: curdate()
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 03, 2001 8:23 AM
To: 'Koutsogiannopoulos Karolos'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] mysql - php DATE QUESTION...
Check the MySQL manual DATE/TIME
unset() simply deletes the pointer to the data without releasing the
space
held by the data.
mysql_free_result() releases the data storage pointed-to by the $result
pointer.
This is important because $result could be pointing-to a dataspace
containing a large number or rows returned
: Wednesday, September 05, 2001 4:46 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] MYSQL/PHP what is the difference between unset()
and mysql_free_result() ?
Hello,
unset() simply deletes the pointer to the data without releasing the space
held by the data.
mysql_free_result() releases
And how can i free the data-space from a string or somting like that?
b.e.
$string=a very long string;
free($string);#?
#could i use mysql_free_result($string);
Maybe I can use: unset($string=);
or unset($array=array()); to free the data-space also
--
PHP Database Mailing List
nope.
see my previous reply
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 10:11 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] MYSQL/PHP what is the difference between unset()
and mysql_free_result() ?
And how can i free the data
Hello,
Maybe someone can tell me, the difference
b.e.
$result = mysql_query ($query);
unset($result);
#or better mysql_free_result($result);
tnx,
Bas Jobsen
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
by the mysql_query(). You WANT
to recover this dataspace.
-Original Message-
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 05, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] MYSQL/PHP what is the difference between unset() and
mysql_free_result() ?
Hello,
Maybe someone
Hello,
unset() simply deletes the pointer to the data without releasing the space
held by the data.
mysql_free_result() releases the data storage pointed-to by the $result
pointer.
This is important because $result could be pointing-to a dataspace
containing a large number or rows returned
1 - 100 of 111 matches
Mail list logo