-
Posts
246 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by Kristian_C
-
-
If you have a login system you chould use :if($_POST[login]){$username=$_POST[username];$password=$_POST[password];then session_register(username);include :$username=$_SESSION[username];$user=mysql_fetch_object(mysql_query("SELECT * FROM users WHERE username='$username'"));and just use if($user->level =="1"){or something like that..have been a noncoder for a while now but i think it will work...offcourse you can register session level like the same way as username but then you must run a fetch on that first.hope it helps.-Kristian_C
-
Dont know if this helps or if this is what you want but :
function rep2($tekst) {$tekst = str_replace('<','<',$tekst);$tekst = str_replace('>','>',$tekst);$tekst = str_replace('"','\"',$tekst);$tekst = str_replace(''',"'",$tekst);$tekst = str_replace('amp;','&',$tekst);return $tekst;}
Just copyed now so just take the function content and insert into the code i gave you if you still use it, if not i cant help you. ->Kristian_C.
-
Just Curious
in PHP
Not quite sure what you are talking about but :
$fetch=mysql_fetch_object(mysql_query("SELECT * FROM table WHERE something='something'"));if($fetch->something!=something){echo"Something";}
Not quite sure it was the fetch-> you where after but well here it is ->Kristian_C.
-
I dont see you much, but i can see clearly that the spam is beeing deleted, and users that has nothing to do here is beeing banned/deleted. So i must say that you are great mods chould be more active but as allways every one has a private life to so keep on doing the job and have fun ...->Kristian_C.
-
Found it, so if someone else gets this problem here is the solution :http://www.adobe.com/cfusion/knowledgebase...cfm?id=80821e11->Kristian_C.
-
Okay, i found a few links, but every one has the wrong verson... it keeps saying 2 or less,.. or 7 ++the trail versons of flash ++ needs 4, where the H*** can i get it? :s->Kristian_C.
-
Hey, i thought i whould try to learn abit with flash now, so i downloaded the flash professional 8 from adobe.com, but i dont have the right verson of the ISScript... I tried to find it a while ago but i never found the right verson...Do anyone know where i chould find it?, Or if someone can send it to me or upload on their site so i chould download i whould be verry verry thankfull for it ->Kristian_C.
-
Not quite sure i know what u wanted but if you just wanted the "fill" to be as big as the p tags :
<table border=1> <colgroup> <col width=100> <col width=200> <tr> <td colspan=2> HEADER </td> </tr> <tr> <td style="height: 30px"> Sidebar </td> <td rowspan=3> <p>Paragraph</p> <p>Paragraph</p> <p>Paragraph</p> <p>Paragraph</p> <p>Paragraph</p> <p>Paragraph</p> </td> </tr> <tr> <td height="155" valign="top"> Fill </td> </tr> <tr> <td style="height: 30px"> Footer </td> </tr> </table>
------think i read abit wird... you want it to be automaticly resized?, well i tried a few times but sorry, dident work...->Kristian_C.
-
-
-
I just think you need a good program, as Dreamweaver is one of the best i know, start makeing different styles with HTML/CSS, try addeing some javascript to it then start with PHP/MySQL, Perl aint so verry important... w3schools if absolutly the best place to start with web design and programming.->Kristian_C.
-
Hey, ive been trying to save an image ive made as a template... i managed to save so i got a few images to make the template but when i try to put them together its just getting messy, and i know that it is possible to save as template and get the html to, but how? i use CS2 with ImageReady...->Kristian_C.
-
-
-
-
-
<?php$con = mysql_connect("localhost","username","password");if (!$con){die('Could not connect: ' . mysql_error());}mysql_select_db("database", $con);function bbcode($tekst){$tekst = str_replace("[center]", "<center>", $tekst);$tekst = str_replace("[/center]", "</center>", $tekst);//So for spaceing you will need something like this : $tekst = str_replace(array("\r\n", "\n", "\r"), '<br>', $tekst); return $tekst;}$result = mysql_query("SELECT * FROM table ORDER BY `id` DESC LIMIT 0, 10");while($row = mysql_fetch_array($result)){echo "<div style='color: black; background-color: lightgreen; padding: 2px; border: 1px solid lightgreen;'>";echo "<div style='width: 70px; float: left;'>";echo "<a href=\"mailto:$row[email]\">$row[navn]</a>";echo "</div>";echo "<div style='width: 68px; float: right;'>";echo "$row[dato]";echo "</div>";echo "<br />";echo "<br />";echo "".bbcode($row[kommentar])."";echo "</div>";echo "<br />";echo "<br />";}mysql_close($con);?>
You will need to add more bbcodes tho.more then what i posted now i really dont think you need to edit.->Kristian_C.
-
<?function bbcode($tekst){$tekst = str_replace("[center]", "<center>", $tekst);$tekst = str_replace("[/center]", "</center>", $tekst);//So for spaceing you will need something like this : $tekst = str_replace(array("\r\n", "\n", "\r"), '<br>', $tekst); return $tekst;}//return function in forums/shoutbox ++ echo"".bbcode($fetch->tekst)."";?>
->Kristian_C.
-
Thanks for useing so much time helping me . Works great now .->Kristian_C.
-
im not quite sure that i know what you ment but :
<?if($_GET['id']){$id=$_GET['id'];$myfile=mysql_query("SELECT * FROM table WHERE id='$id'");$file=mysql_fetch_object($myfile);}the rest.?>
if that wasent it, so explain abit more so maybe i can help ->Kristian_C.
-
Actually, i hate opera and firefox. Never liked them,they are the beaten up fords for me.IE has allways been the best becouse it works on every thing i use it for and if IE cant show the favicon well i dont give a damn.i recomend IE for all visitors on my site, every thing looks so ugly in opera/firefox..->Kristian_C Proud IE user
-
Where do i clear that? Not so good with pc stuff hehe...->Kristian_C.
-
Hey :
Now i tried the code, and it works to delete, but it dont count more then one from the list, in another way i can just delete but not get the ammount i try to select, so my problem is still to get ammount from list. $id_list = implode(",", $_POST['delete_ids']);tried this :$sellmange=mysql_query("SELECT pris FROM biler WHERE id IN ($id_list)");mysql_query("UPDATE brukere SET penger=penger+'$sellmange' WHERE brukernavn='$brukernavn'") or die('Error : ' .mysql_error());echo"Cars sold";mysql_query("DELETE FROM biler WHERE id IN ($id_list)") or die('Error : ' .mysql_error());} and this :$sellmange=mysql_query("SELECT sum(pris) AS total FROM biler WHERE id IN ($id_list)");mysql_query("UPDATE brukere SET penger=penger+'$sellmange' WHERE brukernavn='$brukernavn'") or die('Error : ' .mysql_error());echo"Cars sold";mysql_query("DELETE FROM biler WHERE id IN ($id_list)") or die('Error : ' .mysql_error());} and this :$sellmange=mysql_query("SELECT * FROM biler WHERE id IN ($id_list)");$mysql=mysql_fetch_object($sellmange);mysql_query("UPDATE brukere SET penger=penger+'$mysql->pris' WHERE brukernavn='$brukernavn'") or die('Error : ' .mysql_error());echo"Cars sold";mysql_query("DELETE FROM biler WHERE id IN ($id_list)") or die('Error : ' .mysql_error());}But nothing seems to work :s any ideas?
->Kristian_C.
-
I use IE7 and every other favicon from other sites work... just mine that is abit wird i tried the one u posted but no, dident work either :sA thing that is abit wird is that before i started with the new site the other favicon work well we can say 3-5 times a week but the rest of the time it was gone :)well ill try in some other browsers...->Kristian_C.-----Well now i opend opera and there it workd... so i dont know what the fault can be :sHere's the code I always use, and that works perfect for me:<link rel="shortcut icon" href="/favicon.ico">
And by the way; do you use Internet Explorer to check? It doesn't work in IE6 and older. I don't know in IE7 because I don't have it and I'm not gonna get it. But in Opera and Mozilla it works.
Help with code for images
in HTML/XHTML
Posted
hey, no it is not possible to prevent that from happening with codes, its the browser that automaticly does it.may be possible if you use it as background in a div/table.-Kristian_c