Jump to content

cdtc

Members
  • Posts

    8
  • Joined

  • Last visited

    Never

About cdtc

  • Birthday 01/17/1990

Contact Methods

  • AIM
    impy9
  • Website URL
    http://www.cdtc.co.uk

Profile Information

  • Gender
    Not Telling

cdtc's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. If I have called up data from a table in MSSQL, then put that data into a table on a website. Is there a command were you can print off individual rows of that table from the website, i.e. by clicking a button saying 'print record'?? Thanks in Advance Sam
  2. Thats Great thanks!! (look out for www.creaseyIT.co.uk launch date sept 1st)
  3. $strSQL="SELECT * FROM School WHERE ([School Code Number] = '" .$_POST['schoolcode']."')";
  4. I am sure it is a simple answer, but in a IF..Else Statement how do I redirect to a one page if there is a result from my database or redirect to another if there is no result?
  5. I am looking for a IF statement that if returns a result i want it to direct to a page. and tehn else if it does not it will direct to a different page.
  6. cdtc

    If command

    [!--quoteo(post=388094:date=Jun 26 2006, 10:37 AM:name=SemiApocalyptic)--][div class=\'quotetop\']QUOTE(SemiApocalyptic @ Jun 26 2006, 10:37 AM) [snapback]388094[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code]if (is_resource($rsData)) {     echo "<meta http-equiv='refresh' content='0;url=password2.php'>"; } else {     echo "<meta http-equiv='refresh' content='0;url=incorrect.html'>"; }[/code] [b]EDIT:[/b] Beaten to it! [/quote] Thats great thanks!!
  7. cdtc

    If command

    [!--quoteo(post=388087:date=Jun 26 2006, 10:27 AM:name=thorpe)--][div class=\'quotetop\']QUOTE(thorpe @ Jun 26 2006, 10:27 AM) [snapback]388087[/snapback][/div][div class=\'quotemain\'][!--quotec--] And your problem is? [/quote] The page stays on nopassword.php (which is blank) and does not go to any page
  8. Hi, I am having problems with a small section off my code. There are no errors with the code, it is just not doing what I want it to do. This is what I have at the moment: <?php $db=mssql_connect("blah","blah","blah") or die("Cannot connect to database server"); mssql_select_db("blah",$db); $strSQL="SELECT * FROM School WHERE ([School Code Number] = '" .$_POST['schoolcode']."')"; $result=mssql_query($strSQL); if (is_resource($rsData)) { password2.php; } else { incorrect.html; } ?> bassicly if it finds a schoolcode it will go to password2.php, if there is no school code that matches then it will go to incorrect.html Thanks in advance Sam (CDTC)
×
×
  • 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.