Jump to content

dannyb785

Members
  • Posts

    544
  • Joined

  • Last visited

Everything posted by dannyb785

  1. I have one that I do for a friend of mine(at http://www.jazzedart.com/guestbook). It contains a simple catpcha,(which can be changed if you'd like) for spam attempts, and sends the admin an email where the admin can view the entry in their email, and click a link to approve or deny the entry. And it wont show an entry until it's approved or denied. Message me if you'd like it. btw, don't try submitting something on the site unless it's relevant to the site. As I said, she monitors all entries before they are shown.
  2. I recommend checking a C# forum. Not to be rude, but this site isn't made to help you with what you're trying to do.
  3. Yes, your original script should be fine. Just make sure the emails are separated by, I believe, a comma. I would think it's better to do it that way than do a loop and use the mail() function over and over(but I dont know for sure)
  4. You should learn to code css by yourself, without any framework first. Then once you know css inside and out, then work on doing it with a framework. That way if you need to change/modify something, you'll know how to do it without much trouble
  5. I read somewhere that nobody uses mysql_result anymore. Not that they literally dont, but that there are better, easier, and more efficient practices. Can you explain what you're trying to do, then we can suggest a better way of doing it
  6. from... your board? And php 2.0? uhhhh... you need to be more specific. are you talking about a phpbb-baed forum on your website? If so, I believe there is an "ip ban" option in the admin panel
  7. not wrong to put what after the function? And it's not a function, it's best to not call it that. I'd call it a tag modifier, even though it modifies more than just tags(I know it has an official name, I forgot it). But anyway, what you have posted there will only change the color of the links. Think of what you're saying in that style code. You're saying that everything within a p tag that has a class of redstuff(or whitestuff) that is within an a tag will have the "color" color. So it literally, and flat out wotag modifier
  8. no, because when you don't specify a tag(i.e. not having the a, or a h1, or anything after the class/id name), the color property applies to the text color only(links are not affected). But when you have the a after the class/id name, the color property affects only all thinks within and <a> tag.
  9. I'm working on it right now. I'm not experienced with Q3367 with javascript(I have no clue what it does, and every google search for that number shows the exact code you've posted), so I'm testing things... I'll post if I get something
  10. You probably accidentally click "make new poll"
  11. methinks you're at the wrong website for this.
  12. Not if the song name inputted ($_POST['Song']) is finding something like a song name, and then grabbing something like the code for the song $row['Song'].
  13. that'd only be if he expected more than one result
  14. You guys type way too much. Just to prove that you're right when there isn't a right or wrong answer!
  15. did you even check line 53? You have "clean link", not "clean_link"
  16. No matter how easy it is, you're saying "Here is how to build a guitar" before you say "here is how you learn guitar". Remember, not everyone may learn php quicker than you guys. They also may be using it just for fun to test it out, without any intentions on having massive traffic come to their site. Is that really worth $50-100 a month?
  17. Ah ha. the problem may be... you're starting your insert from "//public_html... and so on. In my upload script, I have the target set to start from my current directory So if my file is a jpeg, and I want it to go into "images" and it be named "image1234.jpg", I'd make the $target variable: "images/image1234.jpg" and thats it. I'm pretty sure that's where your problem is. Also, I think you might need to specify the max file size(but it might not be important) <input type="hidden" name="MAX_FILE_SIZE" value="10000000000"> But the server may have limitations that are lower than the values specified. Also, how big is the file you're trying to upload?
  18. It is likely personal preference, but to me, they all seam far too basic. they are truly aimed at dummies. That being siad, Ive never read one, just skimmed through a few in the bookshops. That wiki I linked too is now this book. While the 'in a nutshell' books usually assume some experience, they also usually provide a good introduction to a language. Ive never looked at that book, but if its anything like the wiki I would say its a great place to start with php. A dummy is different to different people. To a php expert, a dummy is someone who doesn't understand complex php OOD and functions, handling big arrays, and doing complex mysql queries. Dummies is just a funny way to describe someone who needs a starter. An easy-to-read starter with pictures, lots of examples, that doesn't feel like a school textbook when reading. The authors usually incorporate a little humor and stuff to keep the reader from getting bored.
  19. Which value are you trying to change to done? Do you mean a value inserted into the database? Or just the words "done" printed on the screen? EDIT. I see where your mistake might be. Your first query is inserting a row into the database. But your second query is assigning the current values to every row in the database. You need to have it like "UPDATE table set blahblahblah WHERE something='$id' " or whatever. you have to have a WHERE in an UPDATE or else it'll apply the values to everything. And if that still doesnt set whatever you want to done, then you need to halt the script before it gets to the query, and echo out all the values you're trying to insert into a row.
  20. I'm pretty sure when you use the $_FILE variable, you have to have " enctype="multipart/form-data" " in the form tag. Give that a try. Otherwise, the file upload script looks to be correct
  21. What's repetitive about the first "what i dont want" example? Like, what are you trying to filter out?
  22. test to make sure the mysql query is getting what it needs to. If you have phpmyadmin, run that querty, and insert As where you have $string2 and see if any rows pop up. It could be the format of your data in the database. Fake edit: I see your problem. You're saying "Look in my database where the column name is 'song' and find 'As'. And then when you're trying to get the variable after mysql_fetch_array, you're telling it "give me the array variable where the column name is 'Song'. That capital S and lowercase s is the difference maker. Check which case your 'song' column is and make them identical
  23. Yes, books are great for when you're on the john, somewhere like school where you might not be near internet(or a computer), something to read while waiting for something(I read mind while waiting at the laundromat), or if you're about to go to bed and don't care to stare into a screen. As I said in another thread, get php/mysql for dummies(provided you have little or no experience with php/mysql). I guarantee you won't regret it. It gives just enough to get you going so that more advanced techniques aren't as hard to grasp.
  24. you're right... php is free. But is a dedicated server(or vps?)? helllll no. I'm not comparing php to a $3,000 guitar. I'm comparing paying $50-$100 a month on something you don't even know to a $3,000 guitar. Of course the money is much more, but you're still paying a high, an unnecessary, premium just to learn something. Lesson learned: buy cheap webspace, learn php in an out, then when you have a succesfull idea for a website(or perhaps can afford to shell out more money), THEN you upgrade the server. How about you learn how to ride a bike before you learn how to build one(weird example, but you should get the idea)
  25. ok,i kinda get you.. so how should i go about calling the function? so what I said didn't make sense? Are you new to php? ya new to php,very weak basics...sry but need to get it done fast due to dateline.. ok so basically you have functions, which make it easier to process code(without having to retype the code if you use it on more than one page). Just defining a function in itself does nothing. You have to execute it. Like you may have FF, but you can't browse the web unless you open it up. So if you create a function and tell what it does, that's awesome. Thing is, you have to execute it for it to do anything. In your original code, you have some code, then you have a function defined(everything between the curly braces). And then after that you have the end of the file. It won't execute that function unless... AFTER(i'm not sure if it matters if it's before or after the function, it matters in C, thats all I know) the function is define, you execute it. So once you make function(), you have to go to the place you want to execute it and go function(); otherwise, you can write as many functions you want in any page but they won't do a single thing until they're executed. So go to your original code(what you first posted). and AFTER the closing curly brace of the function, type this on the following line, exactly: updateDetails(); and it should do what you need(provided the function doesn't have errors in it) QUICK EDIT: you need to do addslashes() on all your $_POST variables. Just inserting them as is will cause an error to occur if you insert something with a single quote.
×
×
  • 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.