Jump to content

serverman

Members
  • Posts

    215
  • Joined

  • Last visited

Posts posted by serverman

  1. i dont know why but this fixed it

     {
    case 0:
        echo "nothing<br>";
        break;
    case 1:
      ?><img src="../img/php.gif" alt="" ><br><?php
        break;
    case 2:
    ?><img src="../img/asp.gif" alt="" ><br><?php
        break;
    case 3:
      ?><img src="../img/sql.gif" alt="" ><br><?Php
        break;
    case 4:
      ?><img src="../img/java.gif" alt="" ><br><?php 
        break;
    case 5:
       ?><img src="../img/html.gif" alt="" ><?php
        break;	}

  2. here is the whole thing and yeah i is 1-5 never lands on 0... 0 means an error here is more of the script

    $i = $r['cat_id'];
      switch ($i) 
      {
    case 0:
       echo "nothing<br>";
       break;
    case 1:
       echo '<img src="../img/php.gif" alt="" ><br>';
       break;
    case 2:
       echo '<img src="../img/asp.gif" alt="" ><br>';
       break;
    case 3:
       echo '<img src="../img/sql.gif" alt="" ><br>';
       break;
    case 4:
       echo '<img src="../img/java.gif" alt="" ><br>';
       break;
    case 5:
       echo '<img src="../img/html.gif" alt="" ><br>';
       break;	}

  3. <?php
       $i = $r['cat_id'];
       switch ($i) 
       {
    case 0:
        echo "nothing<br>";
        break;
    case 1:
        echo '<img src="../img/php.gif" alt="" align="right"><br>';
        break;
    ?>

    why doesnt it show the picture ... the switch works fine

  4. OMFG my cable locked up... i am watching attack force and it froze like a screen shot of the show is on

    and on all the other channels its  the same way with the show that was on it... and its on all my TVs!!!

    GAHH it was the movie was just getting good to  im pissed i hate cox cable!

    its like time stopped on TV and its been like this for 10 mins i had to turn on the radio i haven't done that in like 3 years lol.. i just cant work without the noise

     

    im in FL... local stations suck its almost all country music and rap

     

     

    lol funny freeze frames tho

  5. how do i add the mysql real escape string to this

    	<?php
    //this is just a snippet 
    // Check for a description
    if (strlen($trimmed['desc']) > 1) {
    	$d = $db->sql_escape($trimmed['desc']);
    }
    else {
    	$d = FALSE;
    	$err .= '<div class="err">The description is invalid!</div>';
    }
    
    // Check for tutorial content
    if (strlen($trimmed['tut']) > 1) {
    	$con = $db->sql_escape($trimmed['tut']);
    }
    else {
    	$con = FALSE;
    	$err .= '<div class="err">The tutorial content is invalid!</div>';
    }
    
    if ($t && $cat && $d && $con) {
    	$db->sql_query("insert into tut (title,cat_id,description,usr_id,content,time) values('$t','$cat','$d','$uid','$con',now())");
    }
    }
    ?>
    

  6. i never did i just act like i know what im talking about :P jk

    i started out playing with scripts now im at the stage of reading up and testing :P

    and like redbull ive been working with basic purebasic and python so i know how to look at code and i think php works alot like basic

     

    not pro

     

     

    yet :D

  7. Your code should be:

     

    echo "<meta http-equiv=\"Refresh\" content=\"0;url=index.php\">";

     

    note the url= before index.php\

     

    HTH

    Dan

    you know you can also just

    echo'<meta http-equiv="Refresh" content="0;url=index.php">'; you might need a 0\;  but i dont know lol

  8. looks so pretty ... im running it on xp now... ill put in on freebsd later.

    i must say firefox 3.0 just makes the internet look sexy  :o

    lol eh its more heavy on your ram tho(my xp is my crappy work computer 256 ram lol)

    how well does the linux verson run?

  9. why would you use fedora for a server platform it meant for desktop use and uses a lot of memory so it kinda heavy for a server you not use a more light wight Linux like Ubuntu or even go to bsd witch you can turn off your x server(desktop environment) and have more memory for your server i use freebsd ... also bsd comes with inetd witch has ftp and other server technology in it

    and why are you using Apache 2.0.x when there is 2.2.x

    sorry just bugs me :P

     

  10. ok I am working on a tutorial system and users can submit tutorials...

    i want for when you view the tutorial it will not to execute the any sever side scripts or client side

    but i want it to still allow html to work inside the tutorials

    i hope i made sence in this post im half asleep :)

     

    oh i dont have any scripts to share on the viewing part because we haven't started writing it

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