? Are they meant to be breakpoints?
Why does the PHPbrowser (internal) not work?
Why does the preferences page not show PHP Web developing?
Why is only MySQL included and not postgresql in the setup?
Any suggestions, explanations, instructions, sources of information
would be appreciated.
PJ
Eric Butera wrote:
On Fri, May 30, 2008 at 11:59 AM, PJ [EMAIL PROTECTED] wrote:
Running FreeBSD 7.0, Eclipse SDK 3.3.2, java 1.6.0_03-p4, apache 2.2.8,
php5.2.6, postgresql 8.3.1.
I found that configuring Xdebug just does not work the way all the
manuals, instructions and hints suggest
I don't know if this is the right list, it seems php and postgresql are
rather interdependent in the webside I am debugging :(, but here goes:
I'm getting this error:
pg_execute() [a href='function.pg-execute'function.pg-execute/a]: No
array passedE_WARNING
for this line of code:
if(
Joseph Subida wrote:
Daniel Brown wrote:
On Wed, Jun 11, 2008 at 11:51 PM, Joseph Subida
[EMAIL PROTECTED] wrote:
Hi.
I am new to PHP. I found a tutorial that said to copy and paste the
code
into a .php document and open it in my browser:
?php
echo $_SERVER['HTTP_USER_AGENT'];
?
I'm
Hello everybody,
I'm using function ftp_rmdir to create some aplication and for testing
I've used following sample from php.net
if (ftp_rmdir($conn_id, $dir)) {
echo Successfully deleted $dir\n;
} else {
echo There was a problem while deleting $dir\n;
}
Command really removed specified
Hello everybody,
I have problem with imap_open(). I've tried google - so I know, that
many people have problem with this function - but I think that my
problem is a little bit different or I haven't found any working answer :o(
So I'm tring this forum... Please help me, if you can.
My
Richard Lynch napsal(a):
On Tue, February 14, 2006 2:13 am, PJ wrote:
Hello everybody,
I have problem with imap_open(). I've tried google - so I know, that
many people have problem with this function - but I think that my
problem is a little bit different or I haven't found any working
answer
Hello everybody!
I have some connection problems when I am searching topics in ThunderB.,
so I am sorry if my question is somewhere answered!
Does anybody know, where to download T1Lib for PHP4 - windows version?
After half hour googling I have feeling that it doesn't exist... :o(
So, I would
I am trying to find a solution to enter data from a web page to several
tables in the same database; actually, I have 9 tables bus several are
basically id fields for foreign keys.
So far, I have found:
use mysql_insert_id() - the examples and directions are
incomprehensible (to me, anyway)
use
Hell, I feel about as dumb as can be. I just goth things straight and
it seems to work just fine...
Here is where my problem was...
$sql1 = INSERT INTO books
( title, sub_title, descr, comment, bk_cover,
publish_date, ISBN, language )
VALUES
Dotan Cohen wrote:
So put it all in one place:
?php
include path.inc;
printa href=\$path/dir/file.php\;
?
Full URLs don't break when users save the pages to disk.
That would be fine if the pages weren't being crafted in Dreamweaver,
where inserting links like that is a pain.
For that
Michael A. Peters wrote:
PJ wrote:
I hope I'm not out of place here, but I have a problem that seems to be
related.
I am using some include statements for page headers with the pages in
various directories on the site. The problem is this... if I put
relative statements in the page
Michael A. Peters wrote:
PJ wrote:
Michael A. Peters wrote:
PJ wrote:
I hope I'm not out of place here, but I have a problem that seems
to be
related.
I am using some include statements for page headers with the pages in
various directories on the site. The problem is this... if I put
Stuart wrote:
2009/2/17 PJ af.gour...@videotron.ca:
Dotan Cohen wrote:
So put it all in one place:
?php
include path.inc;
printa href=\$path/dir/file.php\;
?
Full URLs don't break when users save the pages to disk.
That would be fine if the pages weren't being
Stuart wrote:
2009/2/17 PJ af.gour...@videotron.ca:
Stuart wrote:
2009/2/17 PJ af.gour...@videotron.ca:
Dotan Cohen wrote:
So put it all in one place:
?php
include path.inc;
printa href=\$path/dir/file.php\;
?
Full URLs don't break when users save
To focus on mysql_real_escape_string, I am recapping... questions below
QUOTE:==
Instead of doing this (for an imaginary table):
$sql = insert into table1(field1, field2) values ('$value1', '$value2');
do
$sql = insert into table1(field1, field2) values (' .
Stuart wrote:
?php include dirname(__FILE__)./../header.php; ?
This generates a Fatal error: Cal to undefined function dirname()
I must be really dense...
What I don't understand in the above is this - dirname refers to what
directory? -- the directory of the file that is including?
Stuart wrote:
2009/2/18 PJ af.gour...@videotron.ca:
Stuart wrote:
?php include dirname(__FILE__)./../header.php; ?
This generates a Fatal error: Cal to undefined function dirname()
The dirname function is present in both PHP 4 and 5 and does not rely
Bastien Koert wrote:
On Wed, Feb 18, 2009 at 12:05 PM, PJ af.gour...@videotron.ca wrote:
Stuart wrote:
2009/2/18 PJ af.gour...@videotron.ca:
Stuart wrote:
?php include dirname(__FILE__)./../header.php; ?
This generates a Fatal error: Cal to undefined function dirname
Paul M Foster wrote:
On Wed, Feb 18, 2009 at 12:05:21PM -0500, PJ wrote:
Stuart wrote:
2009/2/18 PJ af.gour...@videotron.ca:
Stuart wrote:
?php include dirname(__FILE__)./../header.php; ?
snip
What confused me here is that often, in examples, there are all sorts of
references
I think this is a tough one... and way above my head:
PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO.
Having a bit of a rough time figuring out how to formulate php-mysql to insert
data into fields using a multiple dropdown box in a form.
to post I am using the following:
);
That example does not sanitize the data before inserting.
Brent
On Mon, Feb 23, 2009 at 10:25 AM, PJ af.gour...@videotron.ca wrote:
I think this is a tough one... and way above my head:
PLEASE READ ALL OF THE ABOVE TO UNDERSTAND WHAT I AM TRYING TO DO.
Having a bit of a rough time figuring out how
Brent Baisley wrote:
It's actually a very simple solution, and you should do it all in a
single INSERT. Putting INSERTs in a loop will kill your performance
when you try to scale.
$sql4 = 'INSERT INTO test (example) VALUES (' . implode('),(',
$_POST[categoriesIN]) . ')';
$result4 =
Reinhardt Christiansen wrote:
From: PJ af.gour...@videotron.ca
To: MySql my...@lists.mysql.com
Subject: how to deal with multiple authors for one book
Date: Mon, 16 Feb 2009 17:20:54 -0500
In my db there are a number of books with several authors; so, I am
wondering how to set up a table
Bob McConnell wrote:
From: PJ
Here's my test page and, so far, nothing works...
Please expound on nothing works What do you see in the browser?
What do you see in the server logs?
It's not in the browser that I look, rather in the db: nothing is
INSERTed. I have confirmed
I want to insert a new table entry 1 number higher than the highest in
the field (id). I cannot use auto-increment.
And I want to show the value of the field to be added in an input field
on the web page:
if (isset($_REQUEST[AddNewBooksRequest])) {
$SQL = SELECT MAX(id) FROM book;
the same generated id.
Hope that helps.
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Wed 2/25/2009 2:01 PM
To: MySql; php-general@lists.php.net
Subject: non-auto increment question
I want to insert a new table entry 1 number higher than the highest
Something is rotten here. Twist it any way you like and it just does not
work.
I am trying to figure out the working of SELECT LAST_INSERT_ID() and
cannot get beyond the first $sql - But it works fine from command-line!
?
include (lib/db1.php);// Connect to database
$sql1 = INSERT INTO test
Jerry Schwartz wrote:
Being rather new to all this, I understood from the MySql manual that
the auto_increment is to b e used immediately after an insertion not
intermittently. My application is for administrators (the site owner
designates) to update the database from and administration
Richard Whitney wrote:
On Thu, Feb 26, 2009 at 9:14 AM, PJ af.gour...@videotron.ca
mailto:af.gour...@videotron.ca wrote:
Something is rotten here. Twist it any way you like and it just
does not
work.
I am trying to figure out the working of SELECT LAST_INSERT_ID
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 11:14 -0500, PJ wrote:
Something is rotten here. Twist it any way you like and it just does not
work.
I am trying to figure out the working of SELECT LAST_INSERT_ID() and
cannot get beyond the first $sql - But it works fine from command-line
--
2009/2/26 PJ af.gour...@videotron.ca mailto:af.gour...@videotron.ca
Something is rotten here. Twist it any way you like and it just
does not
work.
I am trying to figure out the working of SELECT LAST_INSERT_ID() and
cannot get beyond
What is wrond with this file? same identical insert works from console
but not from this file :-(
html
head
titleUntitled/title
/head
body
?
//include (lib/db1.php);// Connect to database
mysql_connect('biggie', 'user', 'password', 'test');
$sql1 = INSERT INTO example (name, age) VALUES
? :-)
Hi PJ,
Could it be that you have //include (lib/db1.php); commented
out? Try uncommenting that line and see what happens. The error
message will always print because the query is never executing
properly if you have the db connections file commented out.
On Thu, Feb 26, 2009 at 12:28
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 12:28 -0500, PJ wrote:
What is wrond with this file? same identical insert works from console
but not from this file :-(
html
head
titleUntitled/title
/head
body
?
//include (lib/db1.php); // Connect to database
mysql_connect('biggie
,$db);
if (!$result1) {
echo(PError performing 1st query: .
mysql_error() . /P);
exit();
}
?
On Thu, Feb 26, 2009 at 11:46 AM, PJ af.gour...@videotron.ca
mailto:af.gour...@videotron.ca wrote:
It is commented out because I am using mysql_connect
I don't think it would
Ricardo Dias Marques wrote:
Hi PJ,
On Thu, Feb 26, 2009 at 17:28, PJ af.gour...@videotron.ca wrote:
What is wrond with this file? same identical insert works from console
but not from this file :-(
[snip]
?
//include (lib/db1.php);// Connect to database
mysql_connect('biggie
');
$result1 = mysql_query($sql1,$db);
if (!$result1) {
echo(PError performing 1st query: .
mysql_error() . /P);
exit();
}
?
That should fix the problem.
On Thu, Feb 26, 2009 at 12:46 PM, PJ af.gour...@videotron.ca wrote:
It is commented out because I am using mysql_connect
I
Jerry Schwartz wrote:
-Original Message-
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Thursday, February 26, 2009 12:28 PM
To: php-general@lists.php.net; MySql
Subject: catch the error
What is wrond with this file? same identical insert works from console
but not from
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote:
Hi PJ,
$db_host = 'biggie';
$db_user = 'root';
$db_pass = 'gu...@#$';
$db_name = 'biblane';
Everyone here is trying to help you and that's cool, but EVERYONE on
this list may not be so nice
('Arnie Shwartz', '75');
$result1 = mysql_query($sql1,$db);
if (!$result1) {
echo(PError performing 3st query: .
mysql_error() . /P);
}
echo $sql1;
echo br /;
echo $db_select;
exit();
?
This works fine either as is or using the include... :-)
9el wrote:
But the question is PJ, have you got
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:44 -0500, Jerry Schwartz wrote:
Here's how I mostly do it (albeit simplified):
$query = INSERT INTO `sometable`(`title`,`content`)
VALUES('$title','$content');
$result = mysql_query($query);
$autoId = mysql_insert_id($result);
$query =
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:56 -0500, PJ wrote:
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote:
Hi PJ,
$db_host = 'biggie';
$db_user = 'root';
$db_pass = 'gu...@#$';
$db_name = 'biblane';
Everyone here
Is there a shorter way of determining if a field contains text?
This works but I wonder if I can K.I.S.S. it? I really only need to know
if there is or is not a field containing the text specified. I don't
need to see it.
?php
// Request the text
$text = Joe of Egypt;
$sql = SELECT title
at) PJ, to turn on E_ALL
error reporting in any script he has problems with.
#1 you'll figure out the problem because the errors will tell you
exactly what the problem is undefined variable db_connect, etc...
#2 if you can't figure it out, someone here can easily if you give the
errors
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 14:15 -0500, PJ wrote:
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:56 -0500, PJ wrote:
Ashley Sheridan wrote:
On Thu, 2009-02-26 at 13:34 -0500, Darryle Steplight wrote:
Hi PJ
people happy with my design but I use it and it
works very well
-Original Message-
From: PJ [mailto:af.gour...@videotron.ca]
Sent: Thursday, February 26, 2009 5:07 PM
To: php-general@lists.php.net
Subject: [PHP] verify text in field
Is there a shorter way of determining if a field
I have a list of some 60 categories for a book database and am wondering
what would be the best approach for inserting and selecting the data.
My choices are to
(1.)simply use one field in a books table and enter the categories for
each book separated by a comma (or whatever) as a text field and
Andrew Ballard wrote:
On Mon, Mar 2, 2009 at 11:50 AM, PJ af.gour...@videotron.ca wrote:
I have a list of some 60 categories for a book database and am wondering
what would be the best approach for inserting and selecting the data.
My choices are to
(1.)simply use one field in a books
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name=($categoriesIN).'[]' multiple
OPTIONChoose Categories.../option
OPTION VALUE=1History
OPTION
PJ wrote:
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name=($categoriesIN).'[]' multiple
OPTIONChoose Categories.../option
OPTION VALUE
Shawn McKenzie wrote:
PJ wrote:
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name=($categoriesIN).'[]' multiple
OPTIONChoose Categories.../option
Michael A. Peters wrote:
PJ wrote:
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name=($categoriesIN).'[]' multiple
OPTIONChoose Categories.../option
Shawn McKenzie wrote:
PJ wrote:
PJ wrote:
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name=($categoriesIN).'[]' multiple
OPTIONChoose Categories.../option
Paul M Foster wrote:
On Mon, Mar 02, 2009 at 11:50:15AM -0500, PJ wrote:
I have a list of some 60 categories for a book database and am wondering
what would be the best approach for inserting and selecting the data.
My choices are to
(1.)simply use one field in a books table and enter
Michael A. Peters wrote:
PJ wrote:
Well, I think 60+ checkboxes get kind of garbagy
I bet it is easier to select the fields you want from 4 columns of 15
checkboxes than from a big long list of 60 in a select.
But you might be right. I don't design for a living.
Neither do I; it's rather
Shawn McKenzie wrote:
PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
PJ wrote:
I'm sure this has been hashed over and over on the web, only I can't
find anything that makes sense or the explanations given have been
erroneous.
This is what I am trying:
select name
This really needs some explanation
I found this on the web:
?php echo `whoami`; ?
with it there was the comment the direction of those single-quotes matters
(WHY ?)
and it works
But this (_*FROM THE PHP MANUAL***_ * - exec()* executes the given
/command/ ) does not,
COPIED AND PASTED:
|?php
Per Jessen wrote:
PJ wrote:
This really needs some explanation
I found this on the web:
?php echo `whoami`; ?
with it there was the comment the direction of those single-quotes
matters (WHY ?) and it works
GIYF - look up back quotes.
But this (_*FROM THE PHP MANUAL
Per Jessen wrote:
PJ wrote:
This really needs some explanation
I found this on the web:
?php echo `whoami`; ?
with it there was the comment the direction of those single-quotes
matters (WHY ?) and it works
GIYF - look up back quotes.
But this (_*FROM THE PHP MANUAL
Per Jessen wrote:
PJ wrote:
This really needs some explanation
I found this on the web:
?php echo `whoami`; ?
with it there was the comment the direction of those single-quotes
matters (WHY ?) and it works
GIYF - look up back quotes.
But this (_*FROM THE PHP MANUAL
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 10:57, PJ af.gour...@videotron.ca wrote:
forgot to add:
What's the difference between back ticks or quotes and regular single
quotes?
How does one enter back quotes from the keyboard?
Welcome to the Internet!
The first place you
Per Jessen wrote:
PJ wrote:
forgot to add:
What's the difference between back ticks or quotes and regular single
quotes?
text in back ticks is executed via a shell, text in single quotes isn't.
Ok, but how does this relate to a command passed from a php Web page?
I don't
Shawn McKenzie wrote:
PJ wrote:
This really needs some explanation
I found this on the web:
?php echo `whoami`; ?
with it there was the comment the direction of those single-quotes matters
(WHY ?)
and it works
But this (_*FROM THE PHP MANUAL***_ * - exec()* executes the given
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 11:22, PJ af.gour...@videotron.ca wrote:
Ok, but how does this relate to a command passed from a php Web page?
I don't understand the processus.
I use bash on my FreeBSD and have not needed a back quote yet that I can
recall... and on WinXP
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 11:27, PJ af.gour...@videotron.ca wrote:
What is not clear to me is why would I need to use a shell? What kind of
situations call for it's use?
On what kind of programming did you spend those years?
Not really programming, more like
Bob McConnell wrote:
From: PJ
What is not clear to me is why would I need to use a shell? What kind
of
situations call for it's use?
It's a matter of expectations. I am still trying to figure out why
anyone would want a GUI on any version of Unix or Linux. They just slow
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 11:41, PJ af.gour...@videotron.ca wrote:
I appreciate the input and I take the chastizing with a ton of salt.
It's all in good fun and being the new guy, it's at your expense. ;-P
Having thick skin means you'll stick around
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 11:48, PJ af.gour...@videotron.ca wrote:
[snip!]
Now I'm trying to modify my daughter's ptahhotep.com to use MySql. It's
a learning experience.
Through the years I've probably sounded like a broken record or
like I'm paid
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 11:59, PJ af.gour...@videotron.ca wrote:
:-*
Umm thanks?
(You do know that's the emoticon to symbolize kissing, right?)
Let's not get too personnal here... it was meant to blow a kiss of
appreciation to all... ;-)
I may
Boyd, Todd M. wrote:
-Original Message-
From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk]
Sent: Tuesday, March 03, 2009 2:07 PM
To: PJ
Cc: Daniel Brown; Per Jessen; php-general@lists.php.net
Subject: Re: [PHP] whoami explanation
On Tue, 2009-03-03 at 11:16 -0500, PJ wrote
Michael A. Peters wrote:
PJ wrote:
Gee, thanks. So, when was I supposed to have used this alias? Hell, I
can live with my ignorance. What's a POSIX system and why is it a POSIX
- a language, I think I heard
cd ~
brings you to your home directory.
cd ~/stuff
brings you
Daniel Brown wrote:
On Tue, Mar 3, 2009 at 18:56, PJ af.gour...@videotron.ca wrote:
But I'm sorry I missed the fun earlier about the American foibles...
unfortunately that should go on some other list and I wish I knew which
one - one that had some smarts to it (like this one) and I'd like
Daniel Brown wrote:
[Inhales]
On Wed, Mar 4, 2009 at 01:01, PJ af.gour...@videotron.ca wrote:
Ok. You asked for it... I have to rant a bit get this off my chest as it
has been bugging me for a while and this is not directed at anyone in
particular.
I'm noting
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
Right on. Good comments.
No offense taken and none intended.
I am enoying the list and will continue to participate, if i may.
I have learned a great deal already and really do appreciate the help
to
    conclusions without proper empirical research.
  Considering I *gave* PJ the search term to use at input, I'll
consider my research to be done, complete and accurate, to the best of
my knowledge and the collective knowledge of the community, as it's
publicly
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
Right on. Good comments.
No offense taken and none intended.
I am enoying the list and will continue to participate, if i may.
I have learned a great
Robert Cummings wrote:
On Wed, 2009-03-04 at 16:16 -0500, PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
Right on. Good comments.
No offense taken
Shawn McKenzie wrote:
PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
Right on. Good comments.
No offense taken and none intended.
I am enoying
Ashley Sheridan wrote:
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
Right
Paul M Foster wrote:
On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 10:42, PJ af.gour...@videotron.ca wrote:
snip
Ooooh, boy now this is really serious... :o
Robert Cummings wrote:
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
Whatever you do, please, please, please, for the love of all that is
holy, please, do not vilify potatoes! ...or the Irish :-)
Potatoes are best served sliced into sticks, pan-fried, covered in
cheese
This is probably a mysql question, but their list is rather dull - I
think they don't appreciate my humor. Beside this list is fun ... and
informative.
Anyway, I can't figure this out. I am trying to verify inputs on a form
and even if I have all the required fields right, I still get the error
Robert Cummings wrote:
On Wed, 2009-03-04 at 17:43 -0500, PJ wrote:
Robert Cummings wrote:
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
Whatever you do, please, please, please, for the love of all that is
holy, please, do not vilify potatoes! ...or the Irish
Ashley Sheridan wrote:
On Wed, 2009-03-04 at 17:46 -0500, Robert Cummings wrote:
On Wed, 2009-03-04 at 21:55 +, Ashley Sheridan wrote:
Whilst we're on the subject, what about cows, pigs and sheep, which are
the biggest contributors to global warming through their, erm, gases?
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote:
elseif ($obligatoryFieldNotPresent = 1) {
$obligatoryFieldNotPresent = 0;
}
Are you certain you only wanted a single equal operator in the
last elseif() condition? Further
Ashley Sheridan wrote:
On Wed, 2009-03-04 at 17:40 -0500, PJ wrote:
Paul M Foster wrote:
On Wed, Mar 04, 2009 at 04:16:40PM -0500, PJ wrote:
Shawn McKenzie wrote:
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4
PJ wrote:
Daniel Brown wrote:
On Wed, Mar 4, 2009 at 17:51, PJ af.gour...@videotron.ca wrote:
elseif ($obligatoryFieldNotPresent = 1) {
$obligatoryFieldNotPresent = 0;
}
Are you certain you only wanted a single equal operator in the
last
to the .
database server at this time./P );
exit();
}
// Select the database
if (! mysql_select_db(biblane) ) {
echo( PUnable to locate the biblane .
database at this time./P );
exit();
}
?
Eric Butera wrote:
On Wed, Feb 18, 2009 at 8:34 AM, PJ af.gour
Shawn McKenzie wrote:
Robert Cummings wrote:
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
Whatever you do, please, please, please, for the love of all that is
holy, please, do not vilify potatoes! ...or the Irish :-)
Potatoes are best served sliced into sticks,
Davi Ramos wrote:
I tought you forgot to initializae the $obligatoryFieldNotPresent variable,
as PHP create variables when they are initialized, the
$obligatoryFieldNotPresent variable is created inside the if.
$obligatoryFieldNotPresent = 0;
if (strlen($_POST[titleIN]) == 0 ) {
Shawn McKenzie wrote:
Shawn McKenzie wrote:
PJ wrote:
Shawn McKenzie wrote:
Robert Cummings wrote:
On Wed, 2009-03-04 at 15:48 -0600, Shawn McKenzie wrote:
Whatever you do, please, please, please, for the love of all that is
holy, please, do
Here we go again!
I'm trying to do some form entry verification and am trying to figure
out how to verify if there are 4 fields entered:
f_nameIN, l_nameIN, f_name2IN, l_name2IN
Verifying for each is ok, but somewhat tortured and long. I thought of
using CONCAT_WS but it doesn't seem to listen to
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
$obligatoryFieldNotPresent = 1; ...
this does not:
if (strlen($_POST[first_nameIN]) 0 )
(strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, ,
$last_nameIN);
else (echo error;)}
But, $first_nameIn and
haliphax wrote:
On Thu, Mar 5, 2009 at 4:34 PM, PJ af.gour...@videotron.ca wrote:
Here we go again!
I'm trying to do some form entry verification and am trying to figure
out how to verify if there are 4 fields entered:
f_nameIN, l_nameIN, f_name2IN, l_name2IN
Verifying for each is ok
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
$obligatoryFieldNotPresent = 1; ...
this does not:
if (strlen($_POST[first_nameIN]) 0 )
(strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, ,
$last_nameIN);
else (echo error
Nathan Rixham wrote:
Chris wrote:
PJ wrote:
And again, this works:
if (strlen($_POST[first_nameIN]) == 0 ) {
$obligatoryFieldNotPresent = 1; ...
this does not:
if (strlen($_POST[first_nameIN]) 0 )
(strlen($_POST[last_nameIN]) 0 ) { echo $first_nameIN, ,
$last_nameIN
Chris wrote:
Are both first_nameIN AND last_nameIN longer than 0 chars?
var_dump($_POST['first_nameIN']);
var_dump($_POST['last_nameIN']);
maybe you only filled in first_name or last_name but not both.
Well,
echo $first_nameIN, , $last_nameIN;
Prints out the whole name - without the if
good morning all,
How can I include src and href in include files that will refer the
right paths from files in different hierarchies(directory tree levels)?
Example:
include dirname(_FILE_)./../lib/header1.php; ?
This does not work:
snippetysnip...
LINK href=dirname(_FILE_).'/../lib/index.css'
Daniel Brown wrote:
On Fri, Mar 6, 2009 at 08:53, Stuart stut...@gmail.com wrote:
1.) We use regular open tags to be compatible with all stock
PHP configurations.
2.) We echo out the response from dirname() so that it's
output to the HTML source.
3.) We use dirname()
1 - 100 of 346 matches
Mail list logo