Jump to content

LBY

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by LBY

  1. If you want to change a number from a number to a precent you can just write the calculaiton yourself:for example let's take a poll system:Question: Do you like "Shimi"?A1: Yes (4 votes)A2: No (4 votes)How do you calculate the precents of the first answer for example?You take the number of votes for the first answer (4), divide it by the number of the total votes (8) and multiple it by 100:4 : 8 = 0.50.5 * 100 = 50%I'm not quite sure this is what you asked for so if it's not tell me and I will try to help

  2. Hi,If you want, go to my testing site at hhtp://d.1asphost.com/krajinaonline/ and take a look so it'll be easier to understand what i want.I want to add the code that will increase value by "1" every time user opens a page."This article is commented: xx times" (i already have this one and it's working)"This article is viewed: xx times" (on my page, here i put the same code as above but i've added (+8) just to make it seem different from above - it does NOT what it is supposed to)so, after the first user reads an article, there should be "1 times", and after another user reads that article, there should be "2 times" and so on..i suppose the value should be stored in my database, but how? And what code should i use?thanks!

    You want a counter to check how many people read the article?Just make in your database another colum "Counter" and do that everytime someone enters the page it will add the same article Counter colum 1
  3. (I'm new here by the way, I started looking for English forums because all of the forums that are in my language didn't really help me..)Ok so anyway, I have been working on some kind of applicaiton in ASP for a long time, up until now I did all the programming part and now I'm starting to combain all of the pages with the design, here starts my problem.Usually I use IFrame in the design, but many people told me that IFrame isn't so good anymore and that there are better commands to use, so now there is my question, how are most of the sites on the internet built if not with IFrame?I tried to use Include, but I can't write:<!--include File=<%=Variable%>-->which makes a problem so I'm not using include,I tried to use server.execute, but I'm running into a problem because I can't pass variables trough the URL with it, for example:<%server.execute("Updates.asp?Mode=Read")%>won't workSo again my main question here is how to do it anyway?When you build a site, what do you use, and what is it acceptable to use in most of the sites?(I can manage to use Include or server.execute but it will make the code more complecated, so I prefer to check out if there is a better way before I do it)Another thing that is driving me crazy (at the same topic) is that for example in other sites the name of a news page is "News.asp", and I suppose they aren't placing all of the design in every page again, so again how they are doing it?(It's pretty much the same question as above)Thanks ahead! =}

×
×
  • Create New...