[PHP] Re: mysql_result

2002-08-10 Thread Marcel Besancon

Hi Sascha,

just use the modulus-operator (%).

It's the best way.

Bye Marcel
--
registered Fli4l-User #0388
Answer to the newsgroup please 


"Sascha Braun" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
001201c23f29$760a22e0$a48a07d5@billsgate">news:001201c23f29$760a22e0$a48a07d5@billsgate...
I need some help!

I am getting a result out of my link Database an want it to Display the
result in two
collums like this:

+-++
+ Result 1+  Result 2  +
+-++
+Result 3 + Result 4   +
+-++

and so on please help!

Thanx




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Last URL visited

2002-08-31 Thread Marcel Besancon

Hallo,

I don't know if I understood you correctly. But one way to get the url of
the last visited page is using

$foobar = getenv('HTTP_REFERER');

This write the url of the last visited page to the variable $foobar.

Hope this helps

Best regards

Marcel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




AW: [PHP] MORE QUESTION - Editing Database

2002-01-10 Thread Marcel Besancon

Hi Dani,

i do prefer using a database. I think it is the most dynamic way
for creating and (important !!!) managing a website. Preformatted text
isn't a problem with a database. 

Bye, Marcel

> -Ursprüngliche Nachricht-
> Von: Dani [mailto:[EMAIL PROTECTED]]
> Gesendet: Donnerstag, 10. Januar 2002 18:37
> An: PHP LIST
> Betreff: [PHP] MORE QUESTION - Editing Database
> Wichtigkeit: Hoch
> 
> Hi again!
> 
> I'm trying to develop a website where the user can edit the article
> online. What is the best way to do this?
> 
> is it better using database or fopen() functions?
> 
> in mycase because the text (article ) is containing some pre formated
> text, which one is the best way to do it?
> 
> Thank you!
> 
> 
> 
> --
> 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]


--
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]




AW: [PHP] PHP - browser - ERROR !

2002-01-19 Thread Marcel Besancon

Hi, 

maybe it's a problem of netscape. In many cases netscape doesn't
work like the IE. Just remember CSS and other things !!!

Marcel

> -Ursprüngliche Nachricht-
> Von: Dani [mailto:[EMAIL PROTECTED]]
> Gesendet: Samstag, 19. Januar 2002 15:47
> An: Nick Wilson
> Cc: [EMAIL PROTECTED]
> Betreff: Re: [PHP] PHP - browser - ERROR !
> 
> Hi again!
> 
> I tried it and I still get the error.
> 
> Do you think that this has somthing todo with my PWS server? or the
installation
> of PHP?
> 
> thanks!
> 
> Nick Wilson wrote:
> 
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > * On 19-01-02 at 12:35
> > * Dani said
> >
> > > Hi Nick!
> > > Thanks for the reply.
> > >
> > > here the code: This works on IE but not Netscape (strange!)
> > >
> > > session_start();
> > > if (!isset($lgname)&&!isset($passw))
> > >  {
> > > include("login_input.php");
> > >  }
> > >
> > >  else
> > >
> > >  {
> > >  if ($checkpsw)
> > >{
> > >   session_register("session_login");
> > >   $session_login =$lgname;
> > >   include("admin.php");
> > > }
> > >   else
> > >   {
> > >   echo"Not a member!";
> > >   }
> > > }
> > >
> > > thanks!
> > >
> > > > > Hi!
> > > > >
> > > > > I'm trying to make a user login page and it works fine with
Internet
> > > > > explorer. However when I try it using Netscape 4.5 I get this
ERROR
> > > > > message:
> > > > >
> > > > > "HTTP Error 405
> > > > >
> > > > > 405 Method Not Allowed
> > > > >
> > > > > The method specified in the Request Line is not allowed for
the resource
> > > > > identified by the request. Please ensure that you have
> > > > > the proper MIME type set up for the resource you are
requesting.
> > > > >
> > > > > Please contact the server's administrator if this problem
persists."
> >
> > Hmmm. I'm sorry Dani, I can't see *anything* really wrong with
it.
> > I suspect it's a session thing though unless one of your includes is
> > trying to post data of some kind?
> > Try taking all the session stuff out and seeing if it still produces
the
> > error and let us know what happens?
> >
> > Nick Wilson
> >
> > Tel:+45 3325 0688
> > Fax:+45 3325 0677
> > Web:www.explodingnet.com
> >
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.0.6 (GNU/Linux)
> >
> >
> iD8DBQE8SVvAHpvrrTa6L5oRAot6AKCixnV+2yD1A80yxgK6Ox8M+jJTyQCgl0t5
> > MKXb4aCs6kSIWZoipyvoPvA=
> > =BLMw
> > -END PGP SIGNATURE-
> >
> > --
> > 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]
> 
> 
> --
> 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]



--
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]




[PHP] Not a PHP-Problem ...

2002-05-29 Thread Marcel Besancon

Hi everybody,

this is not a PHP-problem. I just need ti know the whois-servers for the
following tld's.
.info, .net. As everybody knows the whois question for example .com has to
be send to "whois.networksolutions.com". I hope anybody knows a source where
to find some of the adresses.

Thank all of you

Marcel



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: PLEASE: Second request...

2002-05-29 Thread Marcel Besancon

Hi Shane,

> Second request... Please, any help out there for where I can download the
best GD
> module for PHP 4.0.6 on my WIN 2000 IIS box.

maybe this can help you

http://kromann.info/php4.php

Bye, Marcel




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] gd-library ...

2002-03-09 Thread Marcel Besancon

Hi,

i'm trying to use the gd-library under windows, but it doesn't work. How
can I include the gd.dll? Where do I put this file? I tried some different
directories which are written in the php.ini as include-directories. What am
I doing wrong? Is there a way to use this library under windows???

Any hint can be useful.

Sincerely

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Installing PHP 4.1.2

2002-03-11 Thread Marcel Besancon

Hi everybody,

i've got a problem again. I want to install PHP 4.1.2. Now my problem:
There's only a source code distribution on php.net. How do I install it on
Windows XP? I read the documentation, but I all I understood was "bla". So,
you see I understood nothing. Is there anyone who can explain it an easy way
???

Thanks.

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] php.ini ...

2002-03-11 Thread Marcel Besancon

Hi, it's me again,

when I used the PHP 4.0.6 I had a php.ini with a lot of entries. Now, at
Version 4.1.1, there's a php.ini with this content:


-
; php.ini for PEAR tests
include_path=..
[mail function]
SMTP= localhost ; for Win32 only
sendmail_from= [EMAIL PROTECTED] ; for Win32 only
upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP uploaded
files (will use system default if not specified)
[Session]
session.save_path= C:\PHP\sessiondata; argument passed to save_handler
[PHP]
error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) ; display all errors


-

Now, where can I find the entries for the extensions that you should be
used? I want to use the gd-library. I copied the DLL to the include-path (I
don't know if that's the correct way !!!), but now I can't tell PHP to use
the DLL!!! Please help me !!!

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] php.ini ...

2002-03-11 Thread Marcel Besancon

Hi,

thanks for last posting. But that doesn't work with me. Don't ask me
why. I will try further. Maybe I have better luck with this 4.1.2 version. I
was told that the php_gd.dll is included there.

Thanks a lot,

Sincerely

Marcel

--
registered Fli4l-User #0388
"Ray Hunter" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Before you installed did you make a copy of the php.ini file...?  If you
did
> not then it might have been overwritten with the new installation.
>
> Sounds like you did the basic installer installation.  You might need to
> download the zip file and do a manual installation to get the required
data.
>
>
>
> Thank you,
>
> Ray Hunter
> Firmware Engineer
>
> ENTERASYS NETWORKS
>
>
> -Original Message-
> From: Marcel Besancon [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 11, 2002 10:18 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] php.ini ...
>
>
> Hi, it's me again,
>
> when I used the PHP 4.0.6 I had a php.ini with a lot of entries. Now,
at
> Version 4.1.1, there's a php.ini with this content:
>
> --
--
> -
> ; php.ini for PEAR tests
> include_path=..
> [mail function]
> SMTP= localhost ; for Win32 only
> sendmail_from= [EMAIL PROTECTED] ; for Win32 only
> upload_tmp_dir = C:\PHP\uploadtemp  ; temporary directory for HTTP
uploaded
> files (will use system default if not specified) [Session]
> session.save_path= C:\PHP\sessiondata; argument passed to save_handler
> [PHP]
> error_reporting= E_ALL & ~(E_NOTICE | E_USER_NOTICE | E_WARNING |
> E_COMPILE_WARNING | E_CORE_WARNING | E_USER_WARNING) ; display all errors
>
> --
--
> -
>
> Now, where can I find the entries for the extensions that you should be
> used? I want to use the gd-library. I copied the DLL to the include-path
(I
> don't know if that's the correct way !!!), but now I can't tell PHP to use
> the DLL!!! Please help me !!!
>
> Marcel
>
> --
> registered Fli4l-User #0388
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Broken DLL's ...

2002-03-13 Thread Marcel Besancon

Hi everybody,

is it possible that there are some broken DLL's in the distributions ??
For example the php_curl.dll . I tried to uncomment it in the php.ini-file
and got an error. But by replacing the php_curl.dll with another
php_curl.dll from the net it works fine.

Is it only me who has this kind of "error" ???

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Changing 2 frames ...

2002-03-15 Thread Marcel Besancon

Hi everybody,

is it possible to change two frames at one time using a php-script. For
example: When I click on a link then the right _and _ the left frame should
change to another side. Ist this possible or do I have to use JavaScript
instead ???

Any answer can be useful

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: IMAGE Manipulation

2002-03-16 Thread Marcel Besancon

Hi Dani,

> I'm trying to resize images from a big image to smaller image in
> dimension and also file size so that when a user upload an image into
> server, when a browser display the picture it desn't have to be as big.
> I hope my question make sense.

a good way for working with images is using the gd-library. Just look at
http://www.boutell.com/gd/. Ther's a possibility to download the extension
and there are some introductions too.

I hope this helps

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Two easy HTML/CSS questions

2002-03-18 Thread Marcel Besancon

Hi Phil,

here's an answer to your first question. You can use colorchanging links
when put formatting code like this one:

a:link { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:black; text-decoration:none; font-size:13pt; }
a:hover { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:blue; text-decoration:underline; font-size:13pt;
background:darkgray; }
a:visited { font-family:Arial Narrow, helvetica; font-variant:small-caps;
color:black; text-decoration:none; font-size:13pt; }

into a css-file.

I'm sorry, but i don't know an answer for your second question. But like I
remember this must be possible with CSS too. But I don't know exactly how.

Hope this helps

Marcel Besancon


--
registered Fli4l-User #0388
"Phil Schwarzmann" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I know I shouldn't be asking these questions on this mailing list but
> you guys are ALWAYS EXTREMELY helpful...
>
> 1) I want a a text link to change color when the mouse is hovering over
> top of it.  How do I do this?  Im sure it's some CSS thingy.
>
> 2) Is it possible to make a "text field" smaller when using forms.
> Let's say I'm using font size 1, I want the text field to be just as
> small as the rest of text.
>
> Thanks again
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon

Hi everybody,

is there someone who can tell me how to call a javascript-function by a
php-script.

Thanks for each answer

Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] Calling Javascript-function from php-script ...

2002-03-19 Thread Marcel Besancon

Hi,

i know that one is server-side and the other is client-side. But what i
meant ist the following. I have a script with a form. By submitting this
form and checking out some values php should call a javascript-function
(such as an alert). You see the php-script shall call the
javascript-function by "refreshing" the whole page.

Bye,

Marcel

--
registered Fli4l-User #0388
"Scott Furt" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Short answer: no.
>
> Long answer: have the PHP script output javascript code
> to the browser.
>
> PHP = server-side
> Javascript = client-side
>
> Marcel Besancon wrote:
> > Hi everybody,
> >
> > is there someone who can tell me how to call a javascript-function
by a
> > php-script.
> >
> > Thanks for each answer
> >
> > Marcel
> >
> > --
> > registered Fli4l-User #0388
> >
> >
> >
> >
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: testing for blank var

2002-03-21 Thread Marcel Besancon

Hi Robert,

maybe your variable doesn't exist. Try using

if(!isset($variable))  {
missing-message  }
else  {
show $variable  }

I hope this helps.

Bye, Marcel

--
registered Fli4l-User #0388



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php