Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Make Me A Website

Members
  • Joined

  • Last visited

  1. Hi Guys, I hope you can help, I've acquired few customers websites which, to be blunt, need bringing into the 21st Century. I'm looking to get some advice on how to approach them to say that essentially 'your website is crap and i'll build a new one for you, and by the way we will charge for it' any suggestions? Cheers Shane
  2. could it be that the mysql server is on a windows host and the page is on a linux host?
  3. that doesn't work, it says cannot connect to database ??any ideas?
  4. I have tried this code, it send back the following error "Parse error: syntax error, unexpected '}' in /.../add_user.php on line 29" please see below my revised code, only has a couple of tweeks <?php if (isset($_POST['submit'])){ $connection = mysql_connect("***","****","***"); // Mysql Connection if (!$connection) { die('Could not connect: ' . mysql_error()); } mysql_select_db("***", $connection); $username = $_POST[username]; $password = $_POST[password]; $fullname = $_POST[fullname]; $hashed_password = sha1($password); $sql="INSERT INTO users (id username, hashed_password, full_name) VALUES ( NULL, '$username','$hashed_password', '$fullname')"; if (!mysql_query($sql,$connection)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($connection) } //this is line 29 ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Add New User</title> </head> <body> <form action="add_user.php" method="post"> Username: <input type="text" name="username" /><br /> Password: <input type="password" name="password" /><br /> Fullname: <input type="text" name="fullname" /><br /> <input type="submit" name="submit" /> </form> </body> </html>
  5. Hi Guys, My inital question was answered and i've been able to load the page. I have asked a second question which was how to i prevent the query from submitting when the page loads. i hope this clears up any confusion Kind Regards Shane
  6. ok, it looks like its my host however, i have uploaded to another server, each time the page loads it adds a record to the table? any idea why? and how to stop it?
  7. Have done this, still getting error
  8. Have changed the code, still cant view the page, still getting the 500 error, its very strange, i can manually enter the values in the above code and it works fine, but as soon as i change the code to pick up information from the form it doesnt work. an ideas? P.s The ID is autoincrement so i can use NULL
  9. i'm getting an internal server error 500 - Internal server error. i cannot even load the page any ideas?
  10. Hi Guys, I'm trying to create a page where i can add new users to a database my code is <?php $connection = mysql_connect("***","***","***"); // Mysql Connection if (!$connection) { die('Could not connect: ' . mysql_error()); } mysql_select_db("***", $connection); $sql="INSERT INTO 'users' (id, username, hashed_password, full_name) VALUES ( NULL, '$_POST[username]','$_POST[hashed_password]', '$_POST[fullname]')"; if (!mysql_query($sql,$connection)) { die('Error: ' . mysql_error()); } echo "1 record added"; mysql_close($connection) ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Add New User</title> </head> <body> <form action="add_user.php" method="post"> Username: <input type="text" name="username" /><br /> Password: <input type="password" name="hashed_password" /><br /> Fullname: <input type="text" name="fullname" /><br /> <input type="submit" /> </form> </body> </html> I have ***'s out my login details and database name, but can anyone see why i get an error when i load the page I look forward to hearing your response Kind Regards Shane
  11.    Chaz889 reacted to a post in a topic: Hello and a little help.
  12. first of all, how come you are using a table layout? in answer to our question, you will need to have a div which all of your content will go into, and set a css property of #wrapper { margin: 0px auto; } (wrapper is the name i use)
  13. the report is showing that you have set css for .wp-caption , i cannot find a reference to this class in your code, i think thats what the error maybe
  14. Hi Guys, I know there are a already a number of posts about this topic but i'm kinda looking for something specific. I've been using MS Visual Web Developer Express to do work with ASP.NET, which i've found brilliant. I am, however looking for something similar for PHP. Any Ideas?
  15. Hi, Its quite simple, you simply set the rectangle as the active layer and then use the rectangular selection tool to select the top and hit the delete key, then do the same for the bottom. i hope this helps Shane

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.