Jump to content
xisto Community

minnieadkins

Members
  • Content Count

    307
  • Joined

  • Last visited

Everything posted by minnieadkins

  1. A great help. I use includes all the time, they can be very handy and can kind of replicate OOP without objects. Consolidates your code and helps maintain it. One thing to note is that you can also use require instead of include. Include will throw up a warning whereas a require will throw up a fatal error and prevent your page from loading. Obviously you'll have to choose which one is right for you, but by using the right exceptions and states includes can be your friend. As mentioned above it's a great way to do your database configurations and connections. I'm currently working on a site that has about 10 + includes for various purposes, and they are very useful. Be careful in naming your includes however, as if you name something Database_File.inc and someone knows how to navigate to your file, it will not be parsed (unless you specify it to be) and they will be able to see your code.
  2. Looks great with the tabs in my opinion. Easy to find navigation for the user is the key. Make them happy; that's your goal. Or is it? Depends on what your site is for, looking like you'll have a lot of users for photoshop tutorials. The easier they are to find the more satisfied everyone will be. Why not throw in a tabbed menu above your content. Fits nicely into the page, and looks great.
  3. Perhaps I'm overlooking something, but mysql_num_rows is apparently not receiving the correct object. I'm guessing it's a problem with your query. I'm fairly 'noobish' at this as well but if you're using a text field in your database or charvar, then your statements field should be enclosed in quotes. Correct me if I'm wrong here...and I may be, but: Would that work? or would this work? $nameq = "SELECT ad_name FROM registration WHERE ad_name = '$name' LIMIT 1";$emailq = "SELECT ad_email FROM registration WHERE ad_email = '$email' LIMIT 1";$nicknameq = "SELECT ad_nickname FROM registration WHERE ad_nickname = '$nickname' LIMIT 1"; I usually do this when working with variables, because I encounter errors when variables are in quotes. Some variables work, but larger more complex variables, and superglobals often times have trouble. $nameq = "SELECT ad_name FROM registration WHERE ad_name = '" . $name . "' LIMIT 1";$emailq = "SELECT ad_email FROM registration WHERE ad_email = '" . $email . "' LIMIT 1";$nicknameq = "SELECT ad_nickname FROM registration WHERE ad_nickname = '" . $nickname . "' LIMIT 1"; Put an 'OR DIE' at the end of your query, or just echo out your query and copy and paste it into your SQL command prompt in phpMyAdmin and see if it executes properly.
  4. There are 2 major types of databases, relational and object orientated. Mysql is a relational. It's free and is ideal for small projects or even small companies. But, as in it being free, it's doesn't have all the capabilities as most of the top-leading commericial databases. SQL (structured query language) is used to communicate with relational databases. A database is obviously used to store data. In my opinion, it kind of acts like a hard drive, but organizes the data in ways that can be retrieved and displayed easily.
  5. Looks like a great game, but I can't afford the hours nor the price per month. Well I could afford it but it wouldn't be healthy for me. Other things always come up. Maybe back when I was in high school I could afford the time, but I hear it's addictive. I spend enough time as it is with quake 3. All in all I think this is a great game for an avid game player. For someone who just wants to pace themselves I would think guild wars would be a good replacement. Then again I've never played either. I hear I'm missing out, but I'm sure there will be bigger and better games come along in the future.
  6. Google's seems to have their hands into a lot. I could see this happening. As mentioned cd prices are something that people complain about, and less convenient then just downloading a song. I look for most companies to have some form of music store. Wally world even has their own little spinoff of itunes. Could be interesting.
  7. I wouldn't mind having a gaming mouse and a gaming mouse pad, but I use a Microsoft optical mouse with a scroll wheel. Just a standard mouse that came with my pc. It serves its purpose, and I have no complaints. I think it retails for about $15 or somewhere there about. You can find it pretty cheap on pricewatch.
  8. WInamp's great. I love the skins it has available. Never really used them until a few months ago, but some of them are fairly nice. Winamps very simple to operate, and that helps me keep coming back to it. It's been around for awhile so everyone's probably been exposed to it. I use it for audio mostly, but a lot of my friends use it for short clips and vids. I personally stick to WMP for movies and clips. Just personal preference I guess. I'll be sure to check into the new winamp if I don't have it. Not too sure on which version I have. Don't have winamp on linux or I'd check =/
  9. Looks like a great setup. I'm not much of an expert on pc spec's but I know that one blows mine away. I'm not familiar with AMD so I don't know it's capabilities, but I hear it's the same almost (or better) than most pentiums. I have 1 gig of ram and it does fine, but I would imagine that expensie memory would help a lot. Also in the future I see requirements coming steeper and steeper with all the graphics. Which your 2x vid cards should provide. I don't have a pci express slot because I got my pc just before the hype, but if I was a big gamer I guess that's the way I would be heading.I heard something about a new AGP slot coming up soon, if it's not already. Suppose to be faster than pci-express. All in all, with that you should be able to play almost any game. Just get you a whopper of a hard drive to go with it to hold your games. It should hold you for a few years fairly easy. If you can afford it then why not I guess. If you wanted to talk price/option ratios that would be different.
  10. I use notepad++. I think's it's great. If there was a linux version I would prob install it and run it on linux as well. Perhaps there will be a version one day, but for now maybe I'll check into some of these other text editors that you speak of.As far as notepad++ goes, I'm just use to it. I like it's simplicity, and flexibility. Syntax highlighting is good. Overrall I could switch but I fear change.
  11. Actually you can do a traditional INSERT INTO table(value1, value2) VALUES('SomeValue', 'SomeValue2')But I think in mysql it'll let you address an insert statement as if you're updating, which isn't the same for postgres. Try it and let me know what you find out, but I'm pretty sure it's allowed. In this case he's wating to insert, not update. I was looking at a previous script that one of my professors wrote usuing a mysql database and his insert scripts looked a lot like the update statements. When we switched over to postgres we had to redo the insert statements to match to the traditional insert statement. It would probably be wise to stick with traditional unless you plan on staying with mysql. Vujsa, you don't actually use a dbi? You just right your own code to supplement the use of db connections/queries? I was introduced to a dbi that's based on perl's standard dbi or something like that. I like it a lot better than all the php functions to deal with mysql/postgres. It standardizes everything, so whatever you want to do (use mysql, or postgres) you use same function call. You just change the inital connection's function to receieve a string argument of what database. I believe that's the way it's done, but with the script I'm working on there's about 10 different includes to every page in order to make it work right. Good experience tho. After thinking about it I can see the advantage of writing a script that does what you're talking about vujsa. Have a function like build_db_query or something that builds the actually query and returns it as a string perhaps. You pass a table name, and an array of values in an assoc array indexing the related tables in the fields. You could make it even more flexible and add flag to determine whether it's a select, insert, update, or delete statement. Just have a switch on the flag, then build the appropriate sql statement. I'm rather new to OOP and php, but can't this be done with polymorphism? (rather new to OOP in general)
  12. I personally like gmail. I intend on forwarding all of my hotmail, yahoo mail, etc etc etc. All 5 or so accounts to my gmail. I hope the spam filter works with that, if so, I would highly recommend everyone take a look into gmail. I don't use it a lot, but so far I'm pretty satisfied with it. Ask pretty much anyone around and they should have plenty of invites to toss your way. I have 100 I think, and I'm sorta rather new to gmail.
  13. What exactly shows up? If nothing shows up it might be due to one of your sql statements being incorrect. I don't think that sql warnings are enabled on Xisto. You probably ought to try running it locally and turn on all error messages for debugging purposes. Like everyone says show us some of your source code, and maybe direct us to the site that you're working on, if it's stored on Xisto that is. Let us know what exactly your problem is. You say nothing's showing up. Is it just a blank screen? No errors? Try to view source and see what it says. Throw in a echo "this is a debug statement"; Make sure it's doing something.
  14. Lol I guess he has some serious specs. My pc could take his. =) It'd be nice to have just one of those cars in my opinion. It's good to see that some people can afford to do stuff like that..not only that..but he actually knows how to do it. I'm just a little too simple I guess.
  15. The storyline for all GTA series has been different in my opinion. It went from an 80's theme dealing with Verscetti to Gangster in San Andreas. Is there a new GTA out? I heard something about a cowboy themed GTA or something. Anyways, Halo is very much the same as most FPS. It's a little slower-paced than a lot, but if you think about it, the only thing they did was take an enemy, give you some guns, and added some vehicles (kinda original). After that they throw you in a plot and let the story unfold. Pretty much can be said for GTA. They give you enemies, some guns, lots of vehicles and let the story unfold... I guess you can compare them on some general terms, but overall they're entirely different. The 3rd person perspective just isn't the same as a FPS.
  16. The ability to test code locally is very valuable when you first start. I recommend having a home server that you can test and mess around with. You have no bandwidth controls and you can have total control over your settings. As far as actually learning to script, the best way would be to actually do it. Try and write something. Even if you don't succeed that doesn't mean you didn't learn anything. Just keep trying and looking up areas where you get stuck. It'll come to you. Maybe read through a few primers/tutorials and have a few reference books on hand.-Good luck
  17. I agree. It's great to see someone going through with it. I'd like to attempt it maybe sometime in the future. Interesting topic. Keep us updated with your progess.
  18. I personally have been using PHP for a few months now. I like programming in it, and I found it to be confusing at first. Once you harness the ability to understand basic functions within php, and learn to USE resources, it's not so bad. If I'm unsure on something I go to php.net and search and read through some of the comments and descriptions of functions etc.I find it to be a very valuable resource. As far as learning find a nice book like as mentioned above, or read some primers on sites such as http://www.htmlgoodies.com/. You'll find plenty of tutorials to help you start learning, but to actually attempting to make something with php is what teaches you the most. Remember that you can jump in and out of php very easily, which is very useful and very flexible.
  19. I played everything from gta 1, gta 2, gta 3 (briefly), gta: VC, and GTA:SA. Great games I must say. I remember getting a demo of gta 1 with a pcgamer back in the day. Anyways, I've beatan GTA:VC since that was the one I played most. I haven't played gta 3 enough, but I would like to try my hand at it. In gta:SA I made it to where you had to control remote control airplanes kill some gang members or something. I never made it past that and it was my friends copy of the game so I never finished it. I found it to be pretty good and better than Vice City. Vice City was great there, but there's more features in San Andreas. It's $20 for PS2 now I think. I seen it yesterday in wallyworld in the greastest hits section. Perhaps I'll pick up a copy for myself and finish what I started.
  20. I wrote a simple web program/site in php that uses mysql as its database. The program stores a daily record of calories/serving. It's basically a calorie chart. I looked today and 2 of my tables were missing. Now considering it only uses 2 tables (which isn't too efficient but it's for personal use) that's a lot missing. It's not a big deal to lose the data and I didn't have a backup, but I'm just curious as to why and how it happened. Everything worked fine for awhile, then I decided to dabble with cronjobs. I wrote a cron to make sure that the day has been recorded into the database, that way it can still go back and be edited (and keeps the current dietday # intact). Now I am a complete 'newbie' to crons, but I'm pretty sure it's written correctly. Perhaps I messed up somehow and did the cron incorrect. I tested it however, and it seemed to work. The problem is that I do not have any 'DROP' sql syntax in my scripts. I'm just curious as to how this could happen? Any ideas, comments/solutions and or laughing at my stupidity is greatly appreciated.
  21. It is time-consuming but Xisto's services are very good. As long as you contribute to the community and are serious about hosting then you'll get it. As for other hosts it's kind of you get this and you might not, or we'll change it. So far Xisto has the bets free hosting I've ever seen. I try to keep my hosting days to around 20 days. It really doesn't take much to keep it around there. About 2 or 3 posts a week. Don't abuse the credit system and just post on topics that you're interested in and soon you'll start accumulating enough points. Good Luck.
  22. I first played elder scrolls IV, I think that's Morrowwind, when it came packaged with my computer. I enjoy D&D type games and I found it to be fairly interesting. There are some concepts in the game that was lacking, but overall it was a decent game. I noticed that there's a new elder scrolls game out called oblivion. I looked at a of the gameplay video and the action looks improved. I was just wondering if anyone's played it and if so what's it like? The graphics obviously look a little better, but is it worth it? Does it have any multiplayer capabilities (which I doubt).What are the system requirements like? I can play doom 3 and quake 4, although it's not the best quality, on my computer. Does it require more to run Oblivion than those FPS?
  23. One of my professors always said, "The only way to learn to program is by doing it." As long as you take time to actually try your hand at programming, I think either of these two methods will work.. The amount of online resources that a person has available to them are incredible. I learned html and javascript from online resources. I'm not that great with javascript but I understand how it works. (basic javascript that is, some of that advanced stuff is way over my head)I think a combination of both is what would actually be the most beneficial. Books are very nice, especially as references. The tutorials are pretty good usually, but as mentioned above, some of the books contain too little information or are very complex and hard to understand. If you have access to a library then you can usually find a good book to start with, and follow-up with a few online primers/examples. I find it fairly difficult to take time out to read the actual book, but the online examples are just so short and sweet and simple. They're also easier to locate what you need. Just google, and you'll usually end up with a piece of code and an explanation of what it does.
  24. I live in Easter Kentucky, and I'm surprised to see many people's options as ridculous or as small as mine. I pay $60/month for a 1 megabit connection with 320 kbps upload stream. I'm not too satisified with it, but from what I'm reading here it's not "all" that bad. That's the only option we have here and it's offered by our local telephone company (xDSL). Adelphia cable is offered for digital television, but they refuse to offer cable internet here. Our rates: 39.99/mo 320kbps/128 kbps49.99/mo 740kbps/320 kbps59.99/mo 1024kbps/320 kbpsOver the past few weeks however I noticed a change. I think they've upped our limit and now I'm getting anywhere from 2 mbps - 2.3 mbps down, and around 520 kbps up. Hopefully they've changed their plans permenantly. I'm a lot more satisfied with those speeds.A friend of mine did a test on testmy.net and showed me he had a 10 mbps downstream and 2 mbps upstream. Insane speeds. He's on a cable connection I believe in Mexico and he pays like 24.99 a month. He could increase his speed by 50% by painging another $15/mo, or so he says. I'll check my message history and post a link to his results if I can find it to see if they're real or not.Overrall, as of now, I'm satisified. When I first got it, I expected more, and I'm glad it's been increased to 2 mbps. I just like being able to share my bandwidth with my wife and still have a decent connection.
  25. Do you want the actualy html sent to your email, or the data that the user supplies. Anyway, you would use the php $_POST variable to collect all your data. Example $URL = $_POST['url']; //retrieves url from form NOTE: Variables are case-sensitive in php. You would then create script and link your form to that script once it's submitted. So where you have your <form action="???"you would put <form action="mail_results.phpor something along those lines, depending on what you name your script and where it's located on the server. As far as mailing the results I suggest you look at the mail() function provided by php. http://us3.php.net/manual/en/function.mail.php To genereate the $message variable you would accumulate your variables one by one and append them to the $message variable; Example: //retrieving variables; placing into message$message = ''; // Empty string...why not?$message = "Name = " . $_POST['name'] . "\n";$message .= "BD = " . $_POST{'bd'] . "\n"; That would work. Notice you have to the double quotes for the \n to produce another line. You could probably enclose the $_POST variables inside the double quotes, and it would work, but I tend to put my variables seperate from the string. A faster way but less customizable way of doing this is simple loop over all the variables sent and put them in your email. Example $message = '';//declare empty stringforeach($_POST as $key=>$value){ $message .= $key . " = " . $value . "\n";}//!End of looping over post variables/* then use the mail function here */ Hope this is what you were looking for. -Good Luck
×
×
  • 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.