Jump to content

Search the Community

Showing results for tags 'keep receiving a error messag'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 1 result

  1. im doing a project for my class and im getting this error so im suppose to be able to type in a phone number and a message. Its suppose to be taken from the forum and be put into the database into a table with columns/message/phone number here is the forum <?php //Add message and phone number to the "messages" table ... $con = mysql_connect("localhost","rrwolff*****","****"); //Connection string //drmerry_Project6 is the user then project6 is the password if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("rrwolff0_wolffman", $con); //drmerry_php is the database $sql="INSERT INTO Project6 VALUES ('".$_POST[textmessage]."','".$_POST[phonenumber]."');" ; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Record Added"; //line 3 and line 8 have to be customized to your settings // ?> //****************************************************************************************** //This section will send an the text message to everyone in the Members table $fromemail = "****16@email.*****" ; $message = $_POST[textmessage] ; $sql="SELECT Email FROM members"; mysql_query($sql,$con); $result = mysql_query($sql); //echo "Message Sent To:<br/>"; while ($row = mysql_fetch_assoc($result)) { // while will look through all members of the database //echo $row['Email']."<br/>"; //echo "From Email:".$fromemail."<br/>"; mail($row['Email'], "New Text Message", $message, "From: ". $fromemail ); } //****************************************************************************************** //This section will add an entry to an RSS feed $rss = simplexml_load_file('text.xml'); $item= $rss->channel->addChild('item'); $item->addChild('title', date("m/d/Y")."-".date("g:i a") ); $item->addChild('description', $_POST[textmessage]."-".$_POST[phonenumber]); file_put_contents('text.xml', $rss->asXML()); Im getting the error message when i type in my number and message can any1 help me please?
×
×
  • 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.