Jump to content

robert4442

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

robert4442's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I am attaching a php/mySQL script that was working on one linix server, but after being moved to another linix server it is not send the emails. I have changed the server, user ID , and password info. Can you help me. The web site is www.florida-family.org. the database host is mysqldb2.ehost-services.com and the database name is ffamail_ffa. I would appreciate your help. Let me know if you need any more info about the site and how it functions. [attachment deleted by admin]
  2. I have a host company that uses a top level domain and then virtual host (or domains) under that top level domain. I have set up a database floridafamilyorg on florida-family.org. When I use the php mail instruction the email uses the form business-net.com which is my top level domain. When the email is sent, it shows the sender domain part of the email to be my top level domain. Is there a way that the email shows it is from florida-family.org instead. Here is an example. If you go to http://florida-family.org/send_email_5.php and fill out the form, the recipient will get an email from the database email addresses that says they are from firstname.lastname@business-net.com. I would like it to say, firstname.lastname@florida-family.org instead. How can I do that? My Host says this is something you would have to setup within php to set the from address. Below is the script. <?php /*******************************************************************************\ ** ** ** This code has been generated with easyGen 2.4 ** ** http://www.easygen.com ** ** ** ** easyGen copyright © 2003 - 2007 Symbiant Software. ** ** Symbiant is a trading name of Credit Card Merchant Services Ltd. ** ** ** ** ** ** THIS CODE IS PROVIDED BY THE COPYRIGHT HOLDERS AND ** ** CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, ** ** INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF ** ** MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE ** ** DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR ** ** CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, ** ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT ** ** NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; ** ** LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) ** ** HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN ** ** CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR ** ** OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS CODE, ** ** EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ** ** ** \*******************************************************************************/ // Turn on magic quotes to prevent SQL injection attacks if(!get_magic_quotes_gpc()) set_magic_quotes_runtime(1); // Connect to database $eg_objConn1 = mysql_connect("localhost", "root", ""); mysql_select_db("floridafamilyorg", $eg_objConn1); // Get Record Set $eg_recResult1 = mysql_query("SELECT `ffa_content`.`email_subject`, `ffa_content`.`email_content`, `ffa_content`.`page_content` FROM `ffa_content` ", $eg_objConn1); $eg_Result1 = @mysql_fetch_array($eg_recResult1, MYSQL_ASSOC); // Conditional statement if(!empty($_POST)) { // Get Record Set $eg_recResult2 = mysql_query("SELECT `send_emails`.`email_address`, `send_emails`.`title`, `send_emails`.`name` FROM `send_emails` ", $eg_objConn1); $eg_Result2 = @mysql_fetch_array($eg_recResult2, MYSQL_ASSOC); // Check that there are records in the recordset if(@mysql_num_rows($eg_recResult2) > 0) { // Set record set pointer to the start of the record set and begin looping mysql_data_seek($eg_recResult2, 0); while($eg_Result2 = mysql_fetch_array($eg_recResult2, MYSQL_ASSOC)) { $eg_text_1 = "Dear {TITL} {NAM},\n\n{BOD}\n\nSincerely,\n{SENDE}\n{EMAI}\n{ADDRES}\n\n"; $eg_text_1 = str_replace("{TITL}", @$eg_Result2['title'], $eg_text_1); $eg_text_1 = str_replace("{NAM}", @$eg_Result2['name'], $eg_text_1); $eg_text_1 = str_replace("{BOD}", @$eg_Result1['email_content'], $eg_text_1); $eg_text_1 = str_replace("{SENDE}", @$_POST['sender_name'], $eg_text_1); $eg_text_1 = str_replace("{EMAI}", @$_POST['senders_email'], $eg_text_1); $eg_text_1 = str_replace("{ADDRES}", @$_POST['senders_address'], $eg_text_1); } mysql_data_seek($eg_recResult2, 0); $eg_Result2 = mysql_fetch_array($eg_recResult2, MYSQL_ASSOC); } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <!-- This page has been generated with easyGen. (http://www.easygen.com) easyGen © 2003 - 2007 Symbiant. --> <html> <head> <title>Untitled</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <table cellspacing="0" cols="1" cellpadding="0" width="100%" border="1"> <tbody> <tr> <td> <p> <table cellspacing="0" cols="1" cellpadding="0" width="100%" border="1"> <tbody> <tr> <td> </td> </tr> <tr> <td> <span id="label1"><?php echo @$eg_Result1['page_content'] ?></span> </td> </tr> <tr> <td> <form id="Form1" style="WIDTH: 100%" action="<?php echo $_SERVER['PHP_SELF'].(@($_SERVER['QUERY_STRING'] > ' ') ? '?'.$_SERVER['QUERY_STRING'] : '') ?>" method="post"> <p> <table cellspacing="0" cols="2" cellpadding="0" width="100%" border="1"> <tbody> <tr> <td style="WIDTH: 127px"> Your Full Name</td> <td style="WIDTH: 862px"> <input id="Text1" style="WIDTH: 858px; HEIGHT: 22px" size="117" name="sender_name"></td> </tr> <tr> <td> Your Email Address</td> <td> <input id="Text2" style="WIDTH: 858px; HEIGHT: 22px" size="117" name="senders_email"></td> </tr> <tr> <td> Your Address</td> <td> <input id="Text3" style="WIDTH: 858px; HEIGHT: 22px" size="117" name="senders_address"></td> </tr> <tr> <td style="HEIGHT: 21px"> Email Subject</td> <td> <input id="Text4" style="WIDTH: 858px; HEIGHT: 22px" size="117" value="<?php echo @$eg_Result1['email_subject'] ?>" name="email_subject"></td> </tr> <tr> <td style="HEIGHT: 21px" colspan="2"> <textarea id="TextArea1" style="WIDTH: 989px; HEIGHT: 36px" name="email_content" rows="9" cols="108"><?php echo @$eg_Result1['email_content'] ?></textarea> </td> </tr> <tr> <td colspan="2"> <input id="Submit1" type="submit" value="Submit Email(s)" name="Submit1"></td> </tr> </tbody> </table> </p> <p> </p> </form> </td> </tr> </tbody> </table> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> </td> </tr> </tbody> </table> </body> </html> <?php // Tidy up used objects // Close recordset if(isset($eg_recResult1)) @mysql_free_result($eg_recResult1); // Close database connection if(isset($eg_objConn1)) @mysql_close($eg_objConn1); // Close recordset if(isset($eg_recResult2)) @mysql_free_result($eg_recResult2); ?>
  3. otuatail, Is this what yopu mean? <?php $to = trim($_POST['to']); $from = trim($_POST['from']); $subject = trim($_POST['subject']); $message = trim($_POST['message']); $send = mail($to_1,$subject,$message,"FROM: ".$from."\n\rCC: ".); $send = mail($to_2,$subject,$message,"FROM: ".$from."\n\rCC: ".); $send = mail($to_3,$subject,$message,"FROM: ".$from."\n\rCC: ".); $send = mail($to_4,$subject,$message,"FROM: ".$from."\n\rCC: ".); if ($send) { echo "Sent"; } else { echo "Error sending"; } ?> What do I do with this? $success = mail($to,$sss, $mmm, $headers);
  4. I have an email script in php that sents to two email addresses. I need to know how to expand this to send many more than two(Up to 10). Below is the script. This script is activated from another page with a form on it. iT IS ALOS BELOW I would aqppreciate your help. *********************************************************************** <?php $to = trim($_POST['to']); $from = trim($_POST['from']); $subject = trim($_POST['subject']); $message = trim($_POST['message']); $copy = 'any@business-net.com'; //$bcc = "rany@tampabay.rr.com"; $send = mail($to,$subject,$message,"FROM: ".$from."\n\rCC: ".$copy); if ($send) { echo "Sent"; } else { echo "Error sending"; } ?> ********************************************************************* <form action='sendmail.php' method='post'> <p> </p> <p><font color="#FF0000"><strong>EMAIL TO ATTORNEY GENERAL JOHN ASHCROFT</strong></font></p> <p>TO: <input type='text' name='to'> <br> FROM: <input type='text' name'from'> <br> SUBJECT: <input type='text' name='subject'> <BR> Enter Message:<br> <textarea name='message'></textarea> <br> <br> <input type='Submit' value='Send Message'> </p> ******************************************************
  5. I have installed phpdev5 on my computer that gives me php and mySQL on my local computer. I am running a program call easyGen which allows my to build a dynamic web site. It writes the php for me and creates the mySQL database. It exports the PHP pages to my testing server. Here is the problem I am having is below. These are page to have a membership and login: 1. Register page with Problem - register.php code was two long to include 2. Login Page with prolem - login.php code was two long to include 3. Copy of my php.ini file - I attach a zip file for more information The software company says: ******************************************** Both these problems are to do with the configuration of the server they are running on, more specifically the PHP settings. Both these problems can be resolved by correctly configuring the php.ini file. The error in the email program relates to the mail configuration, check that you have enabled emails and set a valid mail server. The other error relates to writing session data. Again these details must be entered in the php.ini file and you must ensure that the paths they point to are valid. Unfortunately we are unable to assist you in configuring PHP as we do not have the relevant training or expertise. However you should be able to get support on this from the provider of your server or on one of the many PHP forums on the web. ************************************************* I need help configuring thephp.ini files since I am not familiar enough with this file to know what I am doing. ************************************************* Register page ************************************************* Warning: open(/tmp\sess_f2771223489e57f1acd4790c34d1bec0, O_RDWR) failed: No such file or directory (2) in c:\phpdev5\www\easygen\projects\contactconnector_e ntry\export\register.php on line 27 Register New User User Name: Password: Confirm Password: ________________________________________ First Name: Surname: Email: ________________________________________ Address: Post Code: Country: ________________________________________ Phone: Fax: Mobile: ________________________________________ More Details: ________________________________________ Warning: open(/tmp\sess_f2771223489e57f1acd4790c34d1bec0, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 ************************************************** ****** Login page ************************************************** ****** User name: Password: Warning: open(/tmp\sess_29e773124d6b2c21a887c44b430e0ab1, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 ************************************************** ******** [attachment deleted by admin]
  6. **************************************************** I am trying to stream real. The files are ram files that point to rm files. When the album is slected from album.php it goes to album detail.php. A list of the songs in that album show up. If you click on a song it is supposed to stream. See www.isaiahrecord.com/album.php
  7. Can someone point me in the right direction? I am using Dreamweaver MX 2004 and need help with a dynamic site. I am using mysql and PHP through Dreamweaver. I have a record store selling on artist’s albums. The album.php page shows all the albums and allows you to select which album you want to see detail. The albumID is passed to the album_detail.php page. This page has album descriptions, price, etc. It also list the songs In the album. This all works. I want the viewer to click on the sing name and it will play a sample of the songs. That’s where I am having a problem. See below. I have a database with a table album and song. Following is the database sql. on. /* SQLyog Enterprise v4.0 Host - localhost : Database - isaiahrecords ************************************************************** Server version 4.0.0-alpha-nt */ create database if not exists `isaiahrecords`; use `isaiahrecords`; /* Table structure for album */ drop table if exists `album`; CREATE TABLE `album` ( `albumID` int(11) NOT NULL auto_increment, `album_name` varchar(70) default NULL, `album_description` text, `album_price` varchar(7) default NULL, `album_cover` varchar(100) default NULL, `album_coverthumbnailURL` varchar(100) default NULL, `album_special` char(3) default NULL, `album_buy` varchar(255) default NULL, PRIMARY KEY (`albumID`) ) TYPE=MyISAM; /* Table data for isaiahrecords.album */ INSERT INTO `album` VALUES (1,'Ask','This cd is dedicated to the many children of God who are smooth jazz lovers. The project is a presentation of familiar jazz tunes that have been remixed, rewritten and crossed over to portray a version that expresses the life of Christ and timelessness of His Word. Get ready jazz lovers, this one will keep you with your finger on the repeat button. The Jazz Project , created for your listening pleasure. Enjoy it with all of your friends.','15','Albumcovers/ask.jpg','Thumbnails/ask_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260&product=Ask Album CD&price=15.00&units=1&return=isaiahrecords.com'), (2,'Crossing Over','This cd is dedicated to the many children of God who are smooth jazz lovers. The project is a presentation of familiar jazz tunes that have been remixed, rewritten and crossed over to portray a version that expresses the life of Christ and timelessness of His Word. \n\nGet ready jazz lovers, this one will keep you with your finger on the repeat button. The Jazz Project - created for your listening pleasure. Enjoy it with all of your friends.','15','Albumcovers/jass.jpg','Thumbnails/jass_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260&product=The Jazz Project Album&price=15.00&units=1&return=isaiahrecords.com'), (3,'One More Night with The Frogs','One More Night With The Frogs - Presenting new album from Arthur. It is an uplifting mixture of smooth jazz and some originals from Arthur that will truly bless your soul. And of course, there is \"The Frog!\".','15','Albumcovers/frog.jpg','Thumbnails/frog_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260&product=One MoreI Night With The Frogs&price=15.00&units=1&return=isaiahrecords.com'), (4,'Making Music I - Authur & Family','Arthur and Family Vol. 1 offers an assortment of Arthur’s most requested concert selections like “I’ll Tell It” and “Center Of My Joy.” This project includes a captivating background vocal mix featuring some of the most gifted vocalist from Arthur’s church family. Listen to the debut of Arthur’s daughter Alex as she sings lead on the crossover and remix of the song “Missing You” which also includes a special debut of the poetic voice of her mother Jill. The songs on Family Vol. 1 are prepared and selected for the enjoyment of the whole family! ','15','Albumcovers/mm1.jpg','Thumbnails/mm1_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260&product=Making Music II II Album&price=15.00&units=1&return=isaiahrecords.com'), (5,'Making Music II - Authur & Family','Arthur and Family Vol. 2 presents a “live” concert performance where Arthur is joined by friends who present a variety of musical styles and talents. The background vocalists from Vol. 1 are out front singing inspirational songs of worship and praise. Listen for yourself and experience praise and worship in an atmosphere filled with joy and excitement. Join in and sing along to some of your favorite tunes!','15','Albumcovers/mmII.jpg','Thumbnails/mmII_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260&product=Family Album CD&price=15.00&units=1&return=isaiahrecords.com'), (6,'Christms Joy','Christmas Joy Enjoy your holiday season with Arthur and the Northside Baptist Celebration Choir, singing a selection of favorite Christmas songs. Prepare to clap and sing along as Arthur and the Sarasota Baptist Church Choir sing their special rendition of “I Have Seen the Light” and “Go Tell It On The Mountain.” Reminisce on Christmases past while listening to medleys of popular Christmas classics, which include \"Chestnuts Roasting On An Open Fire.” Christmas Joy is a CD that you’ll want to listen to all year round! \n\n','15','Albumcovers/christmasjoy.jpg','Thumbnails/christmasjoy_thumb.jpg','no','http://www.aitsafe.com/cf/add.cfm?userid=3351260_\"uct=Christian Joy CD&price=15.00&units=1&return=isaiahrecords.com'); /* Table structure for albumkey */ drop table if exists `albumkey`; CREATE TABLE `albumkey` ( `albumkeyID` int(11) NOT NULL auto_increment, `albumID` int(11) default NULL, `songsID` int(11) default NULL, PRIMARY KEY (`albumkeyID`) ) TYPE=MyISAM; /* Table data for isaiahrecords.albumkey */ INSERT INTO `albumkey` VALUES (1,1,1), (2,1,2), (3,2,3), (4,2,4), (5,3,5), (6,3,6), (7,4,7), (8,4,, (9,5,9), (10,5,10), (11,6,11), (12,6,12); /* Table structure for songs */ drop table if exists `songs`; CREATE TABLE `songs` ( `songsID` int(11) NOT NULL auto_increment, `song_name` varchar(50) default NULL, `song_file` varchar(100) default NULL, `song_time` varchar(10) default NULL, PRIMARY KEY (`songsID`) ) TYPE=MyISAM; /* Table data for isaiahrecords.songs */ INSERT INTO `songs` VALUES (1,'Ask','http://isaiahrecords.com/Music/Ask/Ask.ram','3'), (2,'Are you sure','http://isaiahrecords.com/Music/Ask/Are you sure.ram','3'), (3,'In The Beginning','http://iasishrecords/Music/Jass_Project/IN_THE_BEGINNING.RAM','3'), (4,'Moomba','http://isaiahrecords/Music/Jass_Project/MOOMBA.RAM','3'), (5,'Frog','http://isaiahrecords/Music/One_More_Night_With_The_Frogs/Frog.ram','3'), (6,'Good Fruit','http://isaiahrecords/Music/One_More_Night_With_The_Frogs/Good_Fruit.ram','3'), (7,'You Bring Me Up','http://isaiahrecords/Music/MMV1/Bring me up.ram','3'), (8,'Jesus Loves Me','http://isaiahrecords/Music/MMV1/Jesus Loves me.ram','3'), (9,'O Happy Day','http://isaiahrecords/Music/MMV2/O Happy day.ram','3'), (10,'People Get Ready','http://isaiahrecords/Music/MMV2/People get ready.ram','3'), (11,'A King Is Born','http://isaiahrecords/Music/Christmas_Joy/KING IS BORN.RAM','3'), (12,'Amen','http://isaiahrecords/Music/Music/Christmas_Joy/AMEN.RAM','3'); The pages are album.php and album_detail.php. The album.php feeds the album_detail.php with the albumID. The recordset rs_album_detail is as follows: SELECT album.albumID,album.album_cover,album. album_name, album.album_description, album.album_price, album.album_buy, songs.song_name, songs. song_time, songs.song_file FROM album, albumkey, songs WHERE album.albumID = albumkey.albumID AND songs.songsID = albumkey.songsID AND album.albumID = colname The variables box I have : Name =Colname Value =1, and runtime=$HTTP_GET_VARS['albumID'] Code: <?php $colname_rs_album_detail = "1"; if (isset($HTTP_GET_VARS['albumID'])) { $colname_rs_album_detail = (get_magic_quotes_gpc()) ? $HTTP_GET_VARS['albumID'] : addslashes($HTTP_GET_VARS['albumID']); } mysql_select_db($database_cn_isaiahrecords, $cn_isaiahrecords); $query_rs_album_detail = sprintf("SELECT album.albumID,album.album_cover,album. album_name, album.album_description, album.album_price, album.album_buy, songs.song_name, songs. song_time, songs.song_file FROM album, albumkey, songs WHERE album.albumID = albumkey.albumID AND songs.songsID = albumkey.songsID AND album.albumID = %s", $colname_rs_album_detail); $rs_album_detail = mysql_query($query_rs_album_detail, $cn_isaiahrecords) or die(mysql_error()); $row_rs_album_detail = mysql_fetch_assoc($rs_album_detail); $totalRows_rs_album_detail = mysql_num_rows($rs_album_detail); ?> I am trying to play a audio stream from the songs table: I dragged The {rs_album_detail.song_name} from the recordset and went to the link box in properties, clicked on datasource and selected song_file from the record set. It is not selecting the proper song when going from ablum.php to album_detail.php Everything else on the page works putting the right songs on the page. That tells me my joins are working properly. It Just don’t know how to get the songs file to go with the correct album and steam the file. The song file is in the database in the songs.song_file. <?php do { ?> <table width="100%" border="0" cellspacing="0" cellpadding="2"> <tr> <td width="43%" align="right"><div align="left"><a href="<?php echo $row_rs_album_detail['song_file']; ?>?albumID=<?php echo $row_rs_album_detail['albumID']; ?>"><?php echo $row_rs_album_detail['song_name']; ?></a></div></td> <td width="57%" align="left"><?php echo $row_rs_album_detail['song_time']; ?></td> </tr> <tr> <td colspan="2"><img src="images/Line.gif" width="542" height="8"></td> </tr> </table> <?php } while ($row_rs_album_detail = mysql_fetch_assoc($rs_album_detail)); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.