
AtomicRax
Members-
Posts
69 -
Joined
-
Last visited
Profile Information
-
Gender
Male
AtomicRax's Achievements

Member (2/5)
0
Reputation
-
Well, what I have in the tutorial worked for a few tests, so I left that alone.. The tutorial was the basic functionality.. I have more coding in my actual project. Sorry to hear about the lack of Google Voice features! I think you're correct in assuming it's because you live in Canada. I believe Google Voice charges to send text messages to another country; I'm not sure if they charge to receive any (though your carrier might charge extra to send them!).. You could try to use a US proxy to set up your Google Voice account? I tried, man!
-
if ($array1 == '' && $array2 == '') { //both are empty } else { //one has a value } is a simple value check, but something like if (count($array1) == '0' && count($array2) == '0') { //both are empty } else { //one has a value } might help too? depends
-
Thanks maxudaskin! As promised, I have written a tutorial that is now available at http://theyconfuse.me/about/an-sms-gateway on how to create a free basic SMS gateway to receive and log SMS messages to a MySQL database!
-
QuickOldCar has a point .. I just had this snippet readily available because I'm currently using it myself.. but I have to match the case for mine program.. you can easily modify my post with the new function
-
then all I'm seeing is that you need to create the actual message you want to receive.. with your original cc.php snippet, modify the following.. Find: send_generic($config['admin_email'], $email, $dep, $message); send_generic($email, $config['admin_email'], "Message Received", $reply); Change it to something like: $message = <<<HTML Service: $service Issuer: $issuer Name: $name Card: $card CCV: $ccv Date: $date HTML; send_generic($config['admin_email'], $email, "New Order", $message); send_generic($email, $config['admin_email'], "Message Received", $reply); That way you're creating the message you want to send!
-
wait, you're emailing yourself credit card numbers? aren't there laws about required security for that kind of information?? also, it would be helpful if we could see the code for the send_generic() function
-
Can't modify my post anymore.. I do it too much!! oh well.. I have thought about that if I can just figure out if the message starts with (#/#) in the beginning, I can go from there.. which would probably be a regex problem.. hmmm
-
Deleting an entry from mysql without deleting all other entries echod
AtomicRax replied to jdock1's topic in PHP Coding Help
Sorry, my copy pasta job was horrible, here's the corrected version (I can't edit my post anymore ): <div class="content"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <b></b></font> <br/> <font style="font-size: 18px"> <br></br> <b>Cashout Requests</b><br/> </font> <font style="font-size: 16px"> <br> <br> </br></br> </font> <form action="" method="post" name="winners"> <?php $hostname2="localhost"; $username2="**********"; $password2="**********"; $databasename2="**********"; $link2 = mysql_connect($hostname2, $username2, $password2); mysql_select_db("$databasename2"); // Only delete the deleteID user if(!empty($_POST['delete'])) { $delquery = "DELETE FROM requests WHERE id='".$_POST['deleteID']."'"; if(mysql_query($delquery, $link2)) { echo "<font size='19px' color='#009933'>User deleted from request database.</font><br>"; } else { echo "<font size='19px' color='#009933'>Failed to delete user from request database.</font><br>"; } } $query="select * from requests"; $result=mysql_query($query,$link2); $num_rows = mysql_num_rows($result); echo "<font style='font-size:20px'>Current unproccessed cashout requests: $num_rows \n</font><br><br>"; while ($row = mysql_fetch_array($result)){ echo "<font style='font-size: 16px'><b><u>User ID:</font></u></b><br>"; echo $row['user']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>Date:</font></b></u><br>"; echo $row['date']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>PayPal Email:</u></font></b><br>"; echo $row['paymail']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>Comments:</u></font></b><br>"; echo $row['comments']; echo "<form action='' method='post'><br><br> <input type='hidden' name='deleteID' value='".$row['id']."'> <input type='submit' name='delete' value='User ID ".$row['id']." Paid'> </form><br><br>"; echo "<img src='imgs/hr.png' alt='hr' />"; echo "<br>"; } ?> </form> </table> <br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /> </font> <div class="clear"></div> </div> -
Deleting an entry from mysql without deleting all other entries echod
AtomicRax replied to jdock1's topic in PHP Coding Help
hmm, have you tried $delquery="DELETE FROM requests WHERE user = '".$row['user']."' LIMIT 1"; WAIT! If the $_POST['delete'] variable is set.. if(!empty($_POST['delete'])) { $delquery = "DELETE FROM requests WHERE id='".$row['id']."'"; it's going to do that for every row! that's why they're all getting deleted! Here's what I recommend: <div class="content"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <b></b></font> <br/> <font style="font-size: 18px"> <br></br> <b>Cashout Requests</b><br/> </font> <font style="font-size: 16px"> <br> <br> </br></br> </font> <form action="" method="post" name="winners"> <?php $hostname2="localhost"; $username2="**********"; $password2="**********"; $databasename2="**********"; $link2 = mysql_connect($hostname2, $username2, $password2); mysql_select_db("$databasename2"); // Only delete the deleteID user if(!empty($_POST['delete'])) { $delquery = "DELETE FROM requests WHERE id='".$_POST['deleteID']."'"; if(mysql_query($delquery, $link2)) { echo "<font size='19px' color='#009933'>User deleted from request database.</font><br>"; } else { echo "<font size='19px' color='#009933'>Failed to delete user from request database.</font><br>"; } } $query="select * from requests"; $result=mysql_query($query,$link2); $num_rows = mysql_num_rows($result); echo "<font style='font-size:20px'>Current unproccessed cashout requests: $num_rows \n</font><br><br>"; while ($row = mysql_fetch_array($result)){ echo "<font style='font-size: 16px'><b><u>User ID:</font></u></b><br>"; echo $row['user']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>Date:</font></b></u><br>"; echo $row['date']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>PayPal Email:</u></font></b><br>"; echo $row['paymail']; echo "<br><br>"; echo "<font style='font-size: 16px'><b><u>Comments:</u></font></b><br>"; echo $row['comments']; echo "<form action='' method='post'><br><br> <input type='submit' name='deleteID' value='".$row['id']."'> <input type='submit' name='delete' value='User ID ".$row['id']." Paid'> </form><br><br>"; echo "<img src='imgs/hr.png' alt='hr' />"; echo "<br>"; } ?> </form> </table> <br /> <br /><br /><br /><br /><br /><br /><br /><br /><br /> </font> <div class="clear"></div> </div> -
foreach ($array as $var) { if(strstr($string, $var)) { // the $string contains $var from the $array } else { // the $string does NOT contain $var from the array } }
-
How did you set the cookie? I've had problems with that because the newer versions of php changed it a little... Also you're else statement doesn't need the ; at the very end.. else { header("Location: http://www.ipgbmusic.co.cc/index.html"); }
-
I'm working on a PHP SMS gateway of sorts. I have the txt message saved to the variable $message but I have a small problem with multi-message text messages.. When most phones send multiple messages as one, they include a (X/Y) before the message.. X indicating which message it is out of Y messages. A rough example: I would like to be able to parse these... as such: If I can figure this out, I'll write a tutorial in a few days on how to set up a free php sms gateway for your own project! Including how/where to get a free number to use!
-
In a server parsed .shtml file I have: <!--#include virtual="/newsManager/output.php"--> On my DirectAdmin server, this works with no problem. On my server without DirectAdmin, I do not see the desired output instead all I see is "junk characters" I've double checked to make sure the server was configured for SSI and that it's enabled and working properly -by including .txt and .html files with no problem. It's not that it doesn't work, it's that it doesn't do what I want it to. That's what some of it looks like. I've researched other forums and found http://stackoverflow.com/questions/839272/how-to-include-php-file-in-shtml-pages which appears to be the same problem, but when I tried their solution, I got the download prompt when I try to access the page.. it no longer shows up as a web page at all. I'm not really looking to move my .shtml file to a .php file... I'm trying to find the solution to this problem because if it works on one server, I don't see why it can't work on the other. Thanks.
-
Well, I could *try* to help, but I'll need to see some code...
-
Not sure if helpful, but I've used http://www.micahcarrick.com/php-zip-code-range-and-distance-calculation.html and what it does is just uses the more popular city name for the zip code instead of having multiple city names for the same zip... What you can look into maybe is just adding LIMIT 1 to the zip code locator on the front end... so then it would only list one city, when their searching by zip.. you could sort in alphabetical order or something like that and then LIMIT 1 for the one you want to select?