Jessica
Staff Alumni-
Posts
8,968 -
Joined
-
Last visited
-
Days Won
41
Everything posted by Jessica
-
You have $Lid=$_POST['Lid']; and you're asking how you would get the posted value of Cid as well? ..... Did you try anything yet? Regardless they'll be the same value. var LocationString = 'Lid='+ $(this).val(); var CityString = 'Cid='+ $(this).val(); .
-
Fail to input dataColumn count doesn't match value count at row 1
Jessica replied to Taku's topic in PHP Coding Help
I was going to ask that, but if it were undefined it should trigger the error, printing out the SQL, making it obvious. -
Fail to input dataColumn count doesn't match value count at row 1
Jessica replied to Taku's topic in PHP Coding Help
Define not working. Did you get the error? -
Does the function return an array which you then put into print_r or does the function actually call print_r?
-
multiple emails in a textarea and seperating them
Jessica replied to brown2005's topic in PHP Coding Help
Well for one thing you didn't attach a photo. I'm confused how you have so many posts on here and have to ask such a poorly worded question? But anyway. Google php explode. That's the only thing I can recommend with the limited specifications. -
Only thing left to do is mark is solved, which I just did
-
Fail to input dataColumn count doesn't match value count at row 1
Jessica replied to Taku's topic in PHP Coding Help
I think you guys need to quote some strings, unless you're actually trying to use column names. which I don't think you can do in an IN clause... -
Isn't 10 still beta???
-
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
And use ONE query. Not three. -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
But your code does look better. Don't use backticks or quotes on integers. -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
Google isn't broken for me. I google mysql in and get great tutorials. If you want to actually write an entire application you need to learn the skills to learn. -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
And did you look up using IN in a MYSQL query? -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
Did you try looking up implode in the manual yet? That was quick By using IN in your query you can run only 1 query. You don't need to run an update for each child separately. -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
Well if you want to write an application, it's time to learn. Arrays are very useful and basic part of programming. If you've never used a function look it up and learn how. Showing us one include statement is useless. This forum is for help with code you write. We don't write it for you, you don't learn that way. -
A. Percentage is not the same as a fraction. B. It's a bit easier to go the other way.
-
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
Well you already have the checkboxes right? So at the top of your page you need to check if your submit button has been pushed. But first you have to give it a name. In fact all of your form elements need names. The checkboxes should be something like name="children[$cid]". Then you can use run a MySQL UPDATE using IN() and php's implode. -
Check Boxes in a Mysql Loop, transforming into $_POST Data
Jessica replied to parodyband's topic in PHP Coding Help
Is there a question? If not, I can move this to critiques. -
Try checking for MySQL errors.
-
It's not hard to avoid the refresh problem - when done processing, use header to send them back to the same page. Just like if you use a separate page. ...
-
QQ!!! Yeah, darn those people who want you to actually do some work before you get their time for free. I'll fix it for you right now, my consultant fee is $100/hr, min 2 hours.
-
Well you never try to run the query. mysql_query Awwww.
-
Google "data normalization". You need to store your data differently, as you've discovered the way you're doing it causes problems as soon as you want to actually use the data.