I have a page with a Form and a Checkbox.
I have a second page which wants to do something depending on if the
checkbox is selected or not.
If its selected there is no problem. But if I tryand do anything if
it isn't selected then it says the variable is 'undefined'. How can I
test
For
$xyz = Hello World;
echo forminput type=test size=25 value=$xyz/form;
?
The text box shows up with Hello NOT Hello World. How do I get the
entire variable?
I would try single quotes here.
$xyz = 'Hello World';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
That's GREAT ! :-)
I remember back in the day
BIG SNIP
Sorry, couldn't resist. ;)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
p=4.78
I wonder if a dot is a valid character for a URL adderss?
Hi,
Just been getting some weird results from a query...can anybody tell me
why..?
Basically am sending 3 variables via a link on the page...
http://localhost/show_accounts.php?o=8927437717300145n=shanep=4.78
which runs the
Looks like the Doubles are not exactly zero. Must be some precision
points not displaying.
Ok... It's Friday and maybe my brain is dead, but I'm having a weird
problem with some basic math.
Here's a little snippet of the code I'm working with:
---
echo
Cool.
There must be a way to display out the full doubles precision huh.
Thank you so much for the help, folks. That turned out to be weird, but
correct. Rounding off to 4 decimal point places solved the problem quite
nicely.
-- jon
-Original Message-
From: Daniel Clark
I understand you can use base64_encode and decode.
http://www.phpbuilder.com/manual/function.base64-encode.php
i have the problem that i want to put an image into a firebird
database.
the
problem is that when i copy the code of the image into my sql syntax,
the
code contains ' and and
I believe the PHP.INI has to be set with a Session variable temp directory.
Hi Puiu,
I've been having the same problem too. My code that worked up until
recently
just stopped working. I did change from using:
session_register(user_id);
if (!(user_id)){
to using:
session.save_path string
session.save_path defines the argument which is passed to the save
handler. If you choose the default files handler, this is the path
where the files are created. Defaults to /tmp. If session.save_path's
path depth is more than 2, garbage collection will not be
Or you can us client side JavaScripting.
Hello Dominique,
Tuesday, March 2, 2004, 6:31:00 PM, you wrote:
DA Is there a way with php to force the user to put only numeric
character in a text field ?
No, because that's a client-side thing. You can however use the PHP
function is_numeric()
That would be a great function, but I haven't heard of anything like that.
I'm creating a form with 170 fields, and I'd like to create
an intermediary page so the user can review their info
before submitting it again to the emailing script.
Since the form has so much data, I was hoping I
You could loop throught the $_POST[] data and create 170 hidden fields
with about 3 lines.
When you create the view page store all of the passed variables in
hidden form fields. That way they can then be submitted on to the next
script.
I could do it that way, but I was hoping for a way of
foreach($file as $value ){
print $valuebr;
}
// This will print first and sixth line from the text file:
$file = file(people.txt);
print $file[0]br;
print $file[6]br;
// But how to print all the lines from [0] to [6] ?
// Hope you understood my problem.
--
PHP General Mailing List
ord() -- Return ASCII value of character
http://www.phpbuilder.com/manual/function.ord.php
Hi!
Is there a function to convert a ASCII char to decimal or binary?
Or a program?
csko
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Wow, thanks John !
Number values starting with a leading zero are assumed to be octal values.
Octal 11 = Decimal 9
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Doesn't putting and x11 tell PHP it's a decimal format?
$id = 11;
$id2 = preg_replace(/^0+(.*)$/,\\1,$id);
echo $id2; // Displays 9
echo $id; // Displays 9 as well.
If the number begins with a zero, there seems to be no way to tell PHP
this
is an
Found this:
$a = 1234; # decimal number
$a = -123; # a negative number
$a = 0123; # octal number (equivalent to 83 decimal)
$a = 0x1A; # hexadecimal number (equivalent to 26 decimal)
http://www.phpbuilder.com/manual/language.types.integer.php#language.types.integer.casting
hm
ever tryed
I had some similar problems ! Here's what I did.
include $_SERVER['DOCUMENT_ROOT'] . '/includes/_myInclude.php' ;
Putting the DOCUMENT_ROOT ensured I was always pointing to the top
directory of the web pages.
Daniel Clark
I have a problem. My directory list is similar to this:
root
I agree. I believe the default FORM METHOD is GET.
One problem
wrong
form action=wierd-var-test.php?action=post
right
form action=wierd-var-test.php method=post
?action is a variable with a value of post
-Blake
DvDmanDT wrote:
Hmm.. Are there any PHP settings that only applies to
I am a newbie PHP programmer, I have some code that works but I want some
tips on how I an Improve my code, i.e. should I be doing my updates /
include (../db.php);
Some things I do is use single quotes include '../db.php' ;
(they are slightly faster, no replacments looking for $
Try something like this. (assuming POSITION is your peoples status
within the organization
$r1=SELECT * FROM $main_tbl WHERE position IN ('A', 'I', 'L') ORDER BY
position;
I would like to only show people who are active within our roster and
within
the database I have identified those
I think you need a WHERE clause for the UPDATE, otherwise it will update
ALL the records.
e.g. WHERE OwnerName='$result'
Then perhaps a redirect to another page.
I probably need to use if(isset($submit)): and an update statement, but my
attempt just causes the web page to display completely
For the submit button to work it has to be in a form.
FORM ACTION=blah_blah.php METHOD=post
INPUT TYPE=submit
/FORM
Hope this helps.
Daniel Clark
pcenterinput type=submit name=submit value=Update
Data/center/p
... more code ...
/table
?
endif;
?
/body
/html
I agree, the only way I see it can be done is to read the include file
in as Text, and parse it.
I have a script that is run with a cronjob and would like to fetch some
variables from it, using another file, without the script executing.
I could resort to putting the variables in a third
Something I like to do during troubleshooting is to have the page display
the SQL statement I'm processing.
Something like: print sql_query ;
That was I can verify all the parameters are correct.
Do you have autocommit ON? Or need to pass a commit statement?
Daniel Clark
Of course, I
My understanding is if the variable exists then the radio button was
checked.
i have this code:
?if($old['Type']==Annual){?
input type=radio name=eventtype value=Annualchecked
accesskey=yYes
?}else {?
input type=radio name=eventtype value=OneTime checked
accesskey=nNo?}?
was just
www.phpbuilder.com has some wonderful articles for beginners and advanced.
Hi,
Am working through a PHP Book (I am a noob), and it appears to fall over
on
the first tutorial.
Any ideas where I can get help?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Todd,
I think you want the session_id() function.
http://us3.php.net/manual/en/function.session-id.php
I am trying to understand sessions are done with php. My learning
script has the following:
session_start();
if (isset($_SESSION['firstname'])) {
$_SESSION['firstname'] =
I'm not certain.
I normally use session variables to store and hold login username or order
state.
e.g. $_SESSION['username']
If I use session_id(), I do get a value. However, I have
session_use_cookies = 0 and I do not have a value for SID. Is that
correct?
Todd
--
PHP General
As suggested, if I turn off cookies in my browser, then SID is set. So
the directive in php.ini does not cause the use of cookies to be
completely turned off?
My understanding is the php.ini sessions.save_path(?) is for PHP to have a
temp directory to write session information on the server.
What about line 148 the { ... supposed to be there?
Brian V Bonini wrote:
Parse error: parse error, unexpected $ in /foo/bar/foo.php4 on line 150
146: /p
147: ?php
148: }
149: include foobar.inc.php4;
150: ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
The PHP code is processed on the web server and removed. Only the HTML
and images are sent back to the clients browser.
I'm just starting to get PHP, and I'm wondering about the security of the
code I write. It _seems_ that when I try to download the PHP file directly
(like using Save
Are you sure there is data in name, phonenumber, age ??
Well, I've hit all the forums and tried it a few different ways, but I
still
can't get this code to work. At this point it just shows me an empty
table
with column headings. I am new and still experimenting, but can someone
tell me
Yes, that works.
Is the following code the best way to redirect someone to a different
page using PHP?
?php
header(Location: http://www.yahoo.com;);
?
I looked for a redirect function of some kind and didn't come up with
anything. Just curious what the consensus is...
The browser doesn't know what to do with PHP code.
If I put the following script in a .php file it would work but if I put it
in an .html file doesn't work, why? script tag is only used in .html file.
script language = php
echo ul;
if ($handle = opendir('.')) {
while (false !== ($file =
I should have also said:
Because it's missing the ?php and ? tags, the web server isn't going to run the
code, but pass it back to the client browser.
If I put the following script in a .php file it would work but if I put it
in an .html file doesn't work, why? script tag is only used in .html
How about count()
That's how you could do it ...
$ar = array();
$len = strlen($a);
for ($i = 0; $i $len; ++$i) {
$ar[] = $a{$i};
}
HTH
Richard
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Beyond Compare is a pretty cool diff program. www.scootersoftware.com
They have a demo version.
Scenario :
Im working on several large projects, all which have several users.
Each user has a personal innstallation.
Each of my projects are in constant development, and often the updates
Can you post the code and error.
I took out the scrip tags and put in ?php in the beginning and ? at the
end, but it returns this:
$file
; } } closedir($handle); } echo
; ?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
str_replace( $line, '\n', '')
http://us2.php.net/manual/en/function.str-replace.php
How do i turn this...
[br]
[b]My Title [/b]
[br]
into
[br][b]My Title[/b][br]
--- I just need to have line breaks removed basically...
any ideas?
--
PHP General Mailing List (http://www.php.net/)
To
You have this as a xxx.php file right?
It has to have a .php extension for it to work.
I put this in the body of an html file:
?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != . $file != .. eregi('\.html$', $file)) {
echo lia
The web server is set up to see the .php file extension and pass the entire page to
the PHP engine for processing. Then the web server passes the
results back to the client's browser ( HTML, text, and images).
Yes, the server supports php, and I don't want to make it into a php file
because
Do yo have have start_session() on every page to before you can read session variables?
Dear list,
I am trying to set a simple session variable on PageA.
$_SESSION['CategoryID'] = intval($Data['ID']);
if I print after setting the value on PageA, I will
get the expected ID number.
go on to
I'm using www.phpwebhosting.com
On Mon, 2004-04-19 at 15:14, Martin, Stanley G [Contractor for Sprint]
wrote:
Some time ago I put up a web site on Domehost.com. Everything has been
working great and I had a couple questions for their Tech Support but
haven't received any feedback from
hum. Try $_SESSION['test'] on page 2.
I have two test files running on a server, which is giving me a headache,
due to the fact the session variables are not been maintained across the
two
pages.
The server is running ...
PHP Version = 4.0.5
register_globals = ON
Session Support =
Does page1 call page2?
Or do you open another browser window and open page2?
My understanding is some browsers to NOT transfer the same session info to
another borwser window.
Tried that as well as $HTTP_SERVER_VARS, $_SESSION, etc., still cannot get
the damn thing working.
Regards,
I agree. $_GET[] would expose the username and password on the URL.
For ease of use, i would create a session and handle it that way or you
could pass it through $_GET[]
Query string.
Would recommend $_SESSION though.
Cheers
Sobajo [EMAIL PROTECTED] wrote in message
news:[EMAIL
What about removing the quotes around the numbers.
if ($cat_id != 53 || $cat_id != 54 || $cat_id != 55 etc...
My IF statement should be picking up on the numbers, and if the number
matches not be displaying out the information, however I look at the
outputted page and the information is
Because the Javascript onclick event runs in the client browser, you could call a php
file that has and runs a particular php function.
Is it possible to call php function in the onclick event ?
REgards,
Uma
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I think you want to remove the single quotes around the field names.
SELECT * FROM my_table WHERE (field_1 LIKE '%$keyword%' OR
field_2 LIKE '%$keyword%' OR field_3 LIKE '%$keyword%') AND
status = 'active';
I STFW and RTFM and I still can't figure out why this returns a 1064
parse error:
The parenthesis are OK. The query might take a long time to run with 3 LIKE
statements.
Backticks, single quotes, or nothing at all makes no difference. I
believe the parsing error is due to my parentheses or AND/OR structure.
Any thoughts on that?
On Apr 23, 2004, at 8:32 AM, John W.
Sounds right.
Do you have a C:\temp directory?
How does one get sessions working on Windows? I have modified my php.ini
file so that session.save_path = C:\Temp, restarted and Apache. Still I get
this error message:
Warning: session_start(): open(/tmp\sess_26310affee160329c9e50f27663f8971,
I think you need to restart PHP to pickup the new php.ini changes.
My php.ini is in the windows directory (I believe).
-Original Message-
From: David Mitchell [mailto:[EMAIL PROTECTED]
Sent: 12 May 2004 13:21
OK, I managed to get it working.
I first attempted to edit the php.ini
I just read something about sock warnings this morning. It said
sometimes they drop off, and to ignore the warnings, but capture the
errors.
I get this output:
PHP Warning: socket_read() unable to read from socket [35]: Resource
temporarily unavailable in
http://www.php.net/manual/en/ref.sockets.ph
I just read something about sock warnings this morning. It said
sometimes they drop off, and to ignore the warnings, but capture the
errors.
I get this output:
PHP Warning: socket_read() unable to read from socket [35]: Resource
temporarily
Guess it really is experiemental :-)
http://www.php.net/manual/en/ref.sockets.ph
Yes, I've read that page... many times. It has not helped me. That is
why I am posting my problem here, in that hopes that someone can help.
(I don't mean to be completely helpless, but I just don't yet
Hi Bill.
Put something like:
FORM ACTION=read_form.php METHOD=post
##your form selections here##
/FORM
Then on your read_form.php page:
$what_they_selected = $_POST['name1']
A question about forms and PHP. I have a dropdown list which gets the lines
in the list from DB. Like this(col1 is
Does the img directory have writes permission?
Please,
Can anybody help me with my problem !! I'm getting crazy.
I am trying the upload a file to the server where my website is.
I get always the same fault when I want the try this code:
Warning: Unable to create 'test.jpg': Permission
You need to name your session variables, but no name for session_start().
It is necessary to always name your sessions?or is session_start()
sufficient?
Thanks,
Eddie
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It could be a HTML table with links on the properties to view more details.
I am currently working on a site for a vacation rental company. They
want
the ability to show users the availability of certain properties. The
availability will be held in a mysql db so I assume I will have to
Think you want something like this.
require(/tristan/library.php);
Hi,
I'm almost ashamed to ask this question as surely enough the
problem is something very basic but, nonetheless, I can't put my finger on
it. I'm trying to implement the concept of a library (library.php) on
How about round()
echo round(1.95583, 2); // 1.96
echo round(1241757, -3); // 1242000
http://www.phpbuilder.com/manual/function.round.php
Hi, I have a randon group of numbers I need the average of. When I add
them up and divide by how many there are and print the result, I get a
lot of
What about:
$_SERER['PATH_TRANSLATED']
http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server
Does anyone know a quick way to find the full path on a shared hosting
plan
to use in an include file?
Thanks,
Tom
--
PHP General Mailing List (http://www.php.net/)
oops. $_SERVER[]
What about:
$_SERER['PATH_TRANSLATED']
http://www.phpbuilder.com/manual/reserved.variables.php#reserved.variables.server
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thanks John.
From: Daniel Clark [EMAIL PROTECTED]
Does anyone know a quick way to find the full path on a shared hosting
plan to use in an include file?
What about:
$_SERER['PATH_TRANSLATED']
If you note my message from yesterday, I was having some trouble with this
variable
I agree. Once the screen, text, or picture is on the clients machine they have a
copy of it.
Petr U. wrote:
On Sat, 08 May 2004 21:00:43 -0500
Anguz [EMAIL PROTECTED] wrote:
Do you know any solution that can help me. I've find an application named
HTML guard but it only work for
Yep. I'm getting it too.
Each time I post a message on p.general, i receive two strange mails
from ADVANCE CREDIT SUISSE BANK.
What's this spam ? It looks like an auto-responder is subscribed on the
newsgroup. Spammers really s*x !
Greg
--
PHP General Mailing List (http://www.php.net/)
To
Think you want
?php
$page_title = Welcome;
echo $page_title;
?
I have write following code:
?php
$page_title = Welcome;
?
But I can not see Welcome on top of the page.
Can someone tell me why I not can see it?
Thanks
Erik Gjertsen
--
PHP General Mailing List (http://www.php.net/)
To
No I don't think so.
I need to go to another page and I use the
header(location: . $the_url_to_the_page);
Is it possible to use this method with POST so that the info does not
show in the URL?
Todd
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
You could create a new FORM with hidden variable. And have an automatic
submit onload, going to the next location.
I need to go to another page and I use the
header(location: . $the_url_to_the_page);
Is it possible to use this method with POST so that the info does not
show in the URL?
Yes I agree, SESSION variables would be a pretty good way to pass info to
the next page.
Daniel -
What is the best way to go to another page?
header(location: . $new_page);
Todd
Daniel Clark wrote:
No I don't think so.
I need to go to another page and I use the
header(location
Yes. My understanding turning globals off stops using $PHP_AUTH_PW directly.
Hi, Even with register globals off isn't it possible to have a webpage
like this:
html
head
/head
h2Hello, ?php echo $_SERVER['PHP_AUTH_USER']; ?
pI know your password is ?php echo $_SERVER['PHP_AUTH_PW']; ?
That is the way I've done it.
I hear that with PEAR, you can add elments to the HTML page.
I have a large HTML form (~100 form elements) that I used a year ago to
conduct a survey. Now I would like to use this same form but rather than
starting with an empty form I would like to populate the
Are you looping through the record set?
SELECT * FROM NewsArchive WHERE YEAR(date) = ' . date('Y') . ' AND
MONTH(date) =' . date('m') . ' ORDER BY sort DESC;
Well, still not working...but maybe closer? Not getting an error message,
just not returning any data.
--
PHP General Mailing
Are you getting any output?
?php require_once('Connections/jpike.php'); ?
?php
mysql_select_db($database_jpike, $jpike);
$query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(date) = ' .
date('Y')
. ' AND MONTH(date) = ' . date('m') . ' ORDER BY sort DESC';
$rsENews =
Netscape browser?
In your browser have you checked View Source to see it table data is there?
no.
- Original Message -
From: Daniel Clark [EMAIL PROTECTED]
Are you getting any output?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Just for right now, go ahead a make the date change, or elimate the date
range to get SOMETHING to come out.
Just change the . date('m') to the actualy month you want if not the
current month.
except if I have to specify the specific month I want, then every month I
have to go in and
Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Just for right now, go ahead a make the date change, or elimate the date
range to get SOMETHING to come out.
Just change the . date('m') to the actualy month you want if not the
current month.
except if I
Hey Melissa.
Will your articles always had a certain number (for each section) each
month? If so a ORDER BY and LIMIT would work.
Daniel
I am trying to query a table that consists of e-news artilces. in the
table
are the following fields: ID, sortBy, datePublished, title, description.
I found this in the manual:
HTTP_REFERER'
The address of the page (if any) which referred the user agent to the
current page. This is set by the user agent. Not all user agents will set
this, and some provide the ability to modify HTTP_REFERER as a feature. In
short, it cannot really be trusted.
OK how about.
Do a count of this monthes articles, if NONE, then run another query to
select the previous months articles. Note, this would only publish this
or last monthes records.
there are a different number of articles each month...:(
Daniel Clark [EMAIL PROTECTED] wrote in message
I uses form variables and method=post to sent them to the next page.
On your 2nd page it's inserting into the database, so past that page, if I want to
retain the variables I either read them again from the database OR
store those variables as $_SESSION variables.
How would I carry a variable
On the URL, use ? to separate the file name from the variables, and to separate each
additional variable.
. logdate=
URL=check.php?Event_Type=?=$_POST['Event_Type'];?logdate=?=$_POST['logdate']; ?
How would you carry two variables?
META HTTP-EQUIV=refresh content=0;
I think you want double quotes around the entire line and \ for the internal double
quotes.
echo META HTTP-EQUIV=\refresh\ content=\0;
URL=./Conference_Calls.php?Date_and_Time=$_POST['Date_and_Time']';
I have tried both of these statements and neither one works Trying to get
the Date and Time
or T_VARIABLE or T_NUM_STRING in c:\inetpub\wwwroot\check.php on
line 9
Daniel Clark [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I think you want double quotes around the entire line and \ for the
internal double quotes.
echo META HTTP-EQUIV=\refresh\ content=\0;
URL
http://www.php.net/manual/en/control-structures.foreach.php
Try this.
echo GET:BR;
foreach($_GET as $key = $value)
{
echo $key = $value br;
}
i know it could be a stupid problem, but i need a help and i hope u could be
generous with me :).
this is my code, it writes the list of POST
Ah.
Must have a POST variable in that page called Date_and_Time.
Tried it and this is the error that I get
Notice: Undefined index: Date_and_Time in c:\inetpub\wwwroot\check.php on
line 9
META HTTP-EQUIV=refresh content=0;
URL=./Conference_Calls.php?Date_and_Time=
--
PHP General
echo META HTTP-EQUIV=\refresh\ content=\0;
URL=./Conference_Calls.php?Date_and_Time=\.$_POST[\$Date_and_Time\]\;
I have tried both of these statements and neither one works Trying to get
the Date_and_Time to be carried in the URL. Any Help please.
print 'META HTTP-EQUIV=refresh content=0;
I've done a couple things. One is to use isset() and check first.
The other is to add a hidden input field, that way something is always sent.
input type=hidden name=test_arr[]
input type=checkbox name=test_arr[]
input type=checkbox name=test_arr[]
Best readers,
//PHP version: 4.3.6
I
This works providing there has NOT been any header (HTML) info outputed.
if (1==a)
header(Location: thisotherfile.php);
Hi,
I want program execution to go to one of several other files
based on a decision.
For Example.
if (1==a)
go to this .php file
if (1==b)
go to
Try a session_start() at the top of pages, see if that works.
Maybe the auto_start does not work.
I've posted several times mentioning that I am completely unable
to cause sessions to persist. Over the intervening time, I have
replicated this problem to a different machine, with the same
Try putting your HTML below setting the cookie.
I'm getting this error:
Warning: Cannot add header information - headers already sent by (output
started at /home/tiempodemaria/main.php:3) in /home/tiempodemaria/main.php
on line 11
With this code in main.php:
html
?
How about rand() on your ID column.
http://www.php.net/manual/en/function.rand.php
How's that for alliteration in a subject line?
Got a simple MySQL table that contains records which are made up of only
three fields - ID, quote and author. These are inspirational quotes that
I want to appear
Should username have quote around it? Wouldn't it try to make it a constant
otherwise?
echo $_SESSION['username']
Hi,
All my session_start() calls were working fine.
But since yesterday the vars i use does not keep there value
i use $_SESSION['varname']
Nothing has been changed to the
LOL :-)
Jonesy mailto:[EMAIL PROTECTED]
on Monday, May 24, 2004 2:21 PM said:
WFM:
|$ ping ibm.com
|PING ibm.com (129.42.18.99) 56(84) bytes of data.
:
wow. that's the weirdest looking php i've ever seen. is that a beta or
something?
chris.
Session handling was added in PHP 4.0.
The first line of my file is session_start(); but whenever I try to set
or reference $_SESSION['anything'] I get:
Undefined variable: _SESSION
What's up with that???
- Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I think it's someone else on the list getting the email lists, and spaming.
Signed up litterally 1 minute ago and I'm already getting spam. From
Advance Credit Suisse Bank
Great. Thanks php.net.
Guess you can't even trust the well known sites not to slam you with spam.
--
PHP General Mailing
What does the { } around the array mean?
From: Bob Lockie [EMAIL PROTECTED]
echo \ . $search_for_list[$i][0] . \ works but
echo \$search_for_list[$i][0]\ prints Array[0].
$search_for_list[$i] is an 'Array' which is followed by the string '[0]' ...
how is PHP supposed to know you mean
Thank you John, and Michal :-)
From: Daniel Clark
echo \{$search_for_list[$i][0]}\; will work, btw.
What does the {}around the array mean?
It delimits your variable so PHP knows what to interpret as a variable and
what to interpret as a string.
$ar[1] = 'foo';
echo Value is {$ar[1
Good point Justin !
John W. Holmes wrote:
From: Daniel Clark
echo \{$search_for_list[$i][0]}\; will work, btw.
What does the {}around the array mean?
It delimits your variable so PHP knows what to interpret as a variable and
what to interpret as a string.
$ar[1] = 'foo';
echo
1 - 100 of 155 matches
Mail list logo