[PHP] displaying data base information in a website

2003-03-11 Thread David E.S.V.

Hello folks

I am learning php and would like to know how to display the information I 
already have in a mysql database in a homepage...  is there is any script, 
I would like to know it.

thanks

David. 


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



Re: [PHP] mysql and php

2003-03-11 Thread David E.S.V.


great tutorial to do what you want:

http://www.freewebmasterhelp.com/tutorials/phpmysql/4

regards,

David.


On Tue, 11 Mar 2003, Joseph Bannon wrote:

> How can I have php give me all the data in a table as
> I would using the prompt in mysql?
> 
> Joseph
> 
> 
> 
> __
> Do you Yahoo!?
> Yahoo! Web Hosting - establish your business online
> http://webhosting.yahoo.com
> 
> 

-- 

David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601



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



Re: [PHP] Checking for a Valid Email String.

2003-03-11 Thread David E.S.V.


you mean something like this?


//checking if the email is valid

if 
(eregi("^[0-9a-z]([-_.]?[0-9a-z])[EMAIL PROTECTED]([-.]?[0-9a-z])*\\.[a-z]{2,3}$", 
$email, $check))
 {
  if ( !getmxrr(substr(strstr($check[0], '@'), 1), $validate_email_temp) )
$mensaje="server not valid";
  

  // checking DNS
  if(!checkdnsrr(substr(strstr($check[0], '@'), 1),"ANY"))
 $mensaje="server not valid";
 
 }


David.




On Wed, 12 Mar 2003, Philip J. Newman wrote:

> Required: Help for checking for a valid email string.
> 
> --
> Philip J. Newman.
> Head Developer
> [EMAIL PROTECTED]
> 
> +64 (9) 576 9491
> +64 021-048-3999
> 
> --
> Friends are like stars
> You can't allways see them,
> but they are always there.
> 
> --
> Websites:
> 
> PhilipNZ.com - Design.
> http://www.philipnz.com/
> [EMAIL PROTECTED]
> 
> Philip's Domain // Internet Project.
> http://www.philipsdomain.com/
> [EMAIL PROTECTED]
> 
> Vital Kiwi / NEWMAN.NET.NZ.
> http://www.newman.net.nz/
> [EMAIL PROTECTED] 
> 
> 
> 

-- 

David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601



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



[PHP] foro php

2003-03-12 Thread David E.S.V.

hello folks

do you know any site where I can download a free php foro to install?

thanks

David.



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



Re: [PHP] foro php

2003-03-12 Thread David E.S.V.
that's it... I just forgot the english word..."forum"... even it sounds 
latin origin

regards

David.

On Wed, 12 Mar 2003, CPT John W. Holmes wrote:

> > do you know any site where I can download a free php foro to install?
> 
> wtf is a "foro"?
> 
> Ah... gotta love google. In italian it means "I pierce", but in spanish it
> means "forum", so I'll assume it's a forum you're looking for instead of
> some piercing PHP script.
> 
> phpbb and phorum are two good ones. There are plenty more... Do a search on
> google for PHP forum to see them all.
> 
> www.phpbb.com
> www.phorum.org
> 
> ---John Holmes...
> 
> 
> 

-- 

David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601



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



Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.

you can use javascript instead..

for example in a jump menu:


function seleccionPerfil(form) {

   if (form.perfil.selectedIndex == 0)

   {

  window.location.href="yourpage1.php";

   }

   

if (form.perfil.selectedIndex == 1)

   {

  window.location.href="yourpage2.php";

   }

 if (form.perfil.selectedIndex == 2)

   {

  window.location.href="yourpage3.php";

   }

   

} 




On Thu, 13 Mar 2003, Beauford.2002 wrote:

> Hi,
> 
> I have searched around for hours on this and nothing seems to work. I want
> simply to do this
> 
> if yes -  goto thispage.php
> 
> if no - goto thatpage.php
> 
> Thanks
> 
> 
> 
> 

-- 

David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601



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



Re: [PHP] Redirect to a new page?

2003-03-13 Thread David E.S.V.

btw
in your case would be just

if/else

cheers

David.

On Thu, 13 Mar 2003, David E.S.V. wrote:

> 
> you can use javascript instead..
> 
> for example in a jump menu:
> 
> 
> function seleccionPerfil(form) {
> 
>if (form.perfil.selectedIndex == 0)
> 
>{
> 
>   window.location.href="yourpage1.php";
> 
>}
> 
>
> 
> if (form.perfil.selectedIndex == 1)
> 
>{
> 
>   window.location.href="yourpage2.php";
> 
>}
> 
>  if (form.perfil.selectedIndex == 2)
> 
>{
> 
>   window.location.href="yourpage3.php";
> 
>}
> 
>
> 
> } 
> 
> 
> 
> 
> On Thu, 13 Mar 2003, Beauford.2002 wrote:
> 
> > Hi,
> > 
> > I have searched around for hours on this and nothing seems to work. I want
> > simply to do this
> > 
> > if yes -  goto thispage.php
> > 
> > if no - goto thatpage.php
> > 
> > Thanks
> > 
> > 
> > 
> > 
> 
> 

-- 

David Elías Sánchez Vásquez
Bachiller en Educación PUCP
[EMAIL PROTECTED]
telf. (51)-1-5255601



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