Jump to content
xisto Community

bjrn

Members
  • Content Count

    380
  • Joined

  • Last visited

Everything posted by bjrn

  1. You do realize that that thing just returns errors? Why don't you remove the registration requirement, from what I understand all you've got there is the same thing already mentioned?
  2. Opera was one of the first, if not the first browser to have tabs. I don't agree at all with your view that there has to be one browser as an alternative to IE. In fact I think that it the big problem with IE, that it is just one browser dominating the market, having Firefox or the Mozilla Suite take over as one dominant browser would be almost as bad as it is now. I would like to see not just more Firefox and Opera users, I'd like to see more alternatives. So I hope K-Meleon matures soon, and perhaps that a KHTML based browser gets made sometime. In the world of software, just like in biology, diversity is a good thing.
  3. How is the free version of Opera clunky? The only differnce is that you have a small Google ad at the top, other than that there is no change. It's just as fast as the pay-version,
  4. There are loads of "What do you think about Firefox" and "Firefox vs. X" threads. Could you please, please, at least try to make this thread interesting by bothering to write why you prefer Firefox to Opera? Do you like the user interface better, or is it the community, is it the open sourc thing? Why!? Why do you use Firefox?
  5. So what do you want preview mode for? I've found that when you make pages you are going to have to check in both IE and Mozilla browsers (at least). Why not just use a browser to see what you've made?If you don't absolutely need a preview mode you could try Crimson editor, which is free and has syntax highlighting. And no spy/ad-ware
  6. If you want to move data from a MySQL database to a MS Access I think the best solution would be to make a SQL dump with MySQL and then run the SQL in Access. But you should be able to use MS Access import function (File -> Get external data (or something like that)) and then select ODBC datasource from the filetype list. You should be able to connect with an external DB if you have defined an ODBC connection (depending a bit on which Windows you are using). I haven't done this in several years, but I remember under Windows98 that you had to define an ODBC connection in your control panel, that might have changed in WindowsXP.Check the MS Access helpfiles and Google around a bit, or if you are just exporting data from MySQL to Access, use an SQL dump.
  7. I think the chance that there aren't any other intilligent life-forms in the universe are fairly small. But I do think that the chance that we will ever see any of them (in any forseeable future) is nil. Even if you could travel at the speed of light it'd take over 4 years just to get to the nearest star, and there's nothing interesting there. It would take ages and ages and ages to even get close to anything where there could possibly be intelligent life, even if you travelled at the speed of light, which you can't. The fastest space travelling vehicle I know of is sattellite thing which was sent to go beyond Pluto. I think it took about 12 years to reach Pluto, and that's just staying withing your own solar system...
  8. It doesn't really matter that there is a built-in function for it, at least you've learned some more PHP and what you have now is working. :angry:But if you are going to use date things some other time I recommend the date() function, it's really nice, and you can also give a timestamp as argument, so if you have a guestbook you can store the text and date in a database and then when you show it on a page you can use the date() function to format the timestamp the way you like.
  9. Glad to help. Though, I just started looking at what you're printing, and if you just want to echo "Sunday/March/06" (or whatever the current date is), you can do this: date("l/F/d");Full list of all things the date() functions can do: http://de2.php.net/manual/de/function.date.php
  10. So. Firefox implements things that let you import bookmarks from other sites and let you view pages you've seen with IE. And since the IE development team hasn't done the same for Firefox, it's Firefox's fault? That's some weird reasoning.
  11. Oh, yeah, sorry. You of course have to escape the quotes: echo "<span class=\"mystyle\">".$giorno[$gisett]." ".$mese[$mesnum]." ".date("d")."</span>";
  12. I don't really know in what context you are printing the output, but assuming it is in a html page somewhere you could do something like this: <?echo "<span class="mystyle"".$giorno[$gisett]." ".$mese[$mesnum]." ".date("d")."</span>";?>And replace "mystyle" with the class you use for your tables, or add a .mystyle class to your css file. Or you could replace class="mystyle" with style="font-family: sans-serif" or whatever font you are using in your tables.
  13. I saw you had pos {position: absolute; top: 0px; left:0px; }pos {position: absolute; top: 160px; left:0px; }If you are going to define classes you have to start it (in the stylesheet) with a dot. And you have defined it twice for some reason. .pos {position: absolute; top: 160px; left:0px; }Should work. Second, you set the style for the table by typing <table style="pos" etc.. That's not going to work. Try <table class="pos" etc. instead. When you use the style attribute you have to type CSS style as value, not class names. Now, the spacing you have all round your page, that is a standard margin. To be sure you should set both margin and padding to 0, like so: body {margin:0;padding:0;}
  14. The word 'google' is going to be in the new Webster dictionary. Anyway, Google isn't really a misspelling of Googol. It's was supposed to be some sort of play on words, not very funny, but it was intentional.
  15. There is opendir() which you can use to open a dir and then loop through the contents. <?phpif ($handle = opendir("yourdirhere")) { while (($file = readdir($handle)) !== false) { echo "filename: $file : filetype: " . filetype($dir . $file) . "\n"; } closedir($dh);}?>Note that this will also list sub-directories and '.' and '..'. You can get info in the php.net documentation for opendir().
  16. Uhm. The validator gets the page just like your browser does. It doesn't make up HTML that isn't there.I don't see what the big problem is, making compliant pages surely isn't that hard?
  17. bjrn

    Table Borders

    If you added border-color: red green; you'd probably get a red border on the top and bottom and green on the sides. I think what beeseven meant with multiple is that you can write shorthand for any box model things. So if you have border-style: dotted; all borders will be dotted. If you write border-style: solid dotted; the top and bottom borders will be solid, the ones on the side will be dotted. If you write border-style: solid dotted dashed; top will be solid, sides will be dotted and bottom will be dashed. You can also style borders like so: border: 1px #000 solid; which will give you a one pixel solid black border around the thing you defined the border for.
  18. I'll try to explain the code This imports the PEAR things to your script, PEAR.php and DB.php are standard scripts, available to everyone. Not something you have to upload or make yourself. require_once("PEAR.php");require_once("DB.php"); This makes sure you get a nice error message in case things go wrong PEAR::setErrorHandling(PEAR_ERROR_DIE, "Aaaaargh! Error: %s"); This makes an connection object. You have to substitute 'dbuser' for your db username, same for dbpassword and dbname. I just put them there to show what goes where. Oh, and if you are connecting to a DB on another server you of course have to replace 'localhost' with the server ip. $conn = DB::connect("mysql://dbuser:dbpassword@localhost/dbname"); Now you can use your connection object. This piece calls the prepare() function in the connection object and stores the resulting statement. $preparedstatement = $conn->prepare('INSERT INTO dbUsers (username, password, email) VALUES (?, ?, ?)'); This is an array with values, the values will replace the '?'s in the preparedstatament. $data = array($_POST['username'], $_POST['password'], $_POST['email']); And finally you call the execute() function the the connection object has with the prepared statement and the array of values as parameters. $conn->execute($preparedstatement, $data); I don't really know much about PEAR. What I know I've learned from the official PEAR site and from Googling for specific bits.
  19. You are trying to make a new DB under "MySQL Databases" in your cPanel, right? And not in some PHP script of your own or in the phpMyAdmin section?I know trying to create new DBs in phpMyAdmin here on Trap can (will?) give you an access denied error.So if you are trying to use some home made PHP script or trying to do it in phpMyAdmin: don't, use "MySQL Databases" instead.
  20. It's a transparant, human-readable way for distributing text among different applications. Why do you need to learn it? Perhaps looking at what you have to use it for and comparing it to other possible solutions could give you an idea as to its advantages (and disadvantages)?
  21. bjrn

    Table Borders

    I'm not sure you can give borders gradient colouring. You could try adding 1 pixel margins to your navigation items and setting a gradient background on the navigation menu. I'm not sure if you can do that using tables though. I'm not totally sure I've understood what you want to have. Do you want a border between the menu items or just around the whole navbar?
  22. If someone is planning on implementing something like this here on their Xisto account, I suggest you use Pear. When you have people logging into things on your site, you want to make sure that there is no possibility of sql injection. Pear's DB prepared statement function prevents SQL injection attacks. It's very handy. Something like this could work require_once("PEAR.php");require_once("DB.php");PEAR::setErrorHandling(PEAR_ERROR_DIE, "Aaaaargh! Error: %s");$conn = DB::connect("mysql://dbuser:dbpassword@localhost/dbname");$preparedstatement = $conn->prepare('INSERT INTO dbUsers (username, password, email) VALUES (?, ?, ?)');$data = array($_POST['username'], $_POST['password'], $_POST['email']);$conn->execute($preparedstatement, $data);Please note that I haven't tested this code, it should work, but there might be some stupid typo somewhere.
  23. A CMS basically lets you add new pages/new content on a site without you having to edit the HTML documents themselves. It's to make it easier to create new content and maintain existing content.And you might want to add a news section to your site because you have new things on your site?
  24. JavaScript is not Java. Java is not JavaScript.They are not the same, there is a big difference.
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.