Reputation Activity
-
Brick got a reaction from B533913X in Do I start with coding or Visual Web Design programs?Uninstall Dreamweaver. I'm not joking.
Creating a test environment can be a great idea. For one, it gives you live experience of installing Apache, PHP and MySQL, who are about to become your best friends. It also means you can develop your pages without the pain of uploading things to a server every time you change them, and without the security risk of making unfinished code semi-public. Though you may not be producing dynamic pages yet, you'll be amazed how quickly you will be.
On the other hand, if you're just starting out and have access to a PHP-ready host, you may want to leave the dev server until later.
Oh, and if I could go back...? I'd have learned jQuery on release day, rather than last month.
-
Brick got a reaction from RobertG in Whats the easiest way of doing this?In each admin panel, I would call yoursite.com/serviceupdate.php?site_id=214 on page load. I would store my service updates in a database table and query with $_GET['site_id']. In my own interface for creating service updates, I would use checkboxes to determine the scope of each service update (i.e. whether it applies to one, all, or some of my clients). You could also provide a "dismiss" link for clients once they have dealt with the update, or even link them directly to a payment gateway on your own server that dismisses the bills on checkout.
-
Brick got a reaction from Jock in Perl Script Contact Form - How to send to any email address?Try learning some Perl.
-
Brick got a reaction from bocaj in How to display " from a database?Always call mysql_real_escape_string on any data you are submitting as SQL.
For example (from http://php.net/manual/en/function.mysql-real-escape-string.php):
<?php // Connect $link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password') OR die(mysql_error()); // Query $query = sprintf("SELECT * FROM users WHERE user='%s' AND password='%s'", mysql_real_escape_string($user), mysql_real_escape_string($password)); ?>
This will automatically escape problematic characters, freeing you from the danger of malformed queries or security risks from SQL injection.