Re: [PHP] Needing help hear

2001-05-15 Thread Adaran (Marc E. Brinkmann)

Hi Richard,


Richard  I am trying to pull all the e-mail out of the database and put them
Richard  in a format like this [EMAIL PROTECTED],[EMAIL PROTECTED],[EMAIL PROTECTED]
Richard  this is what I have now but I don't seam to be going in the right
Richard  direction. Could somebody give me a hint

Richard $sql = SELECT email FROM customers;
Richard $result = mysql_query($sql);
Richard $num_rows = mysql_num_rows($result); 

Richard while ($myrow = mysql_fetch_array($result)){

Richard  $recipient=$myrow[email] . ,;
Richard }


This way you'll only get the last recipient.

Try:

$recipient .= $myrow[email] . ,;



---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Books!

2001-05-12 Thread Adaran (Marc E. Brinkmann)

Hi FredrikAT,

FredrikAT Can anyone recommend a php(/mysql) book?

Well, I don't know what language you do expect. I have read 3 Books in German,
the best of them was Internet intern: PHP 4 + MySQL by Rolf D. Stoll  Gudrun
Anna Leier. It's from Data Becker, and It is a really good book for beginners to
intermediate's.

Someone else may suggest some English books :P

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] PHP Editor

2001-05-11 Thread Adaran (Marc E. Brinkmann)

Hi Grishick,

Grishick Nothing is better then HomeSite

Agreed ;-)

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] weird problems with file uploads

2001-05-11 Thread Adaran (Marc E. Brinkmann)

Hi Mpeglitis,

 I'm trying to implement a file upload on a website so people can send us
 files of their work and I'm having a fantastic success with text files.
 The problem comes when I try to upload binary files such as zip or mp3,
 when I get the typical file attack error mesage from the script, in
 other words, the is_uploaded_file() function does not recognise the file
 correctly.

Mpeglitis I do have the same problem on my WinNT box. I'm using
Mpeglitis php to store the file in a LargeBlob field in my mysql database.
Mpeglitis Text files upload successfully but binary files don't ( the Insert
Mpeglitis query fails ). If someone knows something let us know.

well, is your form enctype=multipart/mixed and method=post ?

did you use open($file, rb); (b is important 4 binary)

did you use addslashes when storing the file in mysql ?

well, you ought to specify the problem more exactly...

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] PC MAG article

2001-05-10 Thread Adaran (Marc E. Brinkmann)

Hi all,

Mark seeing as how zdnet is owned by microsoft, you can decide how much
Mark credibility you can give their articles.

Well, remember the article where they say, that the Microsoft web server
solutions are a zillion times faster than Apache ? =)

Well, is PHP the only scripting language tested which is free ? :P

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] Netscape shows only one result of a MySQL-question

2001-05-10 Thread Adaran (Marc E. Brinkmann)

Hi Lilly,


Lilly Hi,
Lilly Our new MySQL-databasesystem (just one table) runs very well with PHP4 - when 
accessed with MS Internet Explorer.
Lilly I just tested it with Navigator 4.7 and found that it always shows only ONE 
dataset! It tells correctly the number of found sets and will show others when I sort 
the results different - but
Lilly always only one at a time.
Lilly Has anybody any suggestions what the problem might be?

Well, check the HTML Code! If there are mistakes in the table, tr or td
tags, the IE normally is more tolerant than netscape (i.e. if you don't close a
td tags, it will be closed automaticly when the next /tr occurs or st.). A
malformated HTML table can couse a whole site to disappear (in netscape)

Lilly BTW: What font-tags are you using to have things looking similar under MS and 
Netscape?

With CSS/Stylesheets everything should be fine. I never use font tags.

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Adaran (Marc E. Brinkmann)

Hi Steve,

Thursday, May 10, 2001, 1:39:36 PM, you wrote:
Steve Ok - thanks - my new redirect.php is

Steve ?php
Steve if ($fred != ) {
Steve # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\;
Steve # mysql_query($statement);
Steve Header(Location: $fred);
Steve exit;
Steve } else {
Steve Header(Location: $HTTP_REFERRER);
Steve exit;
Steve }
?

Steve I get the following message...
Steve Warning: Cannot add header information - headers already sent by (output
Steve started at /home/swadie/public_html/redirect.php:2) in
Steve /home/swadie/public_html/redirect.php on line 9

Make sure you have NO Blanks or any other Text before the ?php ! ? has to be
the first two characters in the file. Which line is line 9 ?

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] Newbie redirect/variable question

2001-05-10 Thread Adaran (Marc E. Brinkmann)

Hi Steve,

Thursday, May 10, 2001, 1:39:36 PM, you wrote:
Steve Ok - thanks - my new redirect.php is

Steve ?php
Steve if ($fred != ) {
Steve # $statement = UPDATE links SET hits=hits+1 WHERE href=\$u\;
Steve # mysql_query($statement);
Steve Header(Location: $fred);
Steve exit;
Steve } else {
Steve Header(Location: $HTTP_REFERRER);
Steve exit;
Steve }
?

Steve I get the following message...
Steve Warning: Cannot add header information - headers already sent by (output
Steve started at /home/swadie/public_html/redirect.php:2) in
Steve /home/swadie/public_html/redirect.php on line 9

Make sure you have NO Blanks or any other Text before the ?php ! ? has to be
the first two characters in the file. Which line is line 9 ?

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] quick question: frames OT

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Hi Romulo Roberto Pereira,

Wednesday, May 09, 2001, 7:11:38 AM, you wrote:
Romulo Hello!
Romulo Just a quick ot question:
Romulo From a php script I open a frameset this divides the browser window in two
Romulo rows. How do I do to get rid of the frameset without closing the window?

try a link like this:

a href=nonframepage.html target=_topExit Frames/a

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] multiple domain handling with php

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Hi Scott Mebberson,

Wednesday, May 09, 2001, 7:43:16 AM, you wrote:

Scott Does anybody have any scripts or tips on hosting multiple domains on the one
Scott account ie. if the domain being requested is this, go here in my account if
Scott not go here in my account?

Well, I hope I understood you right ;-)
Try some enviroment variables, maybe $HTTP_SERVER_VARS[HTTP_HOST] or 
$HTTP_SERVER_VARS[SERVER_ADDR]

Hope it helped,

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] thanks Hrishi AND ANOTHER QUESTION ?

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Hi Jorge Amaya,

Wednesday, May 09, 2001, 11:39:36 AM, you wrote:

Jorge THANK YOU FOR YOUR CONCEPTS, HELPED ME ENOUGH, YOU ARE VERY KIND, I HAVE 
Jorge A QUESTION MORE, APACHE IT| ALREADY WORKS ME, IT LOADS ME PHP4, BUT THE 
Jorge NAVIGATOR  DOESN'T  BEGIN..

Jorge IT DOESN'T LOAD THE NAVIGATOR UP WITH APACHE.

Jorge APOLOGIZE TO HAVE WRITTEN YOU TO YOUR OTHER MAIL, A THOUSAND EXCUSES.

well, *please* turn off your capslock, it's really annoying, and some people
(like me) understand CAPITALS as shouting.

Well, what OS/Navigator/Apache version are u using ?

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] Variables in variable names

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Hi seriousj,

Wednesday, May 09, 2001, 1:19:55 PM, you wrote:

seriousj The info is stored in the variables intitally by information entered by a
seriousj user on a webpage, can you have the browser store the info in an array and
seriousj have it passed by a form post  command?

Try

input type=text name=name[0]
input type=text name=name[1]
...

or even try
input type=text name=name[]
input type=text name=name[]

This should AFAIK result in an Array, but I'm not sure if empty fields are put
in.

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re[2]: [PHP] thanks Hrishi AND ANOTHER QUESTION ?

2001-05-09 Thread Adaran (Marc E. Brinkmann)

Jorge HI MARC

Jorge I have installed Apache on windows 98, php4 already this installed, the 
Jorge navigator that I use is netscape 6.0 
Jorge IT DOESN'T LOAD THE NAVIGATOR UP WITH APACHE.

Well, I do have that problems, too. I'm using exactly the same programs, and if
I have Apache Running, Netscape won't start. If I close Apache, start Netscape
and then run it again everything runs fine...

With ICQ 98a, I've got the same problem, even in many other Programs. With
Apache luckily only Netscape doesn't seem to work =). With ICQ, many many
Applications (Photoshop, Homesite, Winamp, some from time to time...) won't start when 
I run them. Closing ICQ immediately solves the
problem...

---
EnjoY,
 Adaran ([EMAIL PROTECTED])
   check http://www.adaran.net



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]