Jump to content

Kristian_C

Members
  • Posts

    246
  • Joined

  • Last visited

Everything posted by Kristian_C

  1. Okay, so its just to run checks on every thing, then its the safest it can be? ->Kristian_C.
  2. <?if($_POST['login'] && $_POST['username'] && $_POST['password']){$username=$_POST['username'];$password=$_POST['password'];$check=mysql_query("SELECT * FROM users WHERE username='$username'");$checkuser=mysql_num_rows($check);$checkpass=mysql_fetch_object($check);if($checkuser == 0){echo"That user is not in our db.";exit();}if($checkpass->password != $password){echo"Wrong password";exit();}else{session_register('username'); header("Location: home.php");}} buttons and other things i supose you can create yourself.Dident test it but think it should do it..if not, tell me and ill try it and fix errors...->Kristian_C.
  3. Before i used to use overlib to get the mouseover function to display the text++ .But now i want to use the alt="text">, but i cant make it work for some reason.So maybe i should go over to ol again? ->Kristian_C
  4. i want the text to popup like a <img src=url alt=text> then text is displayd over the image.... i want that over a link..
  5. Ive tried the onmouse over and alt, to get a "alt" text when your mouse goes over, but i cant make it work? what should i do?->Kristian_C.
  6. Boolean? Its sometimes i get boolean errors or something named like that, what is that actually?->Kristian_C.
  7. Ill start with that Thanks.->Kristian_C.
  8. Im not so verry into css and the use of divs yet, but if i use divs for images whould i be useing background then? and if i then use background then the images whould go nuts when etc a topic post gets bigger then the normal table size? if not how whould i do it, meen like get them to be background/or the other ->Kristian_C.
  9. <?$date=gmdate("H:i:s");echo"$date";?> Thing that should work
  10. I was wondering how i chould make something like this :->Kristian_C.
  11. Kristian_C

    Possible?

    To get a notice when an session is beeing started? And etc get the name/thing that is beeing started? like i login to msn then a session is beeing started and passed thru a type of db so my contacts can see this...how can i make sort of the same thing?..->Kristian_C.
  12. Think this is what you are looking for : <script LANGUAGE="JavaScript">function popUp(URL) {day = new Date();id = day.getTime();eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=600,height=500,left = 250,top = 200');");}</script>Then :if you want to use etc :echo"<script>java script:popUp('yourpage.php');</script>";
  13. I really dont know, but if im right you must have :{{<script language="javascript" type="text/javascript">]]and not just <script><!--var step=1function slideit(){if (!document.images)returndocument.images.slide.src=eval("image"+step+".src")if (step<3)step++elsestep=1setTimeout("slideit()",2500)}slideit()//--></script> ->Kristian_C
  14. I have about 100-200 forms on my website or more and i really aint so good to secure things Dont know how i can make it safer.. But this is more like forums/message systems/profiles/contacts +++ So its nothing a user can insert what ever he wants here and there... ->Kristian_C.
  15. this is something ill remember for a loong while now that i have learnd abit about it :lol, tried to remove foreach , and guess what i think someone is messing with me.. foreach dident need to be there hehe.. But still wont delete?removed foreach and set "if" there insted.. is that correct? ----------good reminder about us all beeing "noobs" back in the times hehe.. pretty funny ->Kristian_C.
  16. have no idea of what this function is named at all so ill just call it moveing things here's the thing, i want to use java script do move etc images and use a countdown function to deside when a new image needs to come up.If you dident understand : Just like an animation picture, you make a image fade up, fade down, fade to the side ++my question :What do i need to read/learn? I've heard that js is the only thing that can do it? true? well if not, i just have to say, i want it as easy as possible ...Links to sites that explains well and how to create a function like that is taken with many thanks ->Kristian_C.
  17. <?php ?>goes inside the content page.If you have pages that needs security protection and you are the only one that goes into the pages then use : <?$ip = $REMOTE_ADDR;$me="yourip";if($ip!=$me){echo"No entry";exit();}?>..?>And no, you can also have $page.html.->Kristian_C.
  18. Thank you verry much But, have a little problem :Fatal error: Call to undefined function: str_split() How to fix? ->Kristian_C
  19. ok, i tried this : if($_POST['slettsel']){$delete_ids = $_POST['delete_ids'];if (is_array($delete_ids) && count($delete_ids) > 0){ $id_list = ""; foreach ($delete_ids as $id) { if ($id_list != "") $id_list .= ","; $id_list .= $id; }$utkom=count($delete_ids);$kk=mysql_query("SELECT * FROM biler WHERE id IN ($id_list)");$jjjs=mysql_fetch_object($kk);mysql_query("UPDATE brukere SET penger=penger+'$jjjs->pris' WHERE brukernavn='$brukernavn'") or die('Error : ' .mysql_error()); mysql_query("DELETE FROM biler WHERE id IN ($id_list)");echo"$utkom cars sold";}} but it didet work, also tried to select sum(pris) as total but dident work...any ideas?->Kristian_C.
  20. It was doing something after i did the little change But the thing i forgot to do after i added the chekboxes in the rows was to stretch the from from the top to the bottom, so the checkboxes was actually not inside the from hehe...Thanks for helping me out with that one :)Works perfect! :)So off to the next checkbox problem Now i need to get the value from sql then update another table with the value from the other table then delete from the table Ill just try to make it work before i post a code and stuff ->Kristian_C
  21. Kristian_C

    Image Create.

    Hey, how can i make a random image? with a random text on? Image dont need to be advanced, just a image with like nothing on but need to have text on it.. or just a number of random pics i make but i need to place tekst on them with php.And they cant be background images hehe..any kind of help is great ->Kristian_C
  22. sustsomeguy thanks for posting that link ->Kristian_C
  23. Chould just use if($_GET ){$page=$_GET ;include "$page.html or php";}else{include"main.html or php";} same thing as Little Goat said just that you dont need so much at one site..->Kristian_C.
  24. Kristian_C

    Countdown?.

    Thanks guys Just need to wait till i get my server back before i can test it if i get any errors or problems ill just post again Thanks again ->Kristian_C.
  25. Kristian_C

    Countdown?.

    I have the block thing thats just : if($fetch->lastmess > time()){ echo"You need to wait ".mekktid($fetch->lastmess)."";exit(); So thats not the problem. But i still want the user to be able to see the page all the time with a live countdown. And since i am a neewbie in ajax/js i cant make a function that updates without beeing refreshed so the people can see it, only thing i can refresh with is by useing the meta function...so if you can help with the js/ajax function that whould be great ->Kristian_C.
×
×
  • Create New...