Type: Posts; User:
Those characters are part of a UTF-8 character set. To set the default character set via PHP, include the following line at the top of your page:
That link is now bookmarked! Thank you for the thorough explanation and class example. I really appreciate it.
Thanks for the explanation, NogDog!
Why does it cast 'x' to an integer (resulting in true) instead of casting 0 to a string (resulting in false)? For example, ('x'=='y')...
Is it possible to replace ".$CFG->db_name." with a static database name and see if the issue persists?
If it does, is there a new error message?
If there is no error with a...
Thank you for your reply. I understand the shorthand.
My question, though, was why does 0=='x' evaluate to TRUE?
Maybe I'm mis-interpreting the original question, but in case anyone else is reading this thread and interprets it the way I did...
If you have a url like the one given:...
At the moment, I'm the only one posting in this forum anyways so I'm not trying to bump this thread...but I discovered something about my question above that might be of interest in helping to answer...
I cut and pasted your code and it doesn't throw the error for me. It says "An email has been successfully sent!"
For me, an 'unexpected T_STRING' error often means that I'm missing a semi-colon...
Don't forget to add session_start(); to the top of this script. Otherwise, I'm not even sure how you're able to access any of the session variables.
For clarity, could you include selectorder.php...
You might receive better answers if you could include more detail in your question (i.e. what information, code, etc. you already have).
If you have a database table set up...something with a...
I think you could use PHP to dynamically insert the JS code you need.
Here's what I would do...
<td id="que" colspan="2">
<?php echo $question; ?>
Just thinking aloud...and these might not be the best solutions for your application but here it goes...
In our software, we give users the option to receive email notices for various things. ...
I have no idea why these scripts echo "ex" instead of "zero". Seems straight forward but it's got me stumped. Any ideas?
Thanks for confirming and for the example. That's what ended up doing (for a little over 2000 query strings. fun!)
Thanks again for your help.
OK. PHP.net has a post ( http://us3.php.net/manual/en/book.pdo.php#69304 ) that says a table name cannot be a bound parameter.
While that answer only appears to be in a user post, I cannot seem...
I'm not sure if I'm missing something but does the following do it?
$query = "select * from totals ORDER BY RAINFALL DESC";
I'm not fantastic with database queries myself (I have a post up...
There are 2 sides to this:
1. The user interface
2. The database/back-end
PHP is a back-end/server-side language. In simple terms, it means that the PHP code is run at the server and the server...
I have this simple PDO query that's just not working:
$q=$dbh->prepare("SELECT :pKey FROM :myTable");
yes, it does. I was just about to post that same answer. That method will work well, actually.
Thanks for the help.
hmm. is there an alternative? The reason being is that I have the class for the div defined on its own because I use it outside of the myID element as well (it's a style for a 'button').
I searched "current page css" in a popular search engine and found this: http://hicksdesign.co.uk/journal/highlighting-current-page-with-css
It seems to do what you're looking for.
I have a stylesheet with something like the follwing:
It does exactly what i need it to do...
Ah! Thanks for your help bionoid.
I had something nearly identical to that:
&$arr = $arr[$key];
(which didn't work) instead of
$arr = &$arr[$key];
That makes sense and will get the job...
Thanks for the response bionoid.
Your second example is what I am looking to do. The trouble is that I don't know how many levels there will be in the array or what the keys will be. So I need...
Still struggling with this...here's another way of asking the question:
If I have
$keys=array('a','ab','abc'); How can I tell if $arr['a']['ab]['abc'] exists if the keys are dynamic?