Jump to content

smiles

Members
  • Posts

    774
  • Joined

  • Last visited

Posts posted by smiles

  1. I see that most of SQL tutorial is about text contentso I want to ask how to echo a numberfor example, I create a table named "counter" and make a field named "num", int type .... ( num int(5) )how could I set the beginning value for num ?and if you this code$result1 = mysql_query("SELECT num FROM counter");while($row = mysql_fetch_array($result)) { echo $row['num']; }it shows nothing ?What I want to do is just simply add 1 to num, when some condition satisfied, for e.g ... you upload successfully an imageThanks !!!

  2. I want to ask, does it create cookie so when you log in successfully, you can easily navigate to all pages without asking password the second time (twice) ?If I want to try my code again, so I must delete all Cookies ???thanks !!!

  3. Thanks Aspnetguy :)It works great !!!do you think should I put these code for all the rest pages

    session_start();if(!isset($_SESSION["login"]) || $_SESSION["login"] != "yes")  header("Location: login.php");

  4. if the user knows the url of the "protected" page they can just type it in and bypass your login. you need to set sessiosn when they login correctly and check to see if the seesions are correct on every protected page.
    set session ... uhm maybe I know itbut " check to see if the seesions are correct on every protected page." seems strange to meHow can I do that ???
  5. Well, just need visitor type the password and ... then jump to the checklogin.php for checkingIf what is typed similar to my password that I set then redirect to another page, else back to the first page$pass = $_POST['passwordField'];if ($pass == 'myPassword') { ??? }else { ??? }I want to ask about the code for directing page ?Thanks !!!

  6. I tried searching hittest and the search came up with a few results but none of them were any help. Im trying to make a flash game where your'e cliff diving and you have to avoid certain stuff on the way down. How do I make it so when the guy hits the rock he goes to a different frame. Please help. :)
    Make a button symbol have a shape of rock, gives it a code or use tween to move it on the screen and add a code onRelease(){ gotoAndStop(?) }
  7. Hello all, im in the process of converting a .swf to .mpeg. trying to find a good, free converter without watermarks. Reason is I want to go and put this flash movie on Youtube. Thing is that in my movie I also have FLV files which cannot be exported from flash itself to a mpeg file. Please help! :)
    many software can do .swf to .mpeg but .swf is a form of man-made cartoon video.flv is something inside that make .swf more lively and realI think maybe have software to convert .flv to .mpeg but how can you separate .flv out of .swf, that is problem !!!
  8. thanks pulpfiction, but I sure that it hasn't been solved yet :) What I am trying to do is having a drop down form, its items are get from database, when you choose one item and click submit button, the information of that item will appear below it .Anyone has another way better than what I did ?

  9. uhm ... if the content in form is "hello"your code shows "SELECT Information FROM Person WHERE Name=' Hello 'it make me feel a bit better !

  10. here is the code, I get no error and no display

    <?php include("1stfile.php"); $result1 = $_POST["theName"];$sqlstr = "SELECT Information FROM Person WHERE Name='" . $result1 . "'";$result2 = mysql_query($sqlstr) or die(mysql_error());while ($row = mysql_fetch_array($result2))  {  echo $row["Information"];  }?>

×
×
  • Create New...