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.

redders

Members
  • Joined

  • Last visited

  1. YES! This is exactly what I was looking for actually. I had looked around myself and come to the conclusion that this was a much-wanted bit of software that nobody had written yet, so I was gearing up to write it myself. Now it seems I don't have to. Thanks. Also, thanks to everyone else, all good replies .
  2. Hi Everyone, I was wondering if it would be possible to write some software that can pull down posts from an on-line forum or bulletin board without having administrative privileges? Obviously not with passworded/restritcted posts that a given user doesn't have access to, just the posts he/she could normally read if they were browsing the forum via the site.
  3. Oops! You're right - I'm so used to mistyping result as eresult, ersult and many others that I assumed this was a typo. How embarrassing.
  4. The way I would do this is to have the delete button link you to the same page, but pass some data to the page (using GET or POST) lets say your current page is http://www.atable.com/table.php, you could have the button link to http://www.atable.com/table.php?action=delete,id=5 You can then check with php for an action when the page loads, and then use switch/case for the possible values. if isset($_GET['action']){ switch($_GET['action']){ case "delete": $query = "DELETE FROM xx WHERE ID = '$_GET[id]'"; break; case "edit": $query = "UPDATE xx SET name= '.$_GET["newname"].' WHERE ID = '$_GET[id]' " break; } mysql_query($query,$conn); //obviously you'd have to have a connection object set up as $conn for this to work. } Alternatively you could do the same thing using $_POST variables, but you'd have to have some javascript that changed the values of some hidden fields on the form before, so get is a bit simpler (but easier for the user to edit, and cause some big screw-up!). EDIT: if you'd rather do it the POST way, but don't know how, then let me know.
  5. It've spotted the error, it's easily done, and you'll kick yourself when you see it. Be sure to look at the line number that the error is on when you get a message like that. Line number 59 contains this: if(mysql_num_rows($eresult) !== 0); See it now? Typo, $eresult should be $result. EDIT: also, it's not a great idea to include your database details when you copy/paste code, be sure to edit them out in the future. Now not only do I know what your favourite band is, but I also know your password!
  6. First of all, hi everyone! This is my first post in the web designer forums. I've been dabbling in web development for around a year now. I'm pretty confident in html/css and php/mysql. I've also done a bit of asp and .net. My most recent project is to help some friends who run tournaments for games that can be played competitively online. Currently entry to the tournaments is done by email, and all of the match-ups are generated by hand. I want to provide a website that will do all the donkey work, as well as provide a centralised location where people are able to check the status of the tournament as it progresses. To get started, I have been thinking about how to generate a tournament bracket for a single elimination tournament (see this example on wikipedia). I'm not worried about the code that will work out who plays against who - I'm fairly confident about how to do that - it's more the code that actually draws the table. So that's my question - how would you go about doing it? There are several approaches I can think of, I'm just interested in a second opinion, and perhaps some ideas that haven't crossed my mind. p.s. I'm not after huge long code snippets, in-depth reports, just a brief expaination of a possible method or two, and the reasons you think it's a good one. Thanks in advance! ~redders

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.