Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Robert Cummings
On Sun, 2006-12-17 at 23:19 +, julian haffegee wrote: > > will set the element of ordinal number 0 and key ' 2' to 'dog'. To get > > that value you would either ask for $array[0] or $array[' 2']. > > > thanks for all the comments so far, i'm not sure you are understanding what > I am askin

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread julian haffegee
will set the element of ordinal number 0 and key ' 2' to 'dog'. To get that value you would either ask for $array[0] or $array[' 2']. thanks for all the comments so far, i'm not sure you are understanding what I am asking for. My problem is NOT knowing what is in the arrays, but how to ac

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Jochem Maas
don't hijack an existing thread. (i.e. don't reply to someone elses' post/reply if your asking a new question. you need to learn to use var_dump(), and if you look at the line of code below you should have everything you need to know about numeric array keys: $a = array(2 => "foo"); $b = array("2

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Satyam
- Original Message - From: "julian haffegee" <[EMAIL PROTECTED]> To: Sent: Sunday, December 17, 2006 7:31 PM Subject: [PHP] PHP problem with array keys / pointers Hi all, I've a problem thats been bothering me for a week now I have an array $animals keys and values like this 1 =

Re: [PHP] PHP problem with array keys / pointers

2006-12-17 Thread Pintér Tibor
1 => cat 2 => dog 3 => mouse 4 => horse iwfm with array(1=>'cat',2=>'dog',3=>'mouse',4=>'horse'): output: Array ( [1] => cat [2] => dog [3] => mouse [4] => horse ) dog source: 'cat',2=>'dog',3=>'mouse',4=>'horse'); print_r($animals); $x=2; echo $animals[$x]."\n"; ?> t -- PHP Gen

Re: [PHP] php problem

2005-12-02 Thread Jochem Maas
anyone looking for an example of how not to ask a question on a mailing list, this is it: Rama wrote: in a huge php page it's happen that some page included in index.php, for some strange reason went write. 2 byte are write on the pages included, and are always the same (FF and FE in hexadecil

Re: [PHP] php problem

2005-12-02 Thread Marco Kaiser
Hi Matteo, can you reduce the code to the smallest one and provide your scripts here to reproduce it? > in a huge php page it's happen that some page included in index.php, for some > strange reason went write. > 2 byte are write on the pages included, and are always the same (FF and FE in > he

Re: [PHP] Php Problem Parsing or so I think

2005-02-06 Thread Curt Zirzow
* Thus wrote Carinus Carelse: > variables I get an error message in the browser Illegitimate format. I > am including a copy of the link I click on to call the page below. I > wonder if someone on the list can may be help me. Have I compiled PHP > wrong or is the code itself wrong. Or is there a

Re: [PHP] PHP problem

2004-12-18 Thread GD-Aqua
First off i`m using windows 2000 advance server with PHP 4.3 i believe it is.I can reboot my server and it will go away for awhile. http://syp-triple-h.com/webpost http://automotionsclub.com/guestbook that is some links that will show the access violation and it is at the end of the script. Tha

RE: [PHP] PHP problem

2004-12-17 Thread Mike
How about this - Tell us the OS, version of PHP, the portion of the code it's dying on (enable some logfile writing if you don't know) and any other *useful* information and we might be able to help you. Did you do any Google searching? I searched for "01650AFD" and came up with a number of PHP

Re: [PHP] php problem

2003-02-04 Thread Jason k Larson
changed $rows to $row on line 29 added variable identifier $ to 'row' variables on others. while ($row=mysql_fetch_array($mysql_result)) { $ID=$row['ID']; # this is line 30 $first_name=$row['first_name']; $surname=$row['surname']; $email=$row[

Re: [PHP] php problem

2003-02-04 Thread Jason Sheets
Hi Aaron, I noticed several things, first you are fetching your database row into $rows but you are referencing the data in $row, and second you do not have a $ in front of your $row variable name, in order to get the contents of a variable you must use $variable. I've included modified code to d

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread jtjohnston
Chris, or anyone, I have tried to escape the slashes. Debugging ... $sql = 'SELECT ... ... AGAINST (\'"ready maria"\' IN BOOLEAN MODE) ...'; This works. But if I addslashes or stripslashes, or do nothing, it does not work. See these 3 variations. Neither work. What should I do? A part from hang

Re: [PHP] PHP Problem or MySQL (Match ... against)?

2002-12-02 Thread Chris Wesley
On Mon, 2 Dec 2002, jtjohnston wrote: > SELECT id,AU,ST,BT,AT FROM jdaxell.ccl WHERE MATCH > (TNum,YR,AU,ST,SD,BT,BC,AT,PL,PR,PG,LG,AUS,KW,GEO,AN,RB,CO) AGAINST > ('"ready maria"' IN BOOLEAN MODE) ORDER > BY id asc > > When I run the same (copied and pasted) SQL in PHP, it is as though > MySQL is

RE: [PHP] PHP problem

2002-10-09 Thread John W. Holmes
SELECT * FROM yourtable WHERE id = $_REQUEST['id'] And show the results... All you have to do is make a page that receives the ID you typed in, uses it in a query, and then shows the result of the query. ---John Holmes... > -Original Message- > From: Miguel Brás [mailto:[EMAIL PROTECTE

Re: [PHP] PHP: problem with patterns

2002-08-09 Thread Analysis & Solutions
Hi Alia: On Fri, Aug 09, 2002 at 02:50:32PM +0300, Alia Mikati wrote: > > I have to parse an html file and replace > src attribute of an img. I'm using 'preg_match_all' First off, if you're doing a search and replace, use preg_replace(). > having problem with patterns. This is the part of cod

[PHP] Re: [[PHP] php problem]

2002-05-10 Thread Jimmy Lantz
"johnny1b1g" <[EMAIL PROTECTED]> wrote: ? Well I guess I could try to help you if you elaborate your question a bit further. / Jimmy Start with RTFM :-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://

Re: [PHP] PHP problem

2001-03-09 Thread TV Karthick Kumar
Hi Win' 98 comes only with PWS and not IIS, generally. But some versions of windows 98 do have IIS in it, but I dont' know about the config. there, whether it'll be the same as we do for PWS, becoz for the past 2 yrs, I have PHP on my machine with Windows'98 and PWS and so far, I haven't had

Re: [PHP] PHP problem

2001-03-09 Thread Michael Kimsal
I didn't know you could get IIS4 on windows 98. Are you sure you don't mean PWS? Knotek Vlastimil wrote: > Hi all, > > I have following problem. I have 2 computers: > 1. Win98, IIS4, PHP4.04pl1 > 2. Win2000, IIS4, PHP4.04pl1 > > with same php.ini > > When I am tried to execute my page on the