Jump to content

Ninjakreborn

Members
  • Posts

    3,922
  • Joined

  • Last visited

Everything posted by Ninjakreborn

  1. I will I am going to concentrate on what I know and finish learning php as a server side, mysql, as a database, refine my javascript for browser side, and clean my css up some then start doing jobs.
  2. I need to figure something out, I was messing around with some code in arrays, and I set up something here to make this more readable, is there an easier way to do this. below is my code and below that is my output into the browser. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>php test page</title> </head> <body> <?php $array1 = array("a"=>"Dave", "b"=>"Jim", "c"=>"Walton", "d"=>"Peter"); $array2 = array("a"=>"Jessy", "b"=>"Mark", "c"=>"Tim", "d"=>"Fairy"); $test1 = array_intersect($array1, $array2); $test2 = array_diff($array1, $array2); $test3 = array_merge($array1, $array2); ?> <pre> <?php var_dump($test1); ?> </pre> <pre> <?php var_dump($test2); ?> </pre> <pre> <?php var_dump($test3); ?> </pre> </body> </html> [/code] And below here is what it outputs into the browser., but is there an easier way to write this code, writing it standard just drops it in a bunch of heavily unreadable lines. [code] array(0) { } array(4) {   ["a"]=>   string(4) "Dave"   ["b"]=>   string(3) "Jim"   ["c"]=>   string(6) "Walton"   ["d"]=>   string(5) "Peter" } array(4) {   ["a"]=>   string(5) "Jessy"   ["b"]=>   string(4) "Mark"   ["c"]=>   string(3) "Tim"   ["d"]=>   string(5) "Fairy" } [/code]
  3. thanks so where do I get this phpmyadmin, this is going to be something I can create databases on my computer, and then I just upload the databases onto there server like I would if I were loading an xhtml, or css file. Let me know thanks.
  4. so then where does mysql come in, I am glad you are here I have tried sorting this out for weeks, but you are making it make sense, I have heard of that myadmin, and I don't host my own, I just work for people off there servers, and some lady asking me to "mantain her server" whatever that means. But where does MySql and all those other names quik, and sql, and postgresql, where do these come in you said you use mysql, what do you mean. Is it the way it connects, and if that's true then those are just different tags to connect to the database, but if thats true then sql isn't a language right I read your edit I think that sounds better, than trying to cram in every language before I start my first project, I think I will just when I get photoshop I will get a lot better with manipulating photos and banners, and logos so I can do my own stuff, and I Will finish studying php, sql, then get my javascript and css better, and then start working on my projects there, and just start working on flash on the side, to be able to do intros, and then just learn the rest down the road in my spare time.
  5. I appreciate it, I do test around with php as I go, I already have mastered Xhtml and css, I just need to finish with php and javascript and sql, I have 4 projects I am sitting on but they are all waiting for me to learn. I have one in a few weeks, so I will be utilizing it all then when I start, and start working through the problems as I encounter them, about the databases, you siad you use mysql. That's what I am confused about, do you go into notepad and type up your databases, or do you have to use a program, what program do you use to create your mysql databases, and what do I do if a server I am working on doesn't accept mysql. another question. What all programminga nd coding languages do you know total.
  6. yes but I am not sure how to put all of those pieces together. I can tell you that there is a whole chunk of functions for doing that type of thing in different ways, there are those that if utilized properly you can probably achieve that.
  7. I have a few questions that I really need to ask I have a few php related questions here but some aren't please someone help me answer all of these. I will give explanations to why I am asking as well. I have come a long way lately, pulling 80 hour weeks, trying my hardest to learn php, sql, and finish my knowledge on javascript, along with learning web design layout, content writing, as well as when I Get photoshop next week I am learning photo manipulation, banner, logo's and more. I have come a long way's and I have a long ways to go. I know it's something a lot of people don't agree with but I have ambitions. I know xhtml, css, and good bit of javascript. I am not learning php, sql, graphic design(enough to handle everything I need) design layout, content writing. I am studying all this currently and soon. No matter who tells me it won't work I have ambitions on the side from doing projects to also fully learn asp, jsp, asp.net c+, c++, c#, ajax(now that I know what it does) vbscript(to use with asp), bbcode(for building forums), flash(very soon), maybe xml, maybe wml, ado is in my mind but I don't know much about it. I have some questions here, I know people have answered me alot so far, and helped me alot, I have also tried to spread my html, and css, and javascript, and what php knowledge I know through people helping when I can to return the favors, obviously somebody booted me to guru. From lurker to guru in one post. I need help with these, these are very important questions, I strung them together in one post to avoid 50 different posts, these are things I need to learn before I Start compiling my php, and further knowledge to be able to start creating a new era in web design. and see my visions through, my crappy www.freelancebusinessman.com as it is now was built 4 times from scratch, I just didn't know about that, and I learnt the significance of something called pre web design planning, and will learn how to utilize that on all aspects. Here are my questions. 1.What is xml, do I need to learn this, where I am studying php it speaks a lot of xml, and smlst, or something. I know to look around myself I did I do not understand what it is and what the significance of xml is, and what it is used for. I also read that xml can be used WITH xhtml without replacing it, how do I do this, I would build website mostly using css, xhtml, javascript, php, mysql, and xml, but I need to know where the place of xml fits into all of this as a whole. 2. I saw some about ajax, I asked questions about it and was told on this board, it's lightning fast, if a menu is done in ajax you can't even tell when it loads, can ajax be used to create an entire website, if so does it replace xhtml and css, or is it another language that can be used with it. 3. What is ado, what is it used for, again I researched this and didn't get it. 4. ok now to php. I have to learn asp and jsp, I just want to know if they are indeed basically the same with different syntax I have had some some very good programmers tell me once they caught on to php, they could utilize the aspects of asp or jsp just by looking around at the syntax they could do basically the same things with a whole lot less effort than the first itme they learnt. 5. I am confused about databases. I found out msaccess creates database, that isn't learning sql though, sql is produced from a database, can I create a database from scratch in a wordpad, like I can a css file, or a php file, or do I have to have a database program, if so what's the point of me learning the sql language if I don't need it to create databasing. If so which database program do I need, I will get oracle once my freelancer career gets taken off enough but for now what is the second best I can get, and what is the best version of oracle available. If anyone can answer these Iwould greatly appreciate it, and I will continue returning the favors by answering questions and helping people whenever I see something asked that I have an idea about or know the answer to.
  8. copy and paste them into another folder I guess, not sure what you mean. right one seperate function per folder, then create a main function and run them all into it.
  9. I just got into arrays, you can set variables into an array and have each one be able to be called with a number, you could write a small program to have the program cycle through the arrays, like a loop function or something. [a href=\"http://www.hudzilla.org/phpbook/read.php/5_2_0\" target=\"_blank\"]http://www.hudzilla.org/phpbook/read.php/5_2_0[/a] this and the tutorial before and after this.
  10. in my opinion chunk the website rebuild it without tables and position with position:absolute position:relative position:static also make sure your xhtml divs and spans have widths and heights specified, restyle it to look good in internet explorer, and it should stay looking good in the other too, also check your stuff www.w3schools.com see if it validates, if it has errors in that or css fix them as that sometimes causes browser incompatibility issues.
  11. Yes it's pretty easy you create an id instead of a class. You label it as follows. You take what section you want an id for, for instance you want to call that bar topnav you do this .topnav set the link attributes in an external sheet here Ok after that you run the external sheet into your html, as you were told earlier, then you set the id into the tag at the beginning of the section you are using id=".topnave" it will style that one to taht id, and affect it only. Or you can use the # key to select sections in the external css file, I didn't have a lot of time, so if you wantme to do it for me send me a link to your external style sheet, I will set it up for you, and then show you were to put it in your html file. see the post below, I just ran across this saves me the time explaining, wildteen88 set a perfect step by step explanation of all aspects of what I already told you. [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=90163\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=90163[/a]
  12. [a href=\"http://validator.w3.org/check?uri=www.cencomputer.com\" target=\"_blank\"]http://validator.w3.org/check?uri=www.cencomputer.com[/a] you left it like that you shouldn't have to ask about compatibility issues, fix all those errors, 90% chance all compatibility problems will take care of themselves, and check your external css file if you have one. That report is only homepage, find the page with errors, validate it until it has 0 errors and a doctype, it should fix it, once the said page has 0 errors including a doctype check and fix your css file, if it doesn't fix it then I will try to help further.
  13. set it up in an array. and call the information, set a letter for each one, then you can call tehm at will or cycle them.
  14. I don't currently know databasing yet, I am working on it though.
  15. I need to figure out the best way to master doing arrays, should I get use to the first way or the second way <?php $myarray = array("west", "david", "mike", "jim", "bob", "dave", "walton", "korn", "siesmic"); ?> or the longer way with writing out each one below it. Which way is better while I am learning.
  16. print_r($nameofyourarray); this will print out all the array information for you to see, to make it to where you can read it better you can do. <pre> <?php print_r($nameofyourarray); ?> </pre> hope this helps.
  17. You can try this. Just in and out of php for instance <?php functions and other stuff ?> then you can enter your html here <?php then php ?> this will allow your html to come through without having errors for the php information, and if you are talking about people are trying to input php like that, you would have to create a bigger program to allow people to put in there own php for output, like a mini-browser or something, what "exactly are you having a problem with, or refering too. ALso give me a url for the website, somethign I can look at, and point me to the pages you are having the trouble and also show me to some of your source code, remember I can't see the php in view source so I need to look at that as well, but don't take long, I have to get back to studying soon. also look at this here, and see if it is of any help with this specific problem [a href=\"http://www.michelf.com/projects/php-markdown/\" target=\"_blank\"]http://www.michelf.com/projects/php-markdown/[/a]
  18. [a href=\"http://www.webdevelopersnotes.com/tutorials/javascript/learning_javascript_functions.php3\" target=\"_blank\"]http://www.webdevelopersnotes.com/tutorial..._functions.php3[/a] that'll tell you everything you need to know.
  19. set each one up to follow this example You should notice that a named anchor is not displayed in a special way. To link directly to the "tips" section, add a # sign and the name of the anchor to the end of a URL, like this: <a href="http://www.w3schools.com/html_links.asp#tips"> Jump to the Useful Tips Section</a> A hyperlink to the Useful Tips Section from WITHIN the file "html_links.asp" will look like this: <a href="#tips">Jump to the Useful Tips Section</a>
  20. also it isn't necessary those warnings are simply letting you know, if it says congratulations then you are fine, I am obsessed with clean coding, everything I do has to be 100% perfect, if it takes forever to fix, and from my perspective this isn't really a problem. If there are any problems that you need to worry about it will say you did not pass. If you want proof, everyone knows this site go here www.csszengarden.com the ultimate examples of css, now look at there source code of there main and all there styles, they ALL have quite a bit of warnings.
  21. The html pre allows the text you input to remain unchanged, which allows you to input html, to where it can be viewed. It sets preformatted text like <pre><b>Welcome</b> to the <del>wonderful</del><ins>great</ins> world of php</pre> if you types it without the pre tags the welcome would be bold, wonderful would be crossed out with great beside it, instead it will print out exactly as you see it when you use the pre tags.
×
×
  • Create New...

Important Information

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.