a header (like
for a session) on line 8. You need to open your session before you send any
output. Sometimes the output is just a blank space or blank line before the
?php.
Janet
-
Janet Valade
Author, PHP MySQL for Dummies
--
PHP General Mailing List (http://www.php.net
unique values so that
each value is displayed only once in the check boxes or radio buttons?
Take a look at the function array_unique() which removes duplicate values
from an array. Perhaps this function can help you.
Janet
--
Janet Valade
Author, PHP MySQL for Dummies
--
PHP
' name='first_name' value='$first_name';
Then, in the script that processes the form, update the database record with
the values that were passed from the form.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
:
;;
}?
any reason for that?
It sounds like $name and/or $new_var may be empty. Did you echo the variables
before using them in your form to check whether the values from the database
are actually in the variables?
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
? Or is mysqli support available
only if I compile the Windows version myself?
Thanks,
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Catalin,
Could you please be a little more specific about where on the manual page you
found the answers to my questions. I don't seem to be smart enough to find
them myself. If I was, I wouldn't have had to post the questions to the list.
Thanks,
Janet
In a message dated 9/7/2003 1:13:53 PM
.
Thanks,
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
have to do this when I previously installed PHP 5. I just started having to
copy these dlls yesterday. My question is whether this is a permanent change
to the installation process or something that will be fixed.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
what I need to do to
use MySQL.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
='$scode';
if ($scode== AL)
echo selected;
echo $state\n;
}
?
/select
Good luck,
Janet
?php
function getCodes()
{
$stateCode = array(1= AL ,
AK ,
AZ ,
AR ,
CA ,
CO ,
CT ,
DE ,
DC ,
FL
?php
}
?
Janet
---
Janet Valade
Author, PHP MySQL for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
?
TIA
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
In a message dated 2/19/2003 8:44:53 PM Pacific Standard Time,
[EMAIL PROTECTED] writes:
I have a problem here in array manipulations. I need an output like this
from the queried data :
data1,data2,data3
Any idea how? thanx in advance
$string = ''.implode(',',$testarray).'';
Janet
' and '5' into a $variable.
array_count_values gives you an array with the values for keys and the count
of each value as the value ($array['dog']=5). You can then take that array
apart using extract.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
luck,
Janet
__
Janet Valade
Author, PHP MySQL for Dummies
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, unexpected T_SL in testhere.php on line 5
I looked up T_SL and it is a token representing so that means it just
doesn't get the . Why not? I've tried all the combinations of spaces and
no space in that line that I can think of.
So, what's wrong. Undoubtedly something obvious to anyone except me.
Janet
it. That is the problem. Good eye.
Thank you,
Janet
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Monday, March 03, 2003 9:02 AM
To: [EMAIL PROTECTED]
Subject: [PHP] heredoc problem
Can someone tell me what is wrong with the following code:
headtitleTesting
($to,$subj,$mess,$headers);
This will send the message in $mess as an attachment with the filename
test.txt.
Good Luck,
Janet
---
Janet Valade,
Author, PHP MySQL for Dummies
Author, PHP 5 for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
following it, not even a space. And the ENDSTRING on the last line
must be at the start of the line, with nothing before it, not even a space,
and nothing following it other than the semicolon.
Janet
-
Janet Valade,
author, PHP MySQL for Dummies;
PHP 5 for Dummies
access
chapter from MySQL, Oracle, PostgreSQL, and others. And shows how to use PEAR
DB.
Janet
Janet Valade
Author, PHP 5 for Dummies
PHP MySQL for Dummies
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
.
I promise I won't write any more on this subject.
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
select * from tbl_lit where lit_source like c%
Janet
- Original Message -
From: Wolf-Dietrich von Loeffelholz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 15, 2002 12:09 PM
Subject: [PHP] sql question
i want that a select query display me all words beginning
I'm not sure what you mean by the session is still active, but if you mean
that the variables still are set to the same values, try moving the
session_unregister after the session_unset, but still before the
session_destroy.
Janet
- Original Message -
From: Lee P Reilly [EMAIL PROTECTED
The problem is on this line.
print (INPUT TYPE=\submit\ NAME=\button\ value=\ Submit\\n);
There is a space between the \ and the before Submit.
Janet
- Original Message -
From: Mike C [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, January 19, 2002 4:02
Did you use session_start() on the second page?
In other words, the first page should have
session_start();
session_register(the_var);
$the_var=-here it is;
link or whatever takes you to the second page.
Then the second page needs
session_start();
echo $the_var;
Janet
- Original Message
. A comma on the first line and a
semicolon on the second line.
Janet
- Original Message -
From: Paul Fowler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Sunday, February 17, 2002 8:17 PM
Subject: [PHP] Include file for MySQL insert rows
I am very new at this and am having trouble
, www.apache.org, and follow links to apache-ssl and mod_ssl.
Janet
- Original Message -
From: gaukia 345 [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 18, 2002 5:43 AM
Subject: [PHP] How to start a secure HTTP session?
I heard from my coursemates it's just typing https
Yes, there is a function strip_tags(). Also look at the functions,
htmlentities() and htmlspecialchars().
Janet
- Original Message -
From: Police Trainee [EMAIL PROTECTED]
To: PHP [EMAIL PROTECTED]
Sent: Monday, February 18, 2002 9:47 PM
Subject: [PHP] nullifying php and html tags
you access
$tosend, it has no value. You should be able to get it from $_GET['tosend'].
Or if you are using a version of PHP prior to 4.1.0, you can use
$HTTP_GET_VARS. The problem may be that you have register_globals turned
off.
Janet
If somebody could help me
TYA
Hubert DAUL
Lyon
.
Janet
- Original Message -
From: Torkil Johnsen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 15, 2002 2:07 AM
Subject: [PHP] Session problem
I get this errormessage when trying to make my logon work:
Warning: Cannot send session cache limiter - headers already sent
You need double quotes around the value. E.g.,
input type=hidden name=quiz[owner_name] value=$quiz[owner_name]
- Original Message -
From: Jule [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, May 15, 2002 6:27 PM
Subject: [PHP] method=post problem
Hey guys and gals,
i have a
to pass the session ID yourself.
Janet
Alex
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
cters, e.g. + or .
Janet
--
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]
Thank you. That was exactly the problem.
Janet
-Original Message-
From: Charlie Llewellin [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, February 14, 2001 11:00 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Re: [PHP] ereg problem
the - needs to be immediately after
it?
Perhaps it does not contain what you think it does.
Janet
Cheers,
tedd
--
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I'm trying to call java within php. I have JAVA JRE 1.6 installed. The php
I'm using is distributed by our partner so I couldn't configure it to use
JAVA.
I've modified the php.ini file to add the JRE path to it:
java.class.path=/usr/java/jre1.6.0_01
java.home=/usr/java/jre1.6.0_01/bin
, 2008 11:36 AM, Richard Lynch [EMAIL PROTECTED] wrote:
On Tue, January 15, 2008 12:39 pm, Janet N wrote:
I'm trying to call java within php. I have JAVA JRE 1.6 installed.
The php
I'm using is distributed by our partner so I couldn't configure it to
use
JAVA.
Modifying php.ini doesn't
Hi there,
I have two forms on the same php page. Both forms has php embeded inside
html with it's own submit button.
How do I keep the second form from not disappearing when I click submit on
the first form? My issue is that when I click the submit button from the
first
form (register), the
I have root; I was able to compile php with java and working now. Thanks
all!
On Jan 16, 2008 4:06 PM, Richard Lynch [EMAIL PROTECTED] wrote:
On Tue, January 15, 2008 5:32 pm, Jochem Maas wrote:
Janet N schreef:
with a bit of luck you'll then have a .so file that is your new
extension
is it possible to use input type=hidden for signkey form and put it in
the register form before the submit button? I'm not sure but
is it possible to use hidden to make this work?
Thanks.
On Jan 30, 2008 3:16 AM, Jochem Maas [EMAIL PROTECTED] wrote:
Janet N schreef:
Hi there,
I have two
to it alone, I have decided to keep all steps on one page.
Is there any way to use the hidden attribute of HTML variables to prevent
the output message from overwriting the page?
On Jan 30, 2008 5:30 PM, Jochem Maas [EMAIL PROTECTED] wrote:
Janet N schreef:
is it possible to use input type
The error comes from having output before the session_start(). This
means that anything before the ? would be output. Even a single empty
space.
Janet
Humani Power wrote:
Hi! Im trying to make a login page. I have searched for examples that makes
me check the user name with a database
Here's a page with more info about unsubscribing and problems. Have you
seen this? http://www.php.net/unsub.php
Janet
-Patrick wrote:
Stut wrote:
I've never known an unsubscribe request to need identity confirmation.
Are you sure you're asking the system to unsubscribe you not subscribe
Anyone who is concerned about the trees doesn't need to steal the book.
They can buy it as a PDF.
Janet
Richard Davey wrote:
Hi Crayon,
Monday, July 16, 2007, 4:22:14 PM, you wrote:
I think no matter which way you dice it, sending 1 email is a lot more
energy efficient than printing 1
on it that an
author produced with a typewriter.
Just as a matter of curiosity, do you also spend time writing long
emails correcting people who use the term identity theft?
Janet
Of course, the media moguls have spent decades selling that spin precisely
because they want to confuse the issue
it. But, I buy tons of books.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
errors turned off in your PHP script.
Turn them on until you get it working.
Second, you should be able to use phpMyAdmin to see what the permissions
are for the account you are using.
Janet
brian
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net
many valid users are in the
result, as follows:
$n = mysql_num_rows($result);
if($n 1)
etc.
Janet
if (!$result) {
echo h4UserName is FALSE name is:
$eh4;
echo h4Password is FALSE name is:
$ph4
)
or die(Query failed: .mysql_error());
With this code, if the query fails, the program will stop and an error
message will be displayed.
You also may want to display $query before you execute it to see what,
exactly, is being executed.
Janet
Is there any potential for PHP 5.1.6 to handle
We have an application using PHP. If users have forgotten their
password, they click on the link 'Forgot Password' and enter this e-mail
address. This is suppose to send their new password to the e-mail
address provided. We can not get the e-mail to be sent. I have changed
the php.ini file to
I wasn't really sure where to start looking, but I think I have enough
information that I can go and look at how we have things set up. I will
try to provide more information as I find it.
Thanks
Jochem Maas [EMAIL PROTECTED] 12/4/2006 10:42 AM
Janet Smith wrote:
We have an application using
to the local php.ini file. Then, just put the
specific directive in there, such as:
magic_quotes_gpc = Off
This works on some hosts.
Janet
--
janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
PHP to report errors
for me?
You won't see the notice for an undefined variable with this setting.
You have notices turned off. You will only see warnings and fatal
errors. If you want to see notices, you need to use the following setting:
error_reporting = E_ALL
Janet
--
Janet Valade
,$query);
$fields_form is an associative array of all the fields to be entered
into the database, with the field names as keys and the field values as
values. This code quotes the values in the $values string in the query,
as needed if the values are strings.
Janet
Something like this:
Array
I am new to PHP and am trying to learn how it works.
We have a PHP program that is using MySQL. We are wanting to use our Oracle
database instead. The Oracle database is on a different server that our PHP
program. Does any one know how I can change connections from MySQL to Oracle?
We have
']))
echo radio_test = none\n;
foreach ($_POST as $key = $val)
echo $key = $val\n;
?
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
) to see that this is true. It probably contains false.
You get false when there's a problem with your query. If you echo
mysql_error() after the query, you will get more information about what
is wrong.
Janet
*
Below are snippets of my code,
Line 22: $result = mysql_query(SELECT product_name
($someArray as $someVal) {
if($count is divisible by 20 exactly) {
// do some stuff
}
//do some stuff
}
?
How might i do that?
if($count % 20 == 0 ) {
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
can do this with sprintf, as in:
$str_num = sprintf(%05.0f,$i);
You can use var_dump($varname) to see what kind of data is stored in
$varname.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
THis code no longer seems to work and I am racking my brain trying to figure out what.
It probably has to do with settings in php.ini. The new server probably
has register_globals = off. The old one probably had it set to on.
Try $_GET['area'] instead of $area.
Janet
and it's easy to have it wrong invisibly.
$varname = END
Text of string
END;
The first END must be at the end of the line, nothing after it, not even
a blank space. The last END must be at the beginning of the line, not
before it, not even a blank space.
Janet
--
Janet Valade -- janet.valade.com
elegant, way to be sure PHP can
find them is to copy them into your windows\system32 directory.
Janet
Thanks a lot.
Gregor
--
Startuj z INTERIA.PL!!! http://link.interia.pl/f1837
--
Janet Valade -- janet.valade.com
--
PHP
in php.ini. Check that
error_reporting is E_ALL and display_errors is on.
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
shows what the file is, without having
to look at the contents of any scripts.
Janet
/Perry
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
are not correct. Check the lines
carefully. You may have a typo. You need to add two lines in the correct
location:
LoadModule php4_module libexec/libphp4.so
AddType application/x-httpd-php .php
Janet
Satya Prakash.
Yahoo! India Matrimony: Find your life partneronline.
--
Janet Valade
);
$nRows = mysql_num_rows($qResult);
$rString =n=.$nRows;
If I am just naming a variable how is the argument not valid?
It's not valid because your query didn't execute as you expected. So,
there is no result resource. I would suggest you use mysql_error() after
your query to see what's wrong.
Janet
and
restarted the server, but still got no error message.
Your errors are still not displaying. Recheck display errors and
error_reporting. Your line with the if statement is generating a parse
error. You have an = sign that PHP is sure to complain about.
Janet
--
PHP General Mailing List (http
, your string isn't quoted. That's not causing the parse error in
this message, but will cause a problem after you fix your parentheses.
(e.g., me).
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
added to a single variable as a
string? If so, look at the function implode.
www.php.net/manual/en/function.implode.php
Or, you can have a statement in your forrach loop something like:
$string .= $value. ;
Janet
-
lukem - quality custom t-shirts
browse
);
?
A function that would give you the position to truncate from would be
shorter. But, I don't seem to be finding that function either. So, the
above seems like a solution.
Janet
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
on this statement. It should be:
foreach($admin_get_options_result as $api = $file)
PHP is expecting the ) after $file. Here's the documentation for
foreach. http://www.php.net/manual/en/control-structures.foreach.php
Janet
Can any one please assist.
***ENTIRE CODE STARTING AT LINE 1 FOLLOWS
in advance!
The function mysql_insert_id will return the previous id inserted.
http://us3.php.net/manual/en/function.mysql-insert-id.php
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
bob pilly wrote:
Hi all
Can anyone tell me what '' means before a var?
e.g function($var)
http://us3.php.net/manual/en/language.references.php
Janet
--
Janet Valade -- janet.valade.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
form this table needs to be available to all pages.
Many Thanks in advance for your help
Janet Cook
Software Engineer
IT CM
CSDD
NEC Australia Pty Ltd
Ph +613 9264 3813
Email: [EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Ok - I changed it to
a href=welcome.php3?dbcnxid=?php echo($dbcnx); ?test link/a
First login page now has
http://147.76.130.12/dms/demo/welcome.php3?dbcnxid=?php echo( test
linkthen the login stuff,
and I still don't get the value through
Janet
-Original Message-
From
That's not a lot of help - its a new installation, as far as I know
everything has been done to default settings.
What can I do to check the server setup
Janet
-Original Message-
From: Martin Towell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 20 February 2002 10:59
To: 'WG4- Cook
Thanks for the suggestion but it made no difference!
I am still getting nothing through
I think its something to do with the test link bit - what actually should
go in here - how does it relate this to all links?
Janet
-Original Message-
From: Rick Emery [mailto:[EMAIL PROTECTED
Well I tried setting the variable to a constant value and it still didn't
work. What I eventually want to pass is an ID retrieved from the DB that
will be needed by every page
Janet
-Original Message-
From: Simon Willison [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 21 February 2002 2
it with the variables passed to each page or is there a
simpler way of doing it. Can I put the variable in an include file and
include it in every page - will that work?.
Surely someone must have had a similar situation before and can tell me how
they solved it.
Many thanks
Janet
--
PHP General
$whoid;
?
The connection establishes, but the values do not appear to be there in the
jtest page?
Any ideas
Thanks
Janet
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
userDelete User/br
input type=radio name=admin_do[] value=Add new documentAdd new
document/br
br
input type=submit name=submit value=Select
/form
I have tried various things in admin.php but nothing gives me which radio
button was selected.
TIA
Janet
--
PHP General Mailing List (http
( value is $myval br);
echo ( admin_do is $admin_do br);
echo $HTTP_POST_VARS['admin_do'];
for ($i=0; $i 5; $i++)
{
echo ( counter = $i value is $admin[$i] br);
};
?
the only value I get is the $admin_do which has the value Array - not much
help
Any Ideas?
Janet
-Original
Thanks Matt,
I've got it working now - there must be another admin_do[] somewhere - I
changed it to adm_do and it worked!
Thanks for your help
Janet
-Original Message-
From: Matt [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 6 March 2002 11:41
To: WG4- Cook, Janet
Cc: PHP List
no value
mysql.default_socketno valueno value
mysql.default_user no valueno value
mysql.max_links Unlimited Unlimited
mysql.max_persistentUnlimited Unlimited
Thanks
Janet Cook
--
PHP General Mailing List (http
84 matches
Mail list logo