Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
What is the datatype of the field?
-
Read the stickied topic about this!
-
[SOLVED] Parse error: parse error, unexpected T_IF in ****** on line 21
Jessica replied to tarun's topic in PHP Coding Help
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. -
No, you wouldn't need to.
-
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";
-
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.
-
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.
-
[SOLVED] "error in your SQL syntax" uh... uh? help?
Jessica replied to Pasa Mike's topic in PHP Coding Help
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. -
you'll also have to do ini_set('display_errors', 1);
-
$IMXMAIL->bcc = "<kellyg@******.co.uk>, <rob@******.co.uk>";
-
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
-
you have to send them as a query string, like you do with a URL. url.com/foo.php?foo=bar&bar=foo
-
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.
-
Doesn't Paypal accept the fields as GET also?
-
You need to do client side validation as WELL as javascript, but what you want is javascript.
-
Then do like on AskMetaFilter, where the poster picks the best answers. They can pick more than one.
-
"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.
-
<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. }
-
[SOLVED] Need to reformat standard numerical date (Y-m-d) to words
Jessica replied to vynsane's topic in PHP Coding Help
Good job -
Using PHP with InnerHTML in External JavaScript
Jessica replied to phpBeginner06's topic in PHP Coding Help
It works for me on my server. Can you post an actual link to it, and what it does wrong? -
No, you just store it like any variable.
-
Using PHP with InnerHTML in External JavaScript
Jessica replied to phpBeginner06's topic in PHP Coding Help
Can you link to the actual page, so I can use my debugging tools for ya -
[SOLVED] Need to reformat standard numerical date (Y-m-d) to words
Jessica replied to vynsane's topic in PHP Coding Help
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 -
Using PHP with InnerHTML in External JavaScript
Jessica replied to phpBeginner06's topic in PHP Coding Help
Where do you call contactme()? Is that file in the same folder?