[PHP] Re: Arrays

2006-02-04 Thread Eli
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

[PHP] Re: Arrays not recognized in Simple XML Objects (using print_r)

2005-03-23 Thread Elizabeth Smith
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 -

[PHP] Re: Arrays & Keys?

2004-03-25 Thread John Taylor-Johnston
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

[PHP] Re: Arrays & Keys?

2004-03-24 Thread Nadim Attari
> 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

[PHP] Re: arrays and php

2003-09-30 Thread pete M
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

[PHP] Re: arrays

2002-12-15 Thread drparker
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

[PHP] Re: arrays, variables, and register_globals--solved--thank you

2002-07-25 Thread Matthew K. Gold
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

[PHP] Re: Arrays and Regs

2002-07-19 Thread Martin Clifford
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

[PHP] Re: Arrays and Regs

2002-07-18 Thread Richard Lynch
>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

RE: [PHP] Re: Arrays

2002-06-10 Thread John Holmes
$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

RE: [PHP] Re: Arrays

2002-06-10 Thread Martin Towell
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

[PHP] Re: Arrays

2002-06-10 Thread Dan
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

[PHP] Re: arrays

2002-05-26 Thread Michael Virnstein
> 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

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
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

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
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

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
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

Re: [PHP] Re: Arrays/OOP

2002-03-05 Thread Joshua E Minnie
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

[PHP] Re: Arrays/OOP

2002-03-05 Thread Michael Kimsal
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

[PHP] Re: Arrays as pointers?

2002-01-24 Thread David Robley
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++) { >

[PHP] Re: arrays

2001-12-24 Thread Peter Clarke
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]...

[PHP] Re: arrays

2001-12-21 Thread Jeremy Reed
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 >

[PHP] Re: arrays

2001-12-21 Thread Jeremy Reed
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

RE: [PHP] Re: Arrays in form

2001-10-21 Thread Brian Tanner
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

[PHP] Re: Arrays in form

2001-10-21 Thread Yasuo Ohgaki
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