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
amit
amar
-
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 1
> 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 "
");
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("");
as you can see the array of checkboxes is called chkR.
When the user clicks a submit button it calls the same
page and the value of the array i
this should work:
for ($i=0; $i<5; $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 loo
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: Dav
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
>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 replaceme
$echo .= "". $name ."";
Notice the . in .=
Equivalent of saying $echo = $echo . "". $name
."";
---John Holmes...
> -Original Message-
> From: Dan [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 10, 2002 9:36 PM
> To: [EMAIL PROTEC
use ".=" instead of "="
$echo .= "". $name ."";
(remember to initialise $echo = "" somewhere first just in case is contains
something from elsewhere)
-Original Message-
From: Dan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 200
I have figured out how to do it thanks for you guys help..
Just one thing...
'More Info'
, 'contact.php' => 'Contact Us'
, 'apage.php' => 'A Page'
);
foreach ($contact as $link => $name)
{
echo "". $name ."";
}
?>
What I need to do now is in the echo string is make use something l
> 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 va
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 Mail
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.
Joshu
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
http://www.phphelp
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
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, bu
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++) {
>
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]...
Oh, and don't forget to check for the trailing tags i.e. the 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
> = pair and converts them into an array of values
attached
>
Well, to do this you'll just have to write a loop that takes in every
= 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 character at po
essage-
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
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 Genera
24 matches
Mail list logo