Jump to content

NArc0t1c

Members
  • Posts

    299
  • Joined

  • Last visited

    Never

Posts posted by NArc0t1c

  1.    $uname = $_POST['user'];
       if(is_numeric($uname)){
          die('There has to be at least one letter in your username!');
       }
    

     

    the script doesnt die it continues!

     

    Sorry, i'm tend not to use the die function, I didn't type exit there. : )

  2. I act mature, except I tend to get cravings to be a hamster or squirrel from time to time.  ;D

     

    ronald, I'm disagreeing that you are never to young to start.

    Take me, They say C++ is like php, well I have been doing php for about 10 Months now, and I still can't get it in my head.

    But then again, I'm not someone to go and sit and read a book, I tend to just get up up walk away.

    Like last weekend I bought myself four very interesting books to read, I started with one, but it's lying on my desk atm.

    I also bought myself a few cd's/movies that has VB6 tutorials, I stil know VB, but that is just a very easy thing to learn, like HTML, it explains itself.

     

    But yes, I myself am a bit younger than most people here, but also older than some, fifteen is a nice age isn't it?

    I do struggle with learning some things in php, like GD, never got the hang of it, OOP i'm not to sure about that.

     

    I have not written A forum or CMS before, But have done allot of other things.

    I gain experience while programing, Like I'm building websites for people I know, not that fancy, like a CMS and thingss, but a basic website, I earn pocket money and learn, what more could I want.  ::)

  3. In this script you have:

    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <title> template</title>
    </head>

     

    and yet on you're index webpage you have:

    <head>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

    <link href="inc/style.css" rel="stylesheet" type="text/css" />

    <title> template</title>

    </head>

     

    Maybe that?

  4. Well, I don't know exactly what you mean by select all from bad column, but here goes.

     

    <?php
    if ($bed == "*"){
    $bed_add = ""; }
    else {
    $bed_add = " AND bed = " . $bed; }
    /* the query */
    $selectquery = "SELECT * FROM listings WHERE rtype = '$rtype'" . $bed_add ." AND sleeps = '$sleeps' ";
    ?>

  5. Make a function that has the header function.

    Example:

    <?php
    function refresh($location){
    header("Location: " . $location);
    }
    
    /* HTML goes here */
    
    /* Page has phrased, call the function again. */
    refresh("index.php");
    ?>

×
×
  • 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.