Philip W. wrote:
Sorry if this question seems stupid - I've only had 3 days of PHP
experience.
When using the following string format, I get an error from PHP.
$text['text'] = String Text ;
Can someone help me?
This seems ok and should not give any error. Mabye the error is of
something
Yashesh Bhatia wrote:
hi! i'm trying to use the simple_xml functions to get an arrray of
data from a sample xml file.
here's my sample_data.xml
?xml version=1.0 encoding=ISO-8859-1?
sample_data
http://www.php.net/manual/en/function.setlocale.php
That is the problem. I have tried that, but it needs to be installed. I'm not in a
position to ask on this particular server. I have PHP Version 4.3.4 all the same.
http://www.glquebec.org/English/test.php
The code echoes
Friday 22 December
I'm doing the language thing.
Is this what u r looking for ?
http://www.php.net/manual/en/function.setlocale.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
echo td width=\15\ bgcolor=\#9FD9FF\
input type=\checkbox\ name=\chkR[$i]\
value=\$chkSessionF[$i]\/td);
might solve the problem
pete
hi I have a table with rows and each row contains a checkbox ( array) and a
record. TD of the checkbox:
echo(td width=15 bgcolor=#9FD9FFinput type=checkbox
this should work:
for ($i=0; $i5; $i++) {
$mypics[$i] = $picture;
}
Edward Peloke wrote:
Ok, very basic question, how do I am going through a loop 5 times, each
time, I want to store a value into an array, do I simply set the value of
$picture=array($mypics);
and each time it loops it
Thank you very much, David--you understood the problem exactly and your
solution worked perfectly!
I'd like to add a comment about mysql_data_seek to the php manual entry on
mysql_fetch_row, because I would think that this might be a common
problem...
Matt
- Original Message -
From:
Firstly, many thanks to Richard and Dan...
A quick test script in PHP would have been faster than asking... :-)
It was just one of those questions that I had burning in my mind at the time, and
since I don't have access to PHP at work (As if the Government would allow that!), I
had to ask :o)
Just a performance question, if anyone knows for sure. Within a large
array, would using numerical indices be quicker than associative? I'm
talking about a *noticeable* difference in performance, here.
Almost for sure, nope.
Run a test for yourself.
Also, on Regular Expression
I have figured out how to do it thanks for you guys help..
Just one thing...
?
$contact = array( 'moreinfo.php' = 'More Info'
, 'contact.php' = 'Contact Us'
, 'apage.php' = 'A Page'
);
foreach ($contact as $link = $name)
{
echo lia href='. $link .'. $name ./a/libr;
}
?
What I need
]
Subject: [PHP] Re: Arrays
I have figured out how to do it thanks for you guys help..
Just one thing...
?
$contact = array( 'moreinfo.php' = 'More Info'
, 'contact.php' = 'Contact Us'
, 'apage.php' = 'A Page'
);
foreach ($contact as $link = $name)
{
echo lia href='. $link .'. $name
: [PHP] Re: Arrays
I have figured out how to do it thanks for you guys help..
Just one thing...
?
$contact = array( 'moreinfo.php' = 'More Info'
, 'contact.php' = 'Contact Us'
, 'apage.php' = 'A Page'
);
foreach ($contact as $link = $name)
{
echo lia href='. $link
Can arrays be passed to functions just like a simple variable?
yes, no difference. You can pass every variable to a function, you can pass
constants or your values directly. You have to use a variable if a function
requires passing by reference or if you want to pass by refernce, because
only
Joshua E Minnie wrote:
while(!feof($fp)) {
$temp = fgetcsv($fp, 1024, :);
$event_list[$i] =
$event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$temp[6],$temp[7],$temp[8]);
$i++;
}
Without seeing more of the code, I can't say for certain, but I
Michael Kimsal wrote:
Joshua E Minnie wrote:
while(!feof($fp)) {
$temp = fgetcsv($fp, 1024, :);
$event_list[$i] =
$event_object-init($temp[0],$temp[1],$temp[2],$temp[3],$temp[4],$temp[5],$t
emp[6],$temp[7],$temp[8]);
$i++;
}
Without seeing more of the code, I
Joshua E Minnie wrote:
Michael Kimsal wrote:
Attached you will find the class definition. Thanks in advance..
Joshua E Minnie
CIO
[EMAIL PROTECTED]
What version of PHP are you using? I took the file and it seemed to
work OK in PHP 4.0.5.
Michael Kimsal
Michael Kimsal wrote:
What version of PHP are you using? I took the file and it seemed to
work OK in PHP 4.0.5.
Michael Kimsal
http://www.phphelpdesk.com
734-480-9961
I am currently using PHP 4.1.2. Maybe it's in the file that I am using for
testing, I have attached the code.
Joshua E
Michael Kimsal wrote:
Still works - at least, I'm not getting the error you posted. Is there
something else we may be missing? What line(s) are causing a problem?
On line 21 of the corrected test file that I attached previously.
Joshua E Minnie
[EMAIL PROTECTED]
--
PHP General
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] says...
A friend of mine showed me this code recently.
function firstLogin_string() {
mt_srand(make_seed());
$pool = AaBbCcDdEeFfGgHhIiJjKkLlM;
$length = 26;
for($i=0; $i $length; $i++) {
$key .=
The best thing for converting XML to HTML is XSLT (that's what it was made
for). PHP can do the convertion using the XSLT functions (which require
Sablotron):
http://www.php.net/manual/ref.xslt.php
Peter
Php Dood [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well, to do this you'll just have to write a loop that takes in every
identifier=value pair and converts them into an array of values attached
to the tag name. You'll have to parse the input character by character.
The following pseudo code might help to explain a bit:
// input[x] refers to the
Oh, and don't forget to check for the trailing tags i.e. the /report etc.
Jeremy Reed [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Well, to do this you'll just have to write a loop that takes in every
identifier=value pair and converts them into an array of
Use JavaScript.
Read PHP Manul if you need to pass array form vars.
There is a section for that.
Srinivasan ranganathan wrote:
Hi all
How can i implement a hotmail-inbox like checkbox
functionality?
thanks in adv
Regards
Srinivasan Ranganathan
--
Yasuo Ohgaki
--
PHP General
-Original Message-
From: Yasuo Ohgaki [mailto:[EMAIL PROTECTED]]
Sent: October 21, 2001 10:50 PM
To:
Subject: [PHP] Re: Arrays in form
Use JavaScript.
Read PHP Manul if you need to pass array form vars.
There is a section for that.
Srinivasan ranganathan wrote:
Hi all
How can i implement
24 matches
Mail list logo