Jump to content

reportingsjr

Members
  • Posts

    1,183
  • Joined

  • Last visited

Everything posted by reportingsjr

  1. No, that would be because you have echoed something out. Just remove any text output you have (including spaces at the top of the file, if any...).
  2. Maybe we should have some stickied topic for this . If you want some mixed answer just search "order to learn languages" or something similar, you should get about a million topics *wink* *wink*. But it is almost always confusing the first time you try and learn a language, or structure. ou may think it is confusing, but html is very simple compared to pretty much anything else. Minus Brainf**k (real language) and its 8 operators, of course it is written in byte so it is hard to understand!Anyways, learn pretty much whatever way you feel comfortable.
  3. Actually I started making a game in java, got it so you could use the arrow keys to move around on a map and you moved around the map, when you went to the edge and kept going another map would load and you would be at the bottom of it. That was it before I said forget it! Too much to learn, I needed to get tomcat set up on my hosting server and such for a secure connection. Basically you could use obdc (database connection for java) straight in the applet, but any wrong minded java programmer could pull the connection info in minutes and waltz into your database doing whatever he/she wants! You should look in servlet-applet communication to. Go to the sun java forums for more help .
  4. Haha, it does look like a highschool science project . Sorry about the delay, this topic just disappeared! Nice cannon-scope there =D. I want one!!!
  5. reportingsjr

    Pong

    Well, if you have tried to make a game before you know that the first step(s) is/are to make smaller, simpler game(s) first. So I started with one of the simplest games you could possibly make, pong! A link to it is here:http://excibius.com/pong.htmlThe control keys are the up and down arrow keys.Now, I have a few bugs which you will probably find immeadiatly upon playing it. For some reason the computer is sticking at the top and bottom. I dont have a clue why it does this but it does! Also, at every new start the ball will hit the users paddle, then go down into the corner, where the computers paddle is and then it just goes through the paddle! Another thing is that in IE 6 and 7 the users paddle will not go up and down. Does anyone have a solution for the jumpiness? I know in java you can buffer and such, but I dont want to go and learn a whole new complex language.Could anyone help me solve these problems, it will help a lot when I make the final game. Thanks!
  6. reportingsjr

    help please

    That means the result was empty so mysql_fetch_array didn't get any rows... Also, for the top rand() it should be seperated by a comma, unless thats another part of rand. Not a slash.
  7. I've never had an actual job with programming. Hopefully I will get one soon! I am going to start using Fireworks to (its awesome!). By the way, congrats on it .Sorry... Just got a firefox extension that give me more smileys .
  8. USPS (United States Postal Service) has some online tools for checking address, zips ad that sort of thing online. You will have to look into it more though as I do not know much about it. You may have to pay a bit for it!
  9. You cant split up codes at random points, because each chunk is still a file. It will get parsed (executed) before you include it, then it will include the html. So the errors it is seeing, from at the top is that you haven't closed an if statement. Also, I say you have the beginning of an if like this:if(blah) //do thisBut the elseif had curly braces. This is not allowed as that counts as two different if statements (I'm pretty sure, I always use curly braces). Why do you not want much code on one page? I have a php crawler that im working on that is at least 200-300 lines long. Its not that confusing. Infact, I find it much easier to have all of the required script in one file than in many different ones that way I don't have to navigate through a maze of files to find what script I need to edit, in case there is a bug in it.There is absolutely no point to having a logged in variable if you are setting $_SESSION['online']. You can check if that one is false or true (automatically false, unless you change it. If you put a string in there it will still change to true).Hope this helps!
  10. Cutepress:), thats a good name! Why not think of it on your own? just a question!How about editing? That would be nicer, oh yeah. I haven't checked in a while but do you still need to have the author when logged in? Maybe you should remove that field?
  11. You could just put a div at the top that has a width of 100% and height of 100%. Set the z-index as 100 (dont forget to put position:absolute;). Those 4 things in css. Put inside the div text such as "Please wait, site loading.....". Put an id on the div and use this javascript code: function HideDiv(){ document.getElementById('divname').style.display = 'none';}window.onload = HideDiv(); That should do it!
  12. No, if you have the mysql installed on the same server as the script the you just use "localhost". Not "mysqlhost", however if you are using it on a different server then you would in fact use the ip for it (I think).
  13. I Just Hacked A Computer I wouldn't get hired there! I didn't know like 3 or the language abbr. lol.
  14. Im pretty sure that those are on all links because of the shopping cart, this is so it can store the users info in the database. You should check the shopping cart script for anything that has that part of the link. So just look around for those.
  15. I don't think this is possible with php, it may be. ut from what I know about credit cards you have to send a request to the cards company, for that certain numbered card. When the company receives it, it will check if the card is a valid number and such, then send back if it is valid or not. Now, this is why you can only use certain card companies like visa, mastercard, etc.. You may be ale to contact the company and get special permission or something. Also try to google "php credit card validation". That should help you!
  16. You will have to use a lot of divs or something and use positioning to put the around the t-shirt as a kind of wall. Just try to image the divs as little blocks or something, then stick them either on or around the t-shirt.
  17. It does feel nice, I am lucky because something like this hasn't really happened to me! I just found the right stuff, and everything just comes to me. You can always come here for help if you want, some people are whizzes, but usually in one to three areas. I'm sure someone here would be willing to help work on your site. If you want I will help, but everyone I have offered to never really does anything. Just pm me on here so you can work on the business end for a bit.Were you one of the people who got deleted in the hacking? I swear I saw you here before, but it says you registered on jan. 4th. Hmmm, oh well. Cya later!
  18. The site is looking pretty good so far. I have a few suggestions though. The footer image, where it looks like burnt paper looks kind of blurry, I think this kind of messes it up because everything else seems so defined and sharp. Also there are still one or two little spots in the upper right of the header, not sure if you wanted those there. The sliding pane button is pretty hard to see, esp. when you mouse over it. How about making it a little darker or changing the color of the font? It could be a problem for color blind/impaired people. One last thing! When I used the email and the ajax thing popped up only the top portion of the page was covered with the loading screen. You may have to use javascript to fetch the page dimension so that it correctly covers the page, not just the top of it. If you didn't catch that, scroll down when using the email to see what I mean (you have to scroll down to send it anyways). There you good, and good job so far!EDIT: oh yeah, I was using firefox with a 1024x768 resolutionEDIT 2: Just noticed this, but for your title caption under portfolio on the images it has html code, don't know if you actually want that there .
  19. reportingsjr

    error

    echo $q->lastname.$q->firstname;
  20. It is in fact because the get variable is not defined. The only way to not show this is to turn off error reporting. There is a function for it, go to php.net and search for error_reporting in the function list.
  21. What that site is doing, is using ajax to fetch the contents of a web page. It then puts the contents of that webpage inside some id'ed tag. It doesnt actually reload the page so everything will stay the same except that id'ed tag. You need to look further into it than that..
  22. Looks like no one wants to comment on you! Merry comment :).

  23. Its a constant, basically a variable without a dollar sign and uppercase. just so you know!
  24. You need to escape the backslash. The backslash is used to escape characters, so it is escaping the single quotation mark that is after it. Also, in the die() it says you can have the underscore in your name while the underscore is in the list.. And since you replace everything with a space, the strlen test will not work. It will still be the same length. Use this: $junk = array('.' , ',' , '/' , '\\' , '`' , ';' , '[' , ']' , '-', '*', '&', '^', '%', '$', '#', '@', '!', '~', '+', '(', ')', '|', '{', '}', '<', '>', '?', ':', '"', '='); //starting lenght of username $len = strlen($_POST['username']); //replace invalid characters $_POST['username'] = str_replace($junk, '', $_POST['username']); $test = $_POST['username']; //if lenghts are different ($len smaller), invalid characters found, so prompt error. if(strlen($test) != $len) { die('Username Error: Username contained invalid characters. You can only use A-Z, 0-9 and theunderscore (_).'); } That should work correctly!
  25. reportingsjr

    AJAX

    It would just go under Javascript, so no I don't think they will add it. It is just another few functions in javascript. Why a new section? That should help you understand.
×
×
  • Create New...