Advertisement
Advertisement
| 01.07.2008 at 01:18PM PST, ID: 23064839 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: |
<?php
include 'opendb.php';
$query = "SELECT distinct
SubscriptionID, s.CustomerID, EndDate, Price, u.ContactName, u.Number
FROM
subscriptions AS s JOIN customers AS u ON s.CustomerID=u.CustomerID
WHERE
EndDate='" . date("Y-m-d", strtotime("+1 day")) . "'
ORDER BY
EndDate;";
$result = mysql_query($query);
echo mysql_error();
//echo $result;
while($row = mysql_fetch_array($result, MYSQL_ASSOC))
$num = $row['Number'];
$name = $row['ContactName'];
$end = $row['EndDate'];
$name2 = str_replace (" ", "+", $name); // This should remove any spaces in the name, and put a '+' symbol in place (required for HTTP post)
$num2 = str_replace (" ", "", $num); // As above, but removes any spaces from the number
function dotestpost($num2,$message)
{
$weburl = "http://test.domain.com/post/testpost.php";
// encodes the message for sending on the web
$message = urlencode($mess2);
// the request string
$posturl = "$post?tel_num=$num2&name=$message";
// connects to server to post output
if ($content_array = file($posturl))
{
$content = implode("", $content_array);
// check for response
if (eregi("A-SUCCESS",$content))
echo "This was a success";
}
else
echo "There was an error connecting to the server";
}
dotestpost($num2="",$message="");
?>
|