[PHP] retrieving random data from mysql database

2002-07-14 Thread mm fernandez

hi,
can you teach me how to retrieve random data from my database? like for example...i 
have a list of names on my database and i'd like to retrieve only one name at a 
time..randomly. how do i go about this?

hope someone can help...thanx.





[PHP] webhost (PearHost.com)

2002-05-01 Thread mm fernandez

hi.

just wanna ask if anyone here has tried PearHost (http://www.pearhost.com/). 
im trying to find out if it's a reliable webhost since they seem to be 
really cheaper compared to other webhosts. it also supports php,mysql and a 
whole lot of other features. does someone have any comment about PearHost?

thanks.

_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




[PHP] store pics on mysql db

2002-04-23 Thread mm fernandez


hi...is it possible to store pics (jpeg/gif) on the mysql database? if so, 
how and what type should that field be?

thanks.


_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




[PHP] form mail with attachment

2002-04-12 Thread mm fernandez



i have this code for my form mail:

?php
mail ([EMAIL PROTECTED], $subject, From: $name\r\nEmail: 
$email\r\nWebsite: $website\r\nMessage: $message, From: $email\r\n);
?

i need to add an attachment file with the variable $file. what do i need to 
add in the code so that i will also be able to receive the attached file 
sent from the website?

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




[PHP] $$

2002-03-18 Thread mm fernandez


variables begin with a $ sign. but what does it mean if it begins with 2 $ 
signs? (i.e. $$var)




_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




[PHP] error msg

2002-02-28 Thread mm fernandez

hi i get this error message whenever i open my page (except during the 
first time i open it) Can someone tell me what this means?

Warning: open(/tmp\sess_4ed4219513a84c54eba4c1117756c572, O_RDWR) failed: m 
(2) in C:\apache\htdocs\rs_alumni\alumniphp on line 2

Here is the beginning of my code:
// ?php
// session_start();
// session_register(email,pwd);
// $session=session_id();
// ?




_
Chat with friends online, try MSN Messenger: http://messengermsncom


-- 
PHP General Mailing List (http://wwwphpnet/)
To unsubscribe, visit: http://wwwphpnet/unsubphp




[PHP] search results - details

2002-02-19 Thread mm fernandez

hi,

I'm working on a search results page. actually i have my search form and 
search results page working fine already. but i want to add something on the 
results page. my search results page shows the following fields: 
lastname, firstname, middlename, yeargrad.
what i want is that the lastname results should be linked to a more 
details page. so for example, if i have a search result with 'garcia' as 
the lastname..i click on that and i should be transferred to a page showing 
me more details of that garcia..showing me more than just his/her 
firstname,middlename, and yeargrad.

What should i use as my sql statement for the more details page? And how 
do i tell the detail page to show which records to retrieve and display?
By the way, here's part of the code that i have for the results page:

// ?php
//
//   include_once (connect.php);
//
//   $sql = Select * from alumni where yeargrad = ('$search') OR lastname 
like ('%$search%') OR country like ('%$search%') order by lastname;
//   $rs = mysql_query($sql,$db);
//
//   if (!$r = mysql_fetch_object($rs)) {
// echo No record found. Please try again.;
//   exit;
//   }
//
//   $rs = mysql_query($sql,$db);
//   while ($r = mysql_fetch_object($rs)){
//   echo br$r-lastname;
//   }
// ?

if anyone can please help me. thanks.

// MM Fernandez

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




[PHP] phpTriad

2002-02-14 Thread mm fernandez

hi, can someone please help? i've installed phpTriad on my pc here at the 
office. i've tried it at home and everything works fine. here in the office 
though, i can only run the apache server. but i cannot start the mySQL 
server. i don't get any error messages...just that nothing happens whenever 
i click on start MySql. i've tried reinstalling it but still the same. what 
can possibly be wrong?

// MM

_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.


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




RE: [PHP] configuring webhost

2002-02-11 Thread mm fernandez

we're using a Windows 2000 server here...
So after we install PHPTriad, what configurations do we need to make?

//mm fernandez


From: Rick Emery [EMAIL PROTECTED]
To: 'mm fernandez' [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: RE: [PHP] configuring webhost
Date: Mon, 11 Feb 2002 08:38:28 -0600

If you're using Red hat Linux, it's so easy, even I was able to do it,
including PHP and MYSQL.

If you're using Windows, then PHPTRIAD is your ticket to glory

-Original Message-
From: mm fernandez [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 11, 2002 1:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP] configuring webhost



hi. i'm new here and i'm also new to php. thing is though, i'd like to ask
something with regard to configuring the web host to make it support php.
see, i work for a company which also offers web hosting but due to lack of
technical people here, we're not sure how to configure our server to 
support

php. i know how to install and configure php on a local pc but i don't know
anything about configuring a web host. hmm...i'm not so technical
myselfcan anyone help?

_
Join the world's largest e-mail service with MSN Hotmail.
http://www.hotmail.com


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



_
Chat with friends online, try MSN Messenger: http://messenger.msn.com


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




[PHP] configuring webhost

2002-02-10 Thread mm fernandez


hi. i'm new here and i'm also new to php. thing is though, i'd like to ask 
something with regard to configuring the web host to make it support php. 
see, i work for a company which also offers web hosting but due to lack of 
technical people here, we're not sure how to configure our server to support 
php. i know how to install and configure php on a local pc but i don't know 
anything about configuring a web host. hmm...i'm not so technical 
myselfcan anyone help?

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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