-
Posts
246 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Kristian_C
-
-
<?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.
-
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
-
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..
-
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.
-
Boolean? Its sometimes i get boolean errors or something named like that, what is that actually?->Kristian_C.
-
Ill start with that Thanks.->Kristian_C.
-
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.
-
<?$date=gmdate("H:i:s");echo"$date";?>
Thing that should work
-
I was wondering how i chould make something like this :->Kristian_C.
-
-
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>";
-
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
-
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.
-
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.
-
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.
-
<?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.
-
Image Create.
in PHP
Thank you verry much But, have a little problem :Fatal error: Call to undefined function: str_split() How to fix? ->Kristian_C
-
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.
-
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_CIt's got to do something. There aren't any exit or die statements, so it's got to be doing something. You should at least see the header table. If you don't see anything, then you may be getting an error with display_errors disabled. If that's the case, then you would need to enable errors to see what the error message is. Or else, you should start putting in debugging statements to see where the execution flow is going. -
Image Create.
in PHP
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
-
sustsomeguy thanks for posting that link ->Kristian_C
-
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.
-
Countdown?.
in PHP
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.
-
Countdown?.
in PHP
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.
Questions about security
in PHP
Posted
Okay, so its just to run checks on every thing, then its the safest it can be? ->Kristian_C.