Jump to content

[SOLVED] Help developing code


Kazhultee

Recommended Posts

Okay, I have a site that is similar to *URL REMOVED* but a completely different game, but same concept of website.

 

I asked creator of said site and he has no interest in helping me so here I am asking you.

 

I use PHPBB3 so users who are logged on would be able to see what I wanna do.

 

I have a table set up with tons of codes and now I need a way to make it so the user can click a link of some sort and have it so that code vanishes from their page (and only their page if they are logged in)...

 

So, basically, it ignores that ONE code from ever being listed when they call the random data up again.

 

I created a new table called 'ignored' with the fields user_id and ignore_id... but now I am lost.

 

I have no idea how to connect all this together.

 

Can anyone help?

Link to comment
https://forums.phpfreaks.com/topic/168736-solved-help-developing-code/
Share on other sites

Basically you'd create a table called user_preferences.

 

among there, a field may be called 'ignore_functionX'

 

Then on the page that executes the code, you could have

 

*retrieve data from db*

 

if( $row['ignore_functionX'] == 0 ) {

    // run function

    functionX($arg) {

 

  }

}

 

of it its a bunch of functions, you can have an ignore table, and each column name would be a function.

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.