I am trying to write a php code that will determine if a user has viewed the Facebook app before, and if they havent to show a "welcome page" instead of the normal "index" page. Is there a way to read the sql table and forward them to a "welcome page" first?

The answer is probably yes but the question isn't totally clear. If this is your database, then at the start of the program, you read the database, determine if they did it before or not and then display the appropriate page. Could anything be simpler? There may be more to the question than what you stated previously so, if there is, please clarify.

you can also do it by setting a cookie

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.