RE: [PHP] mySQL problem

2001-11-02 Thread Niklas Lampn
SELECT UCASE(Company) AS Company works great, thanks! Niklas -Original Message- From: Dimitris Kossikidis [mailto:[EMAIL PROTECTED]] Sent: 2. marraskuuta 2001 11:11 To: 'Niklas Lamp¨¦n' Cc: PHP General Subject: RE: [PHP] mySQL problem Try this $Query = SELECT UCASE(Company) as

[PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampn
What causes this: I have a page getting variable $BackLink with string http://www.domain.com/my_page.php4;. I accidentaly wrote ?=~$BackLink? and what I got out was —‹‹ÅÐЈˆˆÑ™–‘“ž‘›š‡‹ŒÑœ’А™™š šŽŠšŒ‹ ™‘‹Ñ—Ë. What causes this? What does that ~ sign do before a variable?

RE: [PHP] Funny thing with variables

2001-10-22 Thread Niklas Lampn
F... read it and got it! ;) I had no idea what to look for.. Niklas P.S. Thanks -Original Message- From: Tomy Wagner [mailto:[EMAIL PROTECTED]] Sent: 22. lokakuuta 2001 15:16 To: Niklas Lampén; Php-General Subject: Re: [PHP] Funny thing with variables rtfm :o

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
You can do this: $i = 0; $fp = fopen("list.txt", "r"); while (!feof($fp) $i 10) { $i++; $Text = fgets($fp, 4096); // Reads first 4096 characters from a row. print "$Textbr\n"; }; Niklas -Original Message- From: Tauntz [mailto:[EMAIL PROTECTED]] Sent: 28.

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
Oops.. Forgot to close the file. Put as last line: fclose($fp); Niklas -Original Message- From: Niklas Lampn [mailto:[EMAIL PROTECTED]] Sent: 28. elokuuta 2001 15:29 To: Tauntz; Php-General Subject: RE: [PHP] How do I read the first n lines from a file? You can do this: $i = 0; $fp

RE: [PHP] How do I read the first n lines from a file?

2001-08-28 Thread Niklas Lampn
ile ? - Original Message - From: "Niklas Lampn" [EMAIL PROTECTED] To: "Tauntz" [EMAIL PROTECTED]; "Php-General" [EMAIL PROTECTED] Sent: Tuesday, August 28, 2001 3:28 PM Subject: RE: [PHP] How do I read the first n lines from a file? You can do this: $i =