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.

If table exists

Featured Replies

What would say is the best way of doing this task

 

 

I have created a admin panel, with various options, its all dynamic and working.

 

There options they the users can click on which will then allow to edit content in there specific database,

 

some users have more options than others for example

 

user one

gallery 1

gallery 2

shop

webpage content.

 

user two

shop

webpage content.

 

The options they can use as set by myself but the page still renders all the options.

 

The options they can see in there admin panel are still there and want them too stay they (the options)

 

what i want is to be able to send people with certain options not available in their package to an upgrade or demo page that shows what they could do if they upgraded.

 

I have a clue how to do this but my question is this.

 

Please note -- as admin i create the tables in the database manually so if they haven't upgraded that table wouldn't exist in there database

 

which method is better

 

 

1) In for example user table you have a column that is emnu field, that 1 = true and 0 = false

 

so webcontent field in the user one and user two would = 1

 

but gallery 1 and gallery 2 field for user two would = 0 where user one would = 1

 

if true render the right response for that the user, in admin panel or false render demo or whatever

 

or

 

2) if table exist = true and if table doesnt exist = false

 

so if me the admin (me) has created the table in that database for that user.

it would = true the sql call would come true and render the control page for that option

 

If they havn't upgrade then false (no table there) and would render the demo page or whatever for that option






THE QUESTION IS IN ITS SIMPLEST FORM

 

which is better? or is it the same bull****

is if table exist do something, or if table doesnt exist do something else

 

or

 

field in user table that equal true or false and render that page differently depending on answer??

Edited by sergRamalli

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.