Jump to content

bobert5696

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

bobert5696's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. In the table is there a column for who created the content? Assuming that was a user id, just surround it with an if statement like if(getCurrentUser() == getAuthorId($id) { //code that deletes it here } function getCurrentUser() { //code to return the user id of the current user } function getAuthorId(int $id) { //code to return the user id of the article with the given id } Fairly sure something like that would work. I've been working primarily with java recently so I apologize if there are any syntax errors though, switching back and forth has been hellish on the brain for me.
  2. I really like the design, the thing that catches my eye right away though, is the left statistics bar. As a user, I really could care less about any of that data 95% of the time, so I don't think it needs such a prominent place on the page. On the very front page its not horrible, but I do think having it on every page, every post, I think its cumbersome. That being said, I think that might be one of the nicest looking forums I have ever looked at though
  3. I've managed 1 ecommerce site in my life and I used osCommerce. I loved it once I got the hang of things. That took a couple of weeks, but after that point I was modifying it like crazy to suit my needs, and I am sure that your needs could be met with it, albeit, it would take a considerable amount of modification and wouldn't be right out of the box. I don't know your programming experience for if that would be an issue or not. If you are an experienced coder, osCommerce is a breeze to modify.
  4. Here is my situation, I have an array containing say 50 numbers in it ( array(1,2,3,4,5,6,7,8,9,10,etc etc) ) and there will be many duplicates in it. I am trying to return the top ten numbers in it, in order from greatest to least. I can return the most common one, but I need the most common ten. This is what I have tried: $final_results contains an array of numbers [0][10],[1][23],[2][0],[3][5] etc etc array_count_values($final_results) will return the number of times each number is duplicated in a new array, in the form [number][duplications] and it preserves the number Anything I do after that point replaces [number] with [0][1][2] for say the 3 most common if that makes sense Thanks for the help!
  5. thanks, i had a typo in my variable causing it not to work thanks again for the quick reply
  6. can this be done? : <?php $var = "Hi"; ?> html code and stuff here <?php echo $var ?> i am trying to do something like this, but i cannot get it to work, if this doesnt work is there anything else similar that would work? thanks
  7. Ok, i need some help writing a script. I need it to do this. when the page http://blah.com/Updater.php?version=infohere&version2=infohere i want were it says infohere to be written to a file, i have looked for tutorials, but i cant find one doing exactly what i want, and i can't figure it out by myself, so if anyone can help, that would be great
×
×
  • 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.