Jump to content

Anders Moen

Members
  • Posts

    866
  • Joined

  • Last visited

Everything posted by Anders Moen

  1. Hey!I was just wondering about what you think of my CMS now. I noticed my design became pretty similiar to WordPress but oh well..Here's the link.If you want to try out the things that's available there now, just click on login and then log in with username and password "demo".If you do that, you can: - Change title on the site - Change description of the site - Make dynamic pages with a title and content - Manage the sites (change title and content) - Delete sites - Add news - Edit news - Delete news (from the edit news page) - Add users (not available on this demo version). I don't want hundreds of users at my test system) - Profile page (edit it, but if you do you gotta log out to see the changes
  2. I thought they had to be called favicon and saved as .ico files I =/
  3. Oh! I'll try afterwards, I think I know why I couldn't make it work last time now.I forgot to put $_FILES in front on the $file = $_FILES['type']; etcMaybe it'll work later tonight when I'm gonna try it then
  4. What? I didn't understand a word of what you just said =/I mean that when someone upload a file, the filename and filetype gets inserted into a table like this: [*img]http://mysite.com/upload/filename.filetype[/img*] without the stars of course. Do you understand now?
  5. I've already done that, and they just sent me a link to the site with different types of connections, but I didn't get anyone of them to work =/But I will try again later today/tomorrow and then I'll tell you if it works this time.
  6. Nice!I will try to use the helping desk that's built in if it is at Devshed Cpp or whatever it's called again
  7. I use IE6 right now, because I'm at my neighbours house right now, and I just tried to go to the PHP tutorial, and it worked just fine so I think it's something with your browser settings like I said in my last post too.
  8. Hey!I want to do something like that when someone uploads an image, they image will be added into a folder, called for example upload and in the database it should also display the filetype and filename.So if I upload an image called Anders.jpg from C:\Documents and Settings\All users\My folder\Anders.jpg the image Anders.jpg will be added into a folder called upload + in the database it says [*img]upload/Anders.jpg[/img*] (without stars of course), and then it prints out the image he/she uploaded.How?Upload code: <?phpif (isset($_POST['submit'])) {if ((($_FILES["file"]["type"] == "image/gif")|| ($_FILES["file"]["type"] == "image/pjpeg"))&& ($_FILES["file"]["size"] < 20000)) { if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br />"; } else { echo "Upload: " . $_FILES["file"]["name"] . "<br />"; echo "Type: " . $_FILES["file"]["type"] . "<br />"; echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />"; echo "Stored in: " . $_FILES["file"]["tmp_name"]; } }else { echo "Invalid file"; }}?> and then the insert code <?phpif (isset($_POST['submit'])) {$con = mysql_connect("localhost","peter","abc123");if (!$con) { die('Could not connect: ' . mysql_error()); }mysql_select_db("my_db", $con);$sql="INSERT INTO person (FirstName, LastName, Age)VALUES('$_POST[firstname]','$_POST[lastname]','$_POST[age]')";if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); }echo "Your image was added";mysql_close($con);}?> But what should I change FirstName, LastName and Age with? I don't know.And by the way, I'm gonna use mysql_real_escape_string so don't use VALUES ('$_POST[name]). The last thing I need is MySQL injections
  9. Whoa! That's a long time for a game like that, hehe.I just found a .zip folder with Pacman, hehe. I'm trying to figure out stuff from the code, like how they got pictures in, how they got it going at fullscreen, buttons and more. It'll take a really long time, though.But yes, there are a lot of languages threadstarter
  10. Prateek, where did you learn C++?I've been trying to learn it for a while, and I never get the chance to go to the library and borrow books about it, but do you know the code for making it go fullscreen, instead of the dos box?
  11. Thanks, I read it all through but I still don't know what to do =/
  12. Okay, I just tried the code again <%Set oConn = Server.CreateObject("ADODB.Connection")sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("db\anders.mdb") & ";" & _ "Persist Security Info=False"oConn.Open(sConnection)'...oConn.Close%> but now I just get this message: But at least it's almost good then, or? Anybody got any ideas for why it's like this then? =/
  13. Neo139: the site is valid now. I just fixed it
  14. That's really weird! I have never experienced any problems of loading W3Schools with any browsers before =/Maybe you gotta change the settings of blocked/blocking sites, or something like that?It's probably something with your settings about what sites that should be shown, and who's not. But it's weird, because I haven't seen any pictures of things that shouldn't be here at W3Schools, haha.
  15. Anders Moen

    include

    I don't know if there are any difference, but if there is, what are they?And I mostly useinclude "somesite.php";That's just easiest to write, haha.
  16. To be honest, I don't see any differences from the last time you showed it.Oh well, I don't like the colors, and you should add some styles for the links. I hate the standard links.
  17. Ah, okay.You don't know about better ASP hosts then? Which include a database too?
  18. Okay, what's wrong with this code then? <%Set oConn = Server.CreateObject("ADODB.Connection")sConnection = "Provider=Microsoft.Jet.OLEDB.4.0;" & _ "Data Source=" & Server.MapPath("db\news.mdb") & ";" & _ "Persist Security Info=False"oConn.Open(sConnection)'...oConn.Close%> I just get this error message:Microsoft JET Database Engine error '80004005' Unrecognized database format 'C:\Sites\content\a\n\d\andersmoen\db\news.mdb'. /a/n/d/andersmoen/index.asp, line 18
  19. Nice! I didn't recognise that it tried to reach a folder called andersmoen with db inside when I used andersmoen\db\anders.mdbI got 0 errors now (CHECK SELF
  20. I'm pretty sure it's backslashes because in my control panel at Brinkster.com it says:Absolute Root Path: c:\sites\content\a\n\d\andersmoen
  21. I don't understand a thing now...Look:I tried with absolute root path: (c:\sites\content\a\n\d\andersmoen\db\anders.mdb), and I've tried with only \andersmoen\db\anders.mdb and andersmoen\db\anders.mbd but I get error message every time.
  22. Here's my site if you wanna see yourself: http://andersmoen.brinkster.net/
×
×
  • Create New...