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.

Generate Dynamic Links and store in Mysql Database

Featured Replies

Helo am a beginner, please I need to automatically store links in my database depending on the clients request. I have a navigation web app and i need the users to fill a form. The content of the form will be the information to be displayed on the web page whose links are autogenerated and stored in the database just as facebook page of a facebook user works. Thanks

you can just use an auto increment column so the IDs would be something like index.php?id=15492 this is the easiest but also easier to find other documents, or you can do something like this (in php)

 

 

<?php
    $origString = str_shuffle("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789");
    $stringLen = '6'; // Length you want the ID to be
 
    $i = 0;
    $pass = '';
 
    while ($i < $stringLen) {
        $rand = mt_rand(0, strlen($origString));
        $pass .= $origString[$rand];
        $i++;
    }
 
    echo 'Password: '.$pass;
?>
  • Author

Ok Boss. I get your idea but as I said am a beginner and to make it easier for me, I would appreciate greatly if you give me more detals on how to achieve this solution. Thanks. . . Am very grateful.

Create an account or sign in to comment

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.