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.

JaCEnt

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    JaCEnt got a reaction from royadyhop in PHP Query MySQL with POST variable   
    Evening all, I have a PHP\MySQL registration script which I'm looking to amend.
     
    Currently you register using your Name, Company Name and Email Address. From there, your username and password are emailed to you.
     
    A problem I have come across is anyone can register as the same company and this would prove troublesome for future use.
     
    What I am looking to do is query the database and if an entry already exists for that company, die;
     
    $company = mysql_real_escape_string($_POST['company']); $query= "SELECT * FROM members WHERE company = '$company'"; $result = mysql_query($query) or die ("Error in query: $query " . mysql_error()); $row = mysql_fetch_array($result); $num_results = mysql_num_rows($result); if ($num_results > 0) { $err[]='Your company is already registered, please contact your admin user!'; } However, that is showing a resource error.
     
    Can anyone shed any light on what I am doing wrong?
  2. Like
    JaCEnt got a reaction from andy9l in HTML5 Equivalent to PHP include   
    I've sussed it out using a simple PHP line, should have thought about it more before posting lol I would post the line but it wont let me - a google for "php if current page" brought it up for me.
  3. Like
    Hi, I know this thread if a few days old, so I'm sorry for bringing it back up if your problem has already been resolved!
     
    Assuming you're hosting this site on a linux server, you will need to run something like this to generate a new CSR;
     

    openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
     
    This will generate a new private key "server.key" and a new CSR "server.csr" which you can upload to your SSL provider for them to generate your new cert.
     
    Note this is a 2048 RSA request (recommended), which most SSL certs require now.
     
    I hope this helps!

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.