[PHP] mail() says: Warning: Server Error
Hello, Evert time I run a mail function it gives me this: Warning: Server Error What's wrong here? Thanks, -Sean P.S. I use Apache 1.3.23 and have PHP 4.1.1 installed. _ 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] Database-Driven Web Site.
Hello, Would anyone out there be willing to teach me how to make a database-driven web site with PHP and MySQL? My MSN Messenger email is: [EMAIL PROTECTED] THANKS! -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Question about database-driven web sites.
Hello, What will a database-driven web site do for? How does it releive stress on me? What is it good for? Why should I learn it? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] HELP PLEASE!
Hello, My problem is I have a form that submits it info to a mysql table, well then I have a page that calls it from the mysql table and displays whatever is in the mysql table. So, what script do I use to make it display multiple entrys?? Here is the code: --- ?php $title = Powder Basin Motocross, INC. | | Rider Profiles; include('header.php'); $conn = mysql_connect (host, un, pw) or die(Coudn't connect to the MySQL server.); mysql_select_db (pbmi_riderprofiles) or die(Couldn't the select MySQL database.); ? table border=0 cellspacing=0 cellpadding=0tr td class=mainheader width=475 align=center bgcolor=#66:: Rider Profiles ::/td /tr tr td valign=top align=left font size=?=$fontsize? face=?=$fontface?a href=index.php? topic=addprofileAdd your profile/a/font hr width=475 align=left noshade table border=0 cellspacing=0 cellpadding=0 tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;First Name:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles first_name); if ($row = mysql_fetch_array($result)) { do { echo $row[first_name]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;Last Name:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles last_name); if ($row = mysql_fetch_array($result)) { do { echo $row[last_name]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;D.O.B:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles dob); if ($row = mysql_fetch_array ($result)) { do { echo $row[dob]; } while ($row = mysql_fetch_array ($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;City:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles city); if ($row = mysql_fetch_array ($result)) { do { echo $row[city]; } while ($row = mysql_fetch_array ($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;State:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles state); if ($row = mysql_fetch_array ($result)) { do { echo $row[state]; } while ($row = mysql_fetch_array ($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;E- mail:/b/font/td tdfont size=?=$fontsize? face=?=$fontface?a href=mailto:? =$riderfile[$i + 5]??php $result = mysql_query (SELECT * FROM riderprofiles email); if ($row = mysql_fetch_array($result)) { do { echo $row [email]; } while ($row = mysql_fetch_array($result)); } ?/a/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;Dirt Bike:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles dirt_bike); if ($row = mysql_fetch_array($result)) { do { echo $row[dirt_bike]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;Class:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles race_class); if ($row = mysql_fetch_array($result)) { do { echo $row[race_class]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;Years Riding:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles yr); if ($row = mysql_fetch_array ($result)) { do { echo $row[yr]; } while ($row = mysql_fetch_array ($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface?bnbsp;Favorite Track:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles favorite_track); if ($row = mysql_fetch_array($result)) { do { echo $row[favorite_track]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;Sponsors:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles sponsors); if ($row = mysql_fetch_array($result)) { do { echo $row[sponsors]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;Injuries:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles injuries); if ($row = mysql_fetch_array($result)) { do { echo $row[injuries]; } while ($row = mysql_fetch_array($result)); } ?/font/td /tr tr tdfont size=?=$fontsize? face=?=$fontface? bnbsp;Comments:/b/font/td tdfont size=?=$fontsize? face=?=$fontface??php $result = mysql_query (SELECT * FROM riderprofiles comments); if ($row = mysql_fetch_array($result)) { do { echo $row[comments]; } while ($row =
[PHP] Can someone tell me about database....
Hello, Can anyone tell me about database driven web sites? I want to learn how to do that. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] A silly question. :P
Hello everyone, I would like to know why you put this character (!) in front of this: ?php $var1 = Hello; $var2 = hello; if (!strcasecmp($var1, $var2)) { echo '$var1 is equal to $var2 in a case-insensitive string comparison'; } ? Do you see the (!) in front of the strcasecmp() function? That! Why do you put that there? I'm trying to learn PHP, but it's been kinda hard. THANKS A LOT GUYS! -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dan...
Dan, If I were to download that thing would I have to be connected 24/7? If so, I can't be. A man at VCN thought the address would be '209.193.72.9', but it still doesn't work. Do you have MSN Messenger? If so I would like to add you to it so we could talk instant message. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com
RE: Re: [PHP] Dan...
Dan, What state do you live in? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com I have MSN messenger but won't be able to use it until I get home 3-4MST. Though I partially run the network here, it is best I do not use it. -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 8:57 AM To: [EMAIL PROTECTED] Subject: [PHP] Dan... Dan, If I were to download that thing would I have to be connected 24/7? If so, I can't be. A man at VCN thought the address would be '209.193.72.9', but it still doesn't work. Do you have MSN Messenger? If so I would like to add you to it so we could talk instant message. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] OK Dan!
Dan, OK! I downloaded that thing, and I need to know what to put in it. Because I tried 209.193.72.9 for my hostname. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] RE:Re: [PHP] OK Dan!
Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok you tried 209.193.72.9, what does it say? Use your web password (IE gdesigns and password) with the default port of 3306 Dont use the compressed option and you dont need to specify the database, just leave it blank. hostname 209.193.72.9 username gdesigns password password port 3306 timeout 30 No database entered Hit connect and let me know what the error is. Dan Im in Colorado. -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 2:24 AM To: [EMAIL PROTECTED] Subject: [PHP] OK Dan! Dan, OK! I downloaded that thing, and I need to know what to put in it. Because I tried 209.193.72.9 for my hostname. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.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
[PHP] How it went...
Dan, After I entered the first line it said 'Enter Password'. I tried a couple diffent passwords, but no luck. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok, thats good, we know mysql server is up and you should be feeling a little more comfortable. Now telnet to the command line and type: 'mysql -u gdesigns -p' It will then prompt for your password, type it in and hit enter. Once in you should get 'mysql' Type '\q' to quit. In the past we proved that the mysql server does exist on 209.193.72.9. What we just proved above was that your username and password will work with that mysql server. Let me know how it goes.. Dan -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:00 AM To: [EMAIL PROTECTED] Subject: [PHP] RE:Re: [PHP] OK Dan! Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] What do you mean?
Dan, I already called my host and they are working on it. What do you mean by 'What page is it'? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok, we have to solve that problem first. You see, linux and mysql have different 'users' You can be gdesigns on the Linux box, but not exist in mysql, and vice versa. Therefore you may have to ask your hosting company if they could figure out a way to add you to the mysql database or at least supply you with the credentials to login to the server. What page is it on your website? http://www.gdesigns.vcn.com/index.php or something? -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:19 AM To: [EMAIL PROTECTED] Subject: [PHP] How it went... Dan, After I entered the first line it said 'Enter Password'. I tried a couple diffent passwords, but no luck. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok, thats good, we know mysql server is up and you should be feeling a little more comfortable. Now telnet to the command line and type: 'mysql -u gdesigns -p' It will then prompt for your password, type it in and hit enter. Once in you should get 'mysql' Type '\q' to quit. In the past we proved that the mysql server does exist on 209.193.72.9. What we just proved above was that your username and password will work with that mysql server. Let me know how it goes.. Dan -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:00 AM To: [EMAIL PROTECTED] Subject: [PHP] RE:Re: [PHP] OK Dan! Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.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
Re: RE: [PHP] What do you mean?
Dan, The error is: Couldn't connect to MySQL. -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com I was asking so I could visit it, and see if there are any error messages. The page that asks you for the mysql hostname, what is the name of that page (eg index.php install.php etc) Dan -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:35 AM To: [EMAIL PROTECTED] Subject: [PHP] What do you mean? Dan, I already called my host and they are working on it. What do you mean by 'What page is it'? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok, we have to solve that problem first. You see, linux and mysql have different 'users' You can be gdesigns on the Linux box, but not exist in mysql, and vice versa. Therefore you may have to ask your hosting company if they could figure out a way to add you to the mysql database or at least supply you with the credentials to login to the server. What page is it on your website? http://www.gdesigns.vcn.com/index.php or something? -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:19 AM To: [EMAIL PROTECTED] Subject: [PHP] How it went... Dan, After I entered the first line it said 'Enter Password'. I tried a couple diffent passwords, but no luck. HELP! Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Ok, thats good, we know mysql server is up and you should be feeling a little more comfortable. Now telnet to the command line and type: 'mysql -u gdesigns -p' It will then prompt for your password, type it in and hit enter. Once in you should get 'mysql' Type '\q' to quit. In the past we proved that the mysql server does exist on 209.193.72.9. What we just proved above was that your username and password will work with that mysql server. Let me know how it goes.. Dan -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 3:00 AM To: [EMAIL PROTECTED] Subject: [PHP] RE:Re: [PHP] OK Dan! Dan, The error is: Connection Failed: == 1130 - Host 'vcn131.usrtc-2b.gill.wy.vcn.com' is not allowed to connect to this server. Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dan...
Dan, I tried using the username and password that vcn gave me for mysql and I used the host name gdesigns.vcn.com and it connected (with the mysql front thing), but it wont connect with my php script? Why? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: RE: [PHP] Dan...
Dan, I typed in 'ifconfig' and it doesn't work? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com Good news... My next would be to telnet to the server once more and run 'ifconfig' (This gives a printout of current InterFace CONFIGurations) Let me know what that says... Thanks Dan -Original Message- From: GENESiS DESiGNS [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 06, 2002 4:09 AM To: [EMAIL PROTECTED] Subject: [PHP] Dan... Dan, I tried using the username and password that vcn gave me for mysql and I used the host name gdesigns.vcn.com and it connected (with the mysql front thing), but it wont connect with my php script? Why? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.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
[PHP] Help with MySQL.
Hello everyone, I need some help with telneting to my web host and figuring out what the host name address is to mysql. My web host (which is my ISP) knows that they have MySQL but they don't know the host name address. I want to know if there is a sentence I can type into the telnet box to see what my MySQL host name address is? I tried 'whereis mysql' and it came back 'mysql: /usr/bin/mysql /usr/lib/mysql /usr/share/mysql /usr/man/man1/mysql.1.gz' so I know I have it, but whats the host name address? Thanks dudes! -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com
Re: Re: [PHP] Help with MySQL.
Dan, What do you mean by : If you get some weird characters(most likely the version and some other chars) then the server is itself, is the mysql host. Because thats what happens. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: Re: [PHP] Help with MySQL.
Dan, Running on what? I need to know the host name address. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dan...
Dan, I'm sorry, but I still don't get. :( Thanks A LOT, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com
[PHP] OK Dan...
Dan, OK. I am trying to make a database with PHP and of course I need to put in my MySQL host name address and username and password. I need to know what I should put for the host name address? I hope this is enough. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: Re: [PHP] OK Dan...
Dan, I;m using PHP to create my database. This is the script I'm using: -- ?php // This is your host name address to MySQL (usually 'localhost') $db_location = 209.193.72.9; // This is the username to the MySQL server. $db_uid = gdesigns; // This is the password to the MySQL server. $db_pw = password; / // Nothing else needs to be edited below this. // / // Database name (specified in the web form). $database_name = $db_name; // Try to make a MySQL connection. $connection = mysql_connect($host_to_mysql, $un_to_mysql, $pw_to_mysql) or die(Couldn't connect to MySQL.); // Add the new database to the MySQL server. $result = mysql_create_db($db_name, $connection) or die(Couldn't create the database.); // If the database was created, print a statement that says so. if ($result) { echo Database created successfully!; } ? -- Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Dan...
Dan, I make my own error and the error is 'Couldn't connect to MySQL.'. I live in Wyoming. Why? Where do you live? Thanks Dan, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com
[PHP] mysql_error()
Dan, When I put 'mysql_error()' inside the 'or die();' it shows nothing when it doesn't connect? Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com
Re: [PHP] mysql_error()
Dan, No, I telnet to gdesigns.vcn.com. Thanks, -GENESiS DESiGNS -Sean Kennedy -http://www.gdesigns.vcn.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] How do I make the PHP script for fdisc?
Hello, I have a web form that allows someone to fdisc there drive C:\ but how to I make the PHP script to run that? By the way, I'm not using this to make someone real mad, I'm just curious and I will NOT put this script on the net, just on my local machine Thanks, -GENESiS DESiGNS -Sean Kennedy -http://wwwgdesignsvcncom -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP] CheckBoxes....
Ben, Hmm I don't really understand you question, but when I had check boxes in a form, you have to name them all the same but the value all different For example: input type=checkbox name=name[1] value=value1 input type=checkbox name=name[2] value=value2 input type=checkbox name=name[3] value=value3 input type=checkbox name=name[4] value=value4 Now as far as the PHP script I think you need to use the implode(); function -GENESiS DESiGNS -Sean Kennedy -http://wwwgdesignsvcncom -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp
Re: [PHP] anyone else been having this problem???
Hmm Whats the web site address? -GENESiS DESiGNS -Sean Kennedy -http://wwwgdesignsvcncom -- PHP General Mailing List (http://wwwphpnet/) To unsubscribe, visit: http://wwwphpnet/unsubphp