Jump to content

AdrianR

New Members
  • Posts

    9
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

AdrianR's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. ok I have read your troubleshooting guide about session control still it seems good to me that script.I changed the '0' to '1' but still same problem.I think I understood from your guyde that it matters if I am running the session script from a page that already has another session script(PHPbb) ? Please someone give me more information about what to do. Or someone help me by givind another script that dosen't allow refresh but works on a new page. thank you..
  2. Hi people. Some gave me this script about 1 week ago. [code]session_start(); if(empty($_SESSION['this_page_unique'])){ $_SESSION['this_page_unique'] = rand(0, 10000000); }else{    echo "Go back.  You cannot refresh the page "; }[/code] It works perfect,after I enter the link I can't refresh it but just 1 hudge problem:Let`s say the link is on a page and someone clicks the link and it openes in a new browser window,even if that person clicks the link 100 times and it openes 100 new pages it says "Go back. You cannot refresh the page ".The only time the page really runs is the first time although the page loades 100 times in a new window:(.I want it just not to refresh...I hope I was clear enough,if not please let me know. Regards and thank you for your time..
  3. Hi people. Someone told me a few days ago how to count the number of entrys in a field but I can`t make it work.I want to count only the number of entrys with text"content" and "content2" here is what I`ve done: $s=SQLSELECT COUNT(field_name) FROM table_name where fieldname=content or fieldname=content2; echo $s; But it dosen`t work,I get errors.
  4. yes,i think that's what I need,i'm gonna test it now.Thanks a lot:)
  5. yes,i think that's what I need,i'm gonna test it now.Thanks a lot:)
  6. :( oh no,it dosen`t work.i was misstaking.the script dosen`t return any information
  7. People how can I get the number of field in a table? and how can i get the number of entrys in a field? thanks in advance:)
  8. hmm,,yes...it works.thanks a lot :)
  9. hi guys.I have a little trouble with the select statement. I mean I have a table named 1 and in the table I have 5 fields named "a""b""c""d""e". How can I select the content of the field "a" but only if the content of field b is "test" and the content of field c is "more test"? :( can`t find the answer.. SELECT a from dbname where b like 'test' and c like 'more test' dosen`t seem to work
×
×
  • 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.