Jump to content

burn1337

Members
  • Posts

    98
  • Joined

  • Last visited

    Never

Posts posted by burn1337

  1. Firstly, the Get method will almost never really be a safe way to transport data... It is too easy for anyone to mess around with it, causing errors, or injections...

    Secondly, I have never tried passing an array through the Get method... and personally, I suggest either using the Post method, or think about breaking up the array so that you are passing each element of the array, in it's own $_GET array element... (if I remember correctly the $_GET array is not capable of being a multidimensional array, though I could be wrong.)

  2. firstly the body, html tag should not be 100%, it should be 99%... Secondly you should put a width on your Body Id... If that still doesn't fix the problem, try "margin-bottom: -10%" or some other percent, this way it will take the margin off the bottom and not give you blank space ...

  3. Ok so you want the right and left columns to be 200px, and the center column to expand as needed... I would use min-width/max-width, or change it all to percentage...

  4. Well the first things I see, is why are you using id for the radios... shouldn't you be setting the value not the id...

    Second... I personally would use an if/else statement to transfer the $_POST[''] variables to their own variables, and it would be better that way so you can at least somewhat make sure your not going go get sql injections and xss and such (i.e. $Lable1 = stripslashes(strip_tags($_POST['label1'])); ) Then make your query variable dependent.... (i.e. $query = "select * from testtable where currency='$what' label1='$label1'"; [Also you have an extra space after your * in your query, could be a problem also with useing the double quotes to start your string "" you do not have to use \' in order to use a variable just use single quote varaible single quote '$var' ])

     

    Also your result.php or which ever page has the code... I see no begining or ending php tags That could be why your code doesn't work right...

  5. Well if you know that some of the domains are going to be dynamic ips, I would either run a script on all the domains in the database on like an hourly or bi-hourly type of thing to make sure they are all current and working domain names. Or I would run a check per domain per request. But after thinking it through a little bit more.. I would also check the referrer in the server array. Hmm sorry I am kinda drawing some blanks at the moment, kinda busy lol

    Why do you use all three of the vars? ... Could you possibly take it down to like 1 var being sent?

  6. Well I would check that the ip is correct, I would record the ip from the sub/domain, most domains will probably be running on static-ip's where as sub-domains are more likely to be dynamic(*theoretically). From there just check the $_SERVER['REMOTE_ADDR'] make sure it is the same ip as recorded for the sub/domain.

  7. I haven't messed around with php that far yet, but I believe there is something that might help you. Go to php.net research it, I know I once saw something about that stuff, but I was looking for other things so I didn't pay much attention to it.

  8. Ya I kinda figured that would be ruff on the eyes, I already have done another one, I just don't have it in the server folders yet, when I get home Ill set it up if you guys would like to take a look at it, trust me it is nowhere near has harsh on the eyes, btw what do you guys think of the banner? good? bad??

  9. Thanks Jake I knew the average person online has either 1024/1280x 768 I have done my research, and please don't get me wrong I know I can come off as rude at times, I understand completely that people are trying to help... Thank you all by the way.

     

    At this current time I am in the middle of re-coding the entire site; layout/design, I already have made a new banner and background picture, My entire code is going to be re-vised/re-coded. If anyone would like to view the banner and background http://newrealm.no-ip.info/test/ ... and for future refference that is where anyone can see the progress of the new design and code.

  10. Well I do see a few syntax errors with the sql, or at least from what I've found, starting it in caps and not continuing in caps can lead to errors, or so I've found with my site(same with visa-versa)

  11. Well ProjectFear is right that would be your best way, but I would suggest continuely trying to get in contact with the guy that did the programming for you, also something you probably should have done... Database backups.... just mentioning for future reference this way if you have anymore problems with your database crashing you won't have to worry about having to re-assume the entire database again.

  12. Ya I know that's why I asked him to size it down a bit, and I wanted to change it so that the background of the pic was black with a green gradient instead of just straight green, he threw that together in one night. If I had better programs to use I would probably just do it all myself. Although with the coding or everything, plus learning the whole graphics design part of it as well is kinda well tough. 

  13. Honestly, I would suggest going to php.net take a look at the php manual spend a few hours, maybe even a couple days reading through things in there. It's obvious your new to php. So your first objective would be, to learn how to program in php. I hope you already know html and the what nots, otherwise your in for something that is gonna take a whole hell of a lot of work to get to.

     

    Also I would suggest just browsing through the threads and posts here at phpfreaks, you could probably pick up alot of useful information. Afterwards it's up to you, to use your imagination and knowledge of code to work from there.

     

    Object-oriented programming would probably be one of the best ways to attain what your going for. But be warned if you are very new, it is not going to be a cake walk. I too am pretty new to php, about 3 months or so. Once you get the jist of programming, just start laying out functions and checking that they work and use php.net to make sure your syntacticly correct. Trial and error is probably going to be your best bet. Good luck.

    quick tip: Get is how you are going to attain a single paged site. But remember any Get varriables can easily be changed by someone viewing the website. So make sure your code isn't extremely exploitable.

  14. Well if you would like to do something as a layout, that would be great, but I don't really need it, for right now the tables work for me. I know they are not the most conventional or the best and what not, but until I get the ground basis for everything I need to get coded( most of which at the moment is mainly Content Management and Administration scripts). I do plan to re-code the entire website, I plan to go with tableless layout design.

     

    I do already have my best friend working on some graphics... that is if he will be able to keep up with it. .. the background that he has already given me is here http://newrealm.no-ip.info/bg4.jpg if you want to take a look at it, he is in the middle of tweaking it some more.

     

    As to who gets paid more ... normally depends on the job, for instance now days Graphic Designers are needed more so then web programmers. Or at least as to what I've noticed. But network admins are in an even more need. That and programmers.

  15. sam_h, Thanks for that site, I can see why it was such a great help, I will probably use it often as well. The reason it is still password protected is because first there isn't much content to begin with, and I'm not sure what to put as my "purpose" there is alot I want to do with this, and in time it will present it's self.

     

    serverman, Well I am already working on a new design, and color scheme, btw I know my banner is bad, it's the first picture I ever made from scratch lol.

  16. Tis true to each, their own lol. I have never converted, I know its gonna be alot of work when I convert my entire layout. Plus I have alot that I'm gonna change; I'm in the process of starting a wikipedia type of thing games, and if this does get big enough to at least support it's self and what not, I hope to do an mmorpg. Possibly maybe one day do my own o.s. not to sure yet.

  17. I know this AV, I use tables now cause I'm still in the process of getting everything coded, for me tables are extremely easy so, until I get everything (background and what nots) finished tables for me is easier to put it together to have something at least half way decent as for being still in beta stages. Now when I do finally get things out of the preliminary stage,  I will probably do that. Until then I am more then content with my tables.

    There is no need for you to try to sell me on css tableless design. I know how to do it, granted I am not that great. Doesn't mean  I do not know how.

     

    Anyways thank you all for your suggestions and what not. I hope maybe you would check back at a later time, cause I do plan for things to change alot with my website, and much more will be added, changed, and the what nots.

  18. I appologize if I come off rude or something. I don't necessarily think anyone is out to steal my code first off. I just feel weird about posting my code thats simply it.

     

    Actually, I have been trying to get whiles, and do whiles to work, maybe when I was trying them I was syntacticly incorrect, but for some reason I couldn't get any results with whiles, or do whiles, I even used the manual with php.net, and tried to go off that syntax but it wouldn't do anything it would just error out, or do absolutely nothing not even an error.  I even tried basicly exactly what you suggested the only difference was the mysql_error(); and it wouldn't do anything. I could get them to work if I did nothing with querys, but as soon as I tried to do it with a query it wouldn't work for me. so I finally got everything to work with the for() loop. I know my code may not be exactly "professional" but I have also only been using php and mysql for less then 6 months, theoretically I am still a newb with php.

    Not to mention I am also farely new with OOP as well. So I guess you could say this is also a learning experiance for me.

×
×
  • 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.