2007 16:55
À : php-general@lists.php.net
Objet : Re: [PHP] preview string with strlen PHP (help)
Dear all,
hmm.. sorry the $previewstext thing was a typo in my mail.
But yes it is working but it will only display the first record of the
recordset. I have like a list for items with short text
YES this works thank nemeth:
?php
function previewString($showcatvar) {
$minitxt = $showcatvar;
$len = strlen($minitxt);
if ($len 235)
{
$len = 235;
}
else
{
$len = $len;
}
$newstring = substr($minitxt,0,$len);
$previewtext = $newstring;
return $previewtext;
}
?
and to
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta:
YES this works thank nemeth:
your welcome but please call me Zoltán ;)
(my first name is Zoltán. in Hungary we write names the opposite order
than anywhere else ;) so that's why my mailbox is set to display 'Németh
Zoltán' but
On 3/23/07, Németh Zoltán [EMAIL PROTECTED] wrote:
2007. 03. 23, péntek keltezéssel 17.30-kor Dwayne Heronimo ezt írta:
YES this works thank nemeth:
your welcome but please call me Zoltán ;)
(my first name is Zoltán. in Hungary we write names the opposite order
than anywhere else ;) so that's
On Fri, March 23, 2007 10:18 am, Dwayne Heronimo wrote:
function previewString($showcatvar) {
$minitxt = $showcatvar;
$len = strlen($minitxt);
if ($len 235)
{
$len = 235;
}
else
{
$len = $len;
}
Take out this whole else block -- Assigning a variable to itself is
just
You don't need a function to do something repeatedly.
You need some kind of loop, such as 'while', 'for' or 'foreach'
Try working through a PHP / MySQL tutorial, as it will cover this.
On Fri, March 23, 2007 10:55 am, Dwayne Heronimo wrote:
Dear all,
hmm.. sorry the $previewstext thing was a
I seem to be hitting a wall here. I have the need to run an XPath query
on strings that may contain quotes, apostrophes or both. Going through
google turned up some interesting information, but nothing that solved
my issue.
An example of what I am trying to do is as follows:
$query = '\'foobar';
On Tue, March 13, 2007 7:27 pm, Mark wrote:
I have a web session management server that makes PHP clustering easy
and
fast. I have been getting a number of requests for some level of
redundancy.
As it is, I can save to an NFS or GFS file system, and be redundant
that
way.
Talk to Jason
Richard Lynch wrote:
You could also just use:
if (($i % 15) === 0) echo FooBar;
elseif (($i % 3) === 0) echo Foo;
elseif (($i % 5) === 0) echo Bar;
15 works because 3 and 5 are mutually prime or whatever it's called.
Good point, missed that one.
A minimalist might not even bother with the
I have a web session management server that makes PHP clustering easy and
fast. I have been getting a number of requests for some level of
redundancy.
As it is, I can save to an NFS or GFS file system, and be redundant that
way.
Here is an explanation of how it works:
On Tue, March 13, 2007 7:27 pm, Mark wrote:
I have a web session management server that makes PHP clustering easy
and
fast. I have been getting a number of requests for some level of
redundancy.
As it is, I can save to an NFS or GFS file system, and be redundant
that
way.
Talk to Jason at
You could also just use:
if (($i % 15) === 0) echo FooBar;
elseif (($i % 3) === 0) echo Foo;
elseif (($i % 5) === 0) echo Bar;
15 works because 3 and 5 are mutually prime or whatever it's called.
The order matters, though, as moving the 15 after the other if tests
would fail, as 3 and/or 5 would
I'm not sure but i think that you need to place your javascript inside the
head tags, which you (i guess) output in header.php
Tijnema
On 3/9/07, Joker7 [EMAIL PROTECTED] wrote:
Im trying to use a captcha script from :
http://www.boutell.com/newfaq/creating/captcha.html
I can get it to work
Hi
I'd like to ask you for the help
I'm using Squirellmail with plugin Shared calendar. This is simple nice
plugin written by Paul Lesniewski
But I found the bug in this plugin. The bug seems to be related with
variable and memory.
The scripts are really slow and sometimes takes 20-30 seconds
If there are no people willing to, i am, but i don't have a lot of time.
I hope it isn't urgent.
Tijnema
On 3/9/07, Jevos, Peter [EMAIL PROTECTED] wrote:
Hi
I'd like to ask you for the help
I'm using Squirellmail with plugin Shared calendar. This is simple nice
plugin written by Paul
Stut wrote:
Bruce Gilbert wrote:
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
if ($i%3 == 0) echo Foo ;
elseif ($i%5 == 0) echo Bar;
}
?
[/php]
and the results can be seen here
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
--
::Bruce::
--
PHP
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote:
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example.
try this
if ($i%5 == 0) echo foobr;
-afan
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for
oops, ofcourse whe have the modular :)
On 3/7/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
try this
if ($i%5 == 0) echo foobr;
-afan
I have a little script that prints a number out from 1 to 100
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
}
?
[/php]
I just need to
Tijnema ! escribió:
On 3/7/07, Bruce Gilbert [EMAIL PROTECTED] wrote:
I just need to add code to print something different, say foo if the
output is a multiple of 5 or 10 for example. How do I go about doing
this?
I've seen that question a lot, what i use is fairly simple
if( intval($number
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
if ($i%3 == 0) echo Foo ;
elseif ($i%5 == 0) echo Bar;
}
?
[/php]
and the results can be seen here
http://www.inspired-evolution.com/image_test/numbers_output.php
I
Marques martin@bugs.unl.edu.ar
Cc: Tijnema ! [EMAIL PROTECTED]; PHP-General
php-general@lists.php.net
Sent: Wednesday, March 07, 2007 4:00 PM
Subject: Re: [PHP] help with script needed
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i
Bruce Gilbert wrote:
Thanks for the responses so far.
This is what I have come up with
[php]
?php
for( $i=1; $i=100; $i++ )
{
echo $i;
echo br;
if ($i%3 == 0) echo Foo ;
elseif ($i%5 == 0) echo Bar;
}
?
[/php]
and the results can be seen here
LOL I told'ya I rememberd it from my 2nd semester :)
Ok, this is commonly known as the FizzBuzz problem and is used a lot as a
university project or interview question. If you can't do it, be afraid!!
http://dev.stut.net/php/fizzbuzz.php
-Stut
--
PHP General Mailing List
I have been trying to find a way to search a DB and match a range within a
week ( php mysql ).
This doesn't make sense, so I will describe it in more detail.
Hi everyone,
I need help with a search, lets say a record has a date of 2/5/2007 and if
someone visits the website between 2/5/07 and
I have been trying to find a way to search a DB and match a
range within a
week ( php mysql ).
This doesn't make sense, so I will describe it in more detail.
Hi everyone,
I need help with a search, lets say a record has a date of
2/5/2007 and if
someone visits the website
On 3/5/07, Jim Moseby [EMAIL PROTECTED] wrote:
I have been trying to find a way to search a DB and match a
range within a
week ( php mysql ).
This doesn't make sense, so I will describe it in more detail.
Hi everyone,
I need help with a search, lets say a record has a date of
-
From: Németh Zoltán [EMAIL PROTECTED]
To: Haydar Tuna [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, March 02, 2007 12:19 PM
Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups
2007. 03. 2, péntek keltezéssel 09.57-kor Haydar Tuna ezt írta:
Hello,
I have
a confirmation email and that's all...
greets
Zoltán Németh
- Original Message -
From: Németh Zoltán [EMAIL PROTECTED]
To: Haydar Tuna [EMAIL PROTECTED]
Cc: php-general@lists.php.net
Sent: Friday, March 02, 2007 12:19 PM
Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups
-general@lists.php.net
Sent: Friday, March 02, 2007 12:19 PM
Subject: Re: [PHP] Help! I cannot send e-mail to your mail groups
2007. 03. 2, péntek keltezéssel 09.57-kor Haydar Tuna ezt írta:
Hello,
I have been Linux user for 7 years and I have been membership of Linux
Community group for 3
Hello,
I have been Linux user for 7 years and I have been membership of Linux
Community group for 3 years in Turkey. As you know, linux users share all of
experiences and knownledges and I'm writing a book about PHP. I'm a PHP
professional for this reason I want to help any people on the world
On Wed, February 21, 2007 10:41 am, Joker7 wrote:
Hi -
I'm having a bit of a problem with this directory listing code, found
it
some time ago and have been modifying it.I have run up against one or
two
problems.
1\ How can I make it not list its self
2\ Is there away to specify what files
I am having some problem working with my script on session
stuffs. Well, i have a login page which authenticates users by
using sql script then if login is successful i have
PHP Code:
$_SESSSION['logged in']=true; and $_SESSION[userid]=$userid
and when login is true i have included the page
Richard Lynch wrote:
On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote:
I need help with matching a variable. The variable would be e.g. 0-15
, 16-30 etc. and when the variable is equal to a certain range, it
would echo an image.
Does anyone know what function I should use?
On Sat, February 3, 2007 10:55 am, Chilling Lounge Admin wrote:
I need help with matching a variable. The variable would be e.g. 0-15
, 16-30 etc. and when the variable is equal to a certain range, it
would echo an image.
Does anyone know what function I should use? preg_match?
The code
Hi.
I need help with matching a variable. The variable would be e.g. 0-15
, 16-30 etc. and when the variable is equal to a certain range, it
would echo an image.
Does anyone know what function I should use? preg_match?
The code would be something like
if(preg_match([16-30],$variable))
{
echo
Chilling Lounge Admin wrote:
Hi.
I need help with matching a variable. The variable would be e.g. 0-15
, 16-30 etc. and when the variable is equal to a certain range, it
would echo an image.
Does anyone know what function I should use? preg_match?
The code would be something like
- Original Message -
From: Jon Anderson [EMAIL PROTECTED]
To: Skip Evans [EMAIL PROTECTED]
Cc: PHP-General php-general@lists.php.net
Sent: Tuesday, January 30, 2007 11:46 PM
Subject: Re: [PHP] Help wtih a query?
Wrong list. Putting $sql=... in there doesn't make it a PHP question
Hey all,
I have the following query:
$sql=SELECT count(*) AS
count,votes.storyID,stories.title,stories.storyID
as sID,stories.approved,
stories.story,stories.userID, fname, lname
FROM `bsp_story_votes` as votes,
bsp_story_stories AS stories, users AS usr
Wrong list. Putting $sql=... in there doesn't make it a PHP question. ;-)
Skip Evans wrote:
Is that what the left/right joins do???
Yea. LEFT JOIN will give you NULL entries in the left joined table, so
you'd just have to say WHERE ISNULL(left joined table.some field in
that table). Of
Skip Evans wrote:
Hey all,
I have the following query:
$sql=SELECT count(*) AS
count,votes.storyID,stories.title,stories.storyID as
sID,stories.approved, stories.story,stories.userID, fname, lname
FROM `bsp_story_votes` as votes, bsp_story_stories AS
stories, users AS usr
On Jan 30, 2007, at 4:33 PM, Skip Evans wrote:
Hey all,
I have the following query:
$sql=SELECT count(*) AS
count,votes.storyID,stories.title,stories.storyID as
sID,stories.approved, stories.story,stories.userID, fname, lname
FROM `bsp_story_votes` as votes,
Brandon Bearden wrote:
What I WANT to see is something like this
DVD ID | TITLE | GENRE 1 | GENRE 2 | GENRE 3 | ACT |
QTY BCK |HLD | INC | OG USR | OUT DATE | OUT USR | IN DATE |
IN USR CY
GENRE: ACTION - 1 TITLES
20860023 | Movie name | ACTION | | | 1
Hi everyone,
Hopefully you all can help! I¹m at a loss as to what to do next. I¹m
running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the
following PHP error when trying to upload a larger file. I have
AllowOverride turned on in the httpd.conf file so my .htaccess file
Hi everyone,
Hopefully you all can help! I¹m at a loss as to what to do next. I¹m
running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the
following PHP error when trying to upload a larger file. I have
AllowOverride turned on in the httpd.conf file so my .htaccess file
On Tue, January 23, 2007 1:48 pm, Jay Paulson wrote:
php_value memory_limit 40M
php_value post_max_size 30M
php_value upload_max_filesize 30M
php_value display_errors On
php_value max_execution_time 300
php_value max_input_time 300
I *think* PHP (used to?) take the MINIMUM of the php.ini
Here is my rendition of your script. Give it a shot...
Let me know if you have any question about what is going on.
I was curious, what is the point of having the alternating column
colors? Was that your intention?
?php
function invlistONE(){
dbconnect('connect');
$invlist
Hi everyone,
Hopefully you all can help! I¹m at a loss as to what to do next. I¹m
running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the
following PHP error when trying to upload a larger file. I have
AllowOverride turned on in the httpd.conf file so my .htaccess file is
Jay Paulson wrote:
Hi everyone,
Hopefully you all can help! I¹m at a loss as to what to do next. I¹m
running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the
following PHP error when trying to upload a larger file. I have
AllowOverride turned on in the httpd.conf file so my
Jay Paulson wrote:
Hi everyone,
Hopefully you all can help! I¹m at a loss as to what to do next. I¹m
running PHP 5.1.2 with Apache 2.0.55 on RedHat ES4 and I keep getting the
following PHP error when trying to upload a larger file. I have
AllowOverride turned on in the httpd.conf file so
Thank you for your help. I see what you are doing different. I don't
understand how the quotient works there. I will sometime. I also don't
understand the HEREDOC concept.
I wanted colors alternating to allow for a better read.
I still have not solved the problem with listing the genre in its
# [EMAIL PROTECTED] / 2007-01-22 22:55:50 -0800:
Jim Lucas [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
$count = 0;
while ( $row = mysql_fetch_array( $invlist ) ) {
if ( $count % 1 ) {
$rowColor = '#c1c1c1';
} else {
$rowColor = '';
}
echo HEREDOC
tr
What I WANT to see is something like this
DVD ID | TITLE | GENRE 1 | GENRE 2 | GENRE 3 | ACT |
QTY BCK |HLD | INC | OG USR | OUT DATE | OUT USR | IN DATE |
IN USR CY
GENRE: ACTION - 1 TITLES
20860023 | Movie name | ACTION | | | 1 | 1 | 0 |
Can anyone help me figure out how to solve my inventory listing problem?
I am using php_5 and mysql_5.0 w/apache on fbsd.
I need to figure out a way to make a subtitle for every category (genre)
in the inventory so when I list the entire inventory on a sheet (at
client's request), it is
Dear all,
I have two web application running on php and jsp. But i don't know how can
to use php and jsp on tomcat server. Please help me.
thanks best regard.
# [EMAIL PROTECTED] / 2007-01-04 15:05:54 +0700:
I have two web application running on php and jsp. But i don't know how can
to use php and jsp on tomcat server. Please help me.
Find an implementation of PHP in Java (tough luck) or the official
library wrapped in a JNI interface. But you'll
Hi,
The Tomcat server now includes the php javabridge, its a war file called
JavaBridge.war. Also, you can find this war file in
php-java-bridge.sourceforge.net . The instllation is pretty easy just copy
the war file in the root directory (e.g webapps/) and then run it from the
browser (eg.
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Just remember in web context is a server-side language ... so you couldn't
have more information than client would want to send to you
in web context, the navigator send some information to the server (like what
navigator, address, proxy, ...)
so
Can we use php to detect client screen resolution? Please help me ?
Best Regard.
Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
No we can't. You need Javascript or another client-side technology
for that.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 1/2/07, Stut [EMAIL PROTECTED] wrote:
Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
No we can't. You need Javascript or another client-side technology
for that.
-Stut
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
At 1/2/2007 12:24 AM, Le Phuoc Canh wrote:
Can we use php to detect client screen resolution? Please help me ?
Do you really want screen resolution or do you want browser window
size? Not every PC user keeps their windows maximized, and I have
yet to meet a Mac user who attempts to do so.
Hi all,
I receive a text file with a whole bunch of strings. and each line is
terminated by what I presume is \n\r however when I read the string into
PHP, it seems that the last column of the row and the first column of
the next row are connected but it appears as a space but I've done all
On Fri, 2006-12-29 at 11:42 +0200, Angelo Zanetti wrote:
Hi all,
I receive a text file with a whole bunch of strings. and each line is
terminated by what I presume is \n\r however when I read the string into
PHP, it seems that the last column of the row and the first column of
the next
- personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 10:43 AM
To: PHP List
Subject: [PHP] help with \n\r in strings
Hi all,
I receive a text file with a whole bunch of strings. and each
if that helps.
Best regards,
Peter Lauri
www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free
-Original Message-
From: Angelo Zanetti [mailto:[EMAIL PROTECTED]
Sent: Friday, December 29, 2006 10:43 AM
To: PHP List
Subject: [PHP] help
On Fri, 2006-12-29 at 11:17 +0100, Frank Arensmeier wrote:
If you just want to test for \n\r -
if ( substr ( -2, $my_string ) == \n\r ) { // substr with the
negative value of 2 will give you the last two characters of your string
// do some stuff
}
You have your substr() parameters
Angelo Zanetti wrote:
So is there a way to test for \r\n? or what else can I use to delimit
these two values (last column of row and first column of next row)?
Since it's coming from a file, you might as well just read it with
file(), which will split
2006/12/29, Arpad Ray [EMAIL PROTECTED]:
Angelo Zanetti wrote:
So is there a way to test for \r\n? or what else can I use to delimit
these two values (last column of row and first column of next row)?
mmm what about open the file with and hex editor?.. or mmm notepad++
have a option to see
Dear All,
I have a script that uses curl to execute an http request now I use the
same code for two different servers. And it works on the first server
but not the second. I have stored the URL that it generates on the
server that doesnt work and if I paste it into the address bar of the
it appears the problem with the port and not the timeout.
Angelo Zanetti wrote:
Dear All,
I have a script that uses curl to execute an http request now I use
the same code for two different servers. And it works on the first
server but not the second. I have stored the URL that it
Hi Richard,
I think I've identified the problem. It appears to be a problem with
PHPMyAdmin rather than PHP itself.
The directory permissions we have are the minimum we need, usually 710, file
permissions are 640. The group part of the permissions is how the apache
gets to the files in the
On Mon, December 4, 2006 1:37 am, Le Phuoc Canh wrote:
Dears,
I want to make a web app about music online. But i don't know how to
use
streaming in PHP to load a music file for playing. Please help me for
the
best direction.
Thanks alot and best regard.
You are making this too complicated.
Dears,
I want to make a web app about music online. But i don't know how to use
streaming in PHP to load a music file for playing. Please help me for the
best direction.
Thanks alot and best regard.
Hi Richard,
Hi all,
The include path is correct. That was one of the first things I played around
with. At the moment, it's include_path = .. I also tried renaming the
php.ini file to php.ini.off so that it wasn't found and took all the
defaults, but with no success.
Last night I built
On Thursday 30 November 2006 19:04, Richard Lynch wrote:
[snip...]
And of course I forgot to put in the configure arguments
'./configure' \
'--without-pear' \
'--with-apxs2=/usr/local/apache2/bin/apxs' \
'--enable-mm=shared' \
Try running it under some kind of debugger and see if you can figure
out what directories it's even checking when it doesn't find the
file...
I dunno if Zend IDE (or whatever it's called now) or Komodo or XDebug
or whatnot will do that, but it's definitely sounding very odd if your
include_path
Hi all,
I have a strange problem including files in PHP 5.2.0 running on Unix. If I
try to include a file using include 'filename.inc';, everything is fine. As
soon as I try to put a . in front of the file name, for example
include './filename.inc';, I get a failed to open stream: No such
On Thu, November 30, 2006 6:49 am, Markus Mayer wrote:
I have a strange problem including files in PHP 5.2.0 running on Unix.
If I
try to include a file using include 'filename.inc';, everything is
fine. As
soon as I try to put a . in front of the file name, for example
include
Hello,
The following examples don't work
printf([%10s]\n, $s); //
On 06/11/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello,
The following examples don't work
printf([%10s]\n, $s); // justification à droite avec des espaces
printf([%-10s]\n, $s); // justification à gauche avec des espaces
but this one:
printf([%'#10s]\n, $s); //
# [EMAIL PROTECTED] / 2006-11-06 12:46:14 +0100:
Hello,
The following examples don't work
printf([%10s]\n, $s); // justification ? droite avec des espaces
printf([%-10s]\n, $s); // justification ? gauche avec
I've just upgraded to Fedora Core 6 and my personal site broke. Along
with the upgrade came PHP 5.1.6 and SQLite 3.3.6. After the upgrade any
SELECT returns all its values with the last character missing.
I've filed a bug at pecl.php.net
(http://pecl.php.net/bugs/bug.php?id=9191), but it
Thanks to anyone who entertained my previous email, but I've solved my
own problem.
It looks like the bug is in PDO_SQLITE 1.0.1. I've just compiled from
that extension from CVS, changing nothing else, and the bug is gone.
--rick
Rick Fletcher wrote:
I've just upgraded to Fedora Core 6 and
Hi,
I would like some help with an encoding problem, please. I would like to encode
some text (a news entry entered via a form, to be exact) into UTF-8 and then
save it in an XML file for persistent storage. My problem is, some of the users
are Japanese and would like to enter Japanese multi-byte
On Thu, October 5, 2006 2:55 pm, Satyam wrote:
- Original Message -
From: Martin Alterisio
To: Satyam
Cc: Deckard ; php-general@lists.php.net
You're wrong, partially:
I am sure you could have stated that in a more courteous way.
So, this Argentinian, Italian, and European
On 10/5/06, Deckard [EMAIL PROTECTED] wrote:
Hi,
I'm trying to lay my hands on PHP OOP, but it's not easy :(
I've read several examples in the web, but cannot transpose to may case.
I'm trying to set a class to make SQL inserts in mysql.
I commend you on trying to build an OOP class for
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen you already had a good answer on the errors in the code so I won't
go on that. As for OOP, the one design error you have is that you are
asking for an action, not an object. You want to make SQL inserts, that is
your purpose, and
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Satyam [EMAIL PROTECTED]
Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, October 05, 2006 2:16 AM
Subject: Re: [PHP] Help on objects
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen
PROTECTED]; php-general@lists.php.net
Sent: Thursday, October 05, 2006 2:16 AM
Subject: Re: [PHP] Help on objects
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen you already had a good answer on the errors in the code so I
won't
go on that. As for OOP, the one design error you have
Re the last suggestion, ensure you keep those database details outside the
web root (ie in a file called connect.inc for example) or if have to keep it
there add a .htaccess file that prevents download of *.inc files.
Also, avoid use of the error suppression operator (@). You need to see your
-general@lists.php.net
Sent: Thursday, October 05, 2006 4:55 AM
Subject: Re: [PHP] Help on objects [with reply]
Re the last suggestion, ensure you keep those database details outside the
web root (ie in a file called connect.inc for example) or if have to keep
it
there add a .htaccess file
Undoubtedly. He could also use the PEAR DB abstraction layer.
2006/10/4, Deckard [EMAIL PROTECTED]:
Hi,
I'm trying to lay my hands on PHP OOP, but it's not easy :(
I've read several examples in the web, but cannot transpose to may case.
I'm trying to set a class to make SQL inserts in mysql.
I have the class:
2006/10/5, Satyam [EMAIL PROTECTED]:
I've seen you already had a good answer on the errors in the code so I
won't
go on that. As for OOP, the one design error you have is that you are
asking for an action, not an object. You want to make SQL inserts, that
is
your purpose, and that is an
- Original Message -
From: Robert Cummings [EMAIL PROTECTED]
To: Satyam [EMAIL PROTECTED]
Cc: Deckard [EMAIL PROTECTED]; php-general@lists.php.net
Sent: Thursday, October 05, 2006 11:16 AM
Subject: Re: [PHP] Help on objects
On Thu, 2006-10-05 at 07:04 +0200, Satyam wrote:
I've seen
- Original Message -
From: Martin Alterisio
To: Satyam
Cc: Deckard ; php-general@lists.php.net
Sent: Thursday, October 05, 2006 3:50 PM
Subject: Re: [PHP] Help on objects
2006/10/5, Satyam [EMAIL PROTECTED]:
I've seen you already had a good answer on the errors
2006/10/5, Satyam [EMAIL PROTECTED]:
- Original Message -
*From:* Martin Alterisio [EMAIL PROTECTED]
*To:* Satyam [EMAIL PROTECTED]
*Cc:* Deckard [EMAIL PROTECTED] ; php-general@lists.php.net
*Sent:* Thursday, October 05, 2006 3:50 PM
*Subject:* Re: [PHP] Help on objects
2006/10/5
Hi,
I'm trying to lay my hands on PHP OOP, but it's not easy :(
I've read several examples in the web, but cannot transpose to may case.
I'm trying to set a class to make SQL inserts in mysql.
I have the class:
-
?php
class dBInsert
{
501 - 600 of 3172 matches
Mail list logo