126 Posted Topics

Member Avatar for blueguy777

I got bored... <?php error_reporting(0); define("host","localhost"); define("user","root"); define("password",""); define("db","pass2"); try { $db = new PDO("mysql:host=" . host . ";dbname=" . db, user, password); }catch (Exeption $e){ die("ERROR! Could not connect to MySQL database."); } $username = strtolower(addslashes($_POST['username'])); $password = strtolower(addslashes($_POST['password'])); $sql = "SELECT * FROM users WHERE username=:user AND password=:pass"; …

Member Avatar for matrixdevuk
0
2K
Member Avatar for Pravesh_1
Member Avatar for safi.najjar1
Member Avatar for matrixdevuk
0
508
Member Avatar for masterinex

Why do people still use mysql_*? Also, why on Earth are you creating a new **table** per submission? So glad I'm not your sysadmin.

Member Avatar for matrixdevuk
0
240
Member Avatar for mangel.murti
Member Avatar for mangel.murti
0
142
Member Avatar for AndyGuy
Member Avatar for suresh.chaudhari.75

Your SMTP login information is incorrect judging by the error alone. Check your username and password is right.

Member Avatar for suresh.chaudhari.75
0
424
Member Avatar for matrixdevuk

A while ago, I had an account on DaniWeb.com, and I requested it be deleted. On that account, I had donated about $3-$4. I had also gained the OP Sponsor rank. Is it possible that I could get it back? I am able to prove the payments as they were …

Member Avatar for Dani
0
148
Member Avatar for burt.munn

You'll want to change this: $customers = $_POST ['customers']; $bill = $_POST ['bill']; $tax = $_POST ['tax']; ...to this: $customers = $_POST['customers']; $bill = $_POST['bill']; $tax = $_POST['tax']; ...it's better in terms of syntax.

Member Avatar for burt.munn
0
283
Member Avatar for matrixdevuk

I'll put it simple, I suck at Javascript. How would I make a code editor, using a textarea that you can press [tab] and then it does this: " ". And when you press enter, the indent stays.

Member Avatar for matrixdevuk
0
97
Member Avatar for davy_yg

I have not yet got an answer, as I have not read much of your code. I have though, noticed you are using mysql_* functions, which are as of this point... deprecated. Have you checked out [PDO](http://www.php.net/pdo)? It's much more secure and I might be wrong here... but I also …

Member Avatar for davy_yg
0
364
Member Avatar for safeer008

.circle { border-radius: 100%; width: 100px; height: 100px; background: #FF0000; } Give that a shot! *Not tested.*

Member Avatar for travis.holt.921_2
0
164
Member Avatar for RainaAnja

$sql = 'SELECT * FROM users WHERE username="' . $username . '" LIMIT 1');

Member Avatar for matrixdevuk
0
199
Member Avatar for fray

You! If you learn HTML, CSS, Javascript, and PHP... you can do it how you like it, and free!!

Member Avatar for matrixdevuk
0
319
Member Avatar for CFROG

sudo apt-get purge php*; sudo apt-get remove php*; sudo apt-get autoremove; sudo apt-get install php5;

Member Avatar for matrixdevuk
0
418
Member Avatar for nagarajfloret

The only *reliable* way, is to use cookies! Why not use cookies? I like cookies.

Member Avatar for matrixdevuk
0
60
Member Avatar for ebanbury
Member Avatar for davy_yg

When doing what JorgeM said, be sure you alter it quite a bit! The styles are *copyrighted*!

Member Avatar for matrixdevuk
0
89
Member Avatar for everton.retweets
Member Avatar for rpv_sen
Member Avatar for rpv_sen
0
290
Member Avatar for matrixdevuk

So, I decided to come back. Do you remember me? I used to own something called PingrGlobe.

Member Avatar for Dani
0
107
Member Avatar for stokie-rich
Member Avatar for ignnniter

Why not try this out? <?php $denied_hostnames = array("gmail.com", "yahoo.com"); foreach ($denied_hostnames as $hn) { if (strstr($_POST['email'], "@" . $hn)) { $errors[] = "Sorry bud! We don't accept " . $hn . " email addresses"; } } You could also do: <?php $allowed_hostnames = array("mydomain.com", "mydomain.net"); $good_hostname = false; foreach …

Member Avatar for Tpojka
0
5K
Member Avatar for AARTI SHRIVAS

Extending pritaeas' answer... you could use this: <?php // This goes at the TOP of your file(s). ini_set("display_errors", false); error_reporting(0);

Member Avatar for matrixdevuk
0
378
Member Avatar for kevwood

I would recommend doing this: <html> <head> <title>My Title</title> <style> body { /* your body styles here */ } .wrapper { /* your wrapper styles here */ width: 100%; height: 100%; } .mydiv { width: 800px; height: 20px; } .pad { /* Add your padding here! */ padding: 5px; } …

Member Avatar for matrixdevuk
0
290
Member Avatar for iamthwee
Member Avatar for matrixdevuk
0
606

The End.