Jump to content

Jessica

Staff Alumni
  • Posts

    8,968
  • Joined

  • Last visited

  • Days Won

    41

Everything posted by Jessica

  1. Read the stickied topic about this!
  2. htmlentities($newstyle) is missing a ; (plus, it does nothing as you never assign the result to a variable. PHP copies variables unless they're passed by reference) When you get errors like those carefully inspect the lines around them.
  3. You use \ to escape a quote once you're already inside a string. So if your string starts with " you'd need a \ before any other " except the closing one. So try: $query_rs_addressOnly = "SELECT od_id, r_cat_id as Division, Company, r_First_Name as First, r_Last_Name as Last, r_Address as Address, Address2, r_City as City, r_State as State, concat('=\"', r_Zip, '\"') as Zip, r_Ordered_By as Ordered, dateline as Date FROM tbl_orderNEW WHERE Ship_Choice = 'CUSTOMER' ORDER BY od_id DESC";
  4. You add slashes when you are querying a database. If you are printing any user input out to the screen, you need to sanitize for possible JS/HTML/PHP.
  5. Daniel - I read that earlier, pretty funny. I agree with the digger's comments that we geeky girls are just not as uptight and we're more likely to actually be interested in sex. The problem is when you get the geeky guys who end up being so nerdy that they'd rather spend time with the computer than a girl. They're missing out on the geek-sex potential.
  6. Wayyyy too much code. We don't need your HTML. Use Code Tags! Do this: $Result1 = mysql_query($insertSQL, $dbc) or die('Query: '.$insertSQL.' - '.mysql_error()); So you can see exactly what your sql looks like. Post the result here. That will help explain where the problem lies.
  7. you'll also have to do ini_set('display_errors', 1);
  8. $IMXMAIL->bcc = "<kellyg@******.co.uk>, <rob@******.co.uk>";
  9. I have a hard time with this. I work from home and attend school, and so MWF I'm at school in the morning and then TR, I'm at school in the evening, so it's hard to keep a steady schedule. You just have to be aware of what you're doing. I found wearing a WATCH helped me a ton because now if I spend too much time goofing off I realize it and say to myself okay, you have a paper due tomorrow and it's 10pm, GO WRITE IT
  10. Well, I used the solution in the last post here: http://forum.java.sun.com/thread.jspa?threadID=709718&tstart=0 But then I had to change my compareTo method in the OtherClass from taking an Object and then casting, to taking only OtherClass objects.
  11. you have to send them as a query string, like you do with a URL. url.com/foo.php?foo=bar&bar=foo
  12. Code: import java.util.*; public class MyClass{ private Vector<OtherClass> stuff; public MyClass() { this.stuff = new Vector<OtherClass>(); } public Vector getStuff(){ Collections.sort(this.stuff); return this.stuff; } } I get the following error when I compile: Note: {file} uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Tool completed successfully If I remove the Collections.sort it doesn't give me the error.
  13. Doesn't Paypal accept the fields as GET also?
  14. You need to do client side validation as WELL as javascript, but what you want is javascript.
  15. Then do like on AskMetaFilter, where the poster picks the best answers. They can pick more than one.
  16. "Is this really neccessary? I only want to do the same as click on submit on a form and send/POST to the paypal link. The only difference is that my form fields are sent to PHP_self for checking - once checks are correct - the function should be the same post for to paypal" So at the end of the checking, use the header('Location'); command. "You should use javascript for form validation, no server load that way." You can't use ONLY client-side validation, you must have some server-side.
  17. <input type="checkbox" name="terms" value="1"> I agree <input type="checkbox" name="terms" value="1" CHECKED> I agree <-- prechecked if(isset($_POST['terms']) && $_POST['terms'] == 1){ //they agreed. }
  18. It works for me on my server. Can you post an actual link to it, and what it does wrong?
  19. No, you just store it like any variable.
  20. Can you link to the actual page, so I can use my debugging tools for ya
  21. If you read it and think about it for a while, you might notice that date() takes a TIMESTAMP as an argument, and strtotime takes a STRING and returns a TIMESTAMP. You have a STRING you need to format into ANOTHER STRING. Let's try some logic. You have two functions offered to you which deal with string and timestamp conversion. Don't be a smartass, leave that up to the people giving the help :-P
  22. Where do you call contactme()? Is that file in the same folder?
×
×
  • 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.