$int = '100w';
$int += 0;
echo $int; // 100
echo gettype($int); // integer
Something I've picked up from a_bertrand
Type: Posts; User: Karlos94
$int = '100w';
$int += 0;
echo $int; // 100
echo gettype($int); // integer
Something I've picked up from a_bertrand
@Macintrash: I shall put this as simple as I can, using one function for all scenarios will not work, you need to filter/sanitize the information differently most of the time.
@Danny696: The only...
I guess you mean OOP vs. Procedural.
Making a CMS, I would personally use OOP with HMVC.
Maybe this quote could help!
Oh and maybe this as well.
Incorrect, your only checking the ip field, which is what I have done as well. My function does what you need.
Wouldn't something like this suffice for your needs?
// Untested..
function check_ip($id)
{
$q = mysql_query('SELECT `ip` FROM `userlogins` WHERE `ip`="'.$_SERVER['REMOTE_ADDR'].'"');
...
What about using a NATURAL JOIN if the columns are identical.
Since I have a lot a free time now, feel free to hit me up.
PHP
Including frameworks such as CodeIgniter and CakePHP
CSS
MySQL
XML
So people still don't believe he has been killed, despite the DNA match is 99.9% that it was in fact Osama Bin Laden.. Not to mention Al-Qaeda have indeed confirmed the death of it's figurehead.
...
Code hosted at http://github.com/ and version 1.0 released.
For the prreferences function, here is a quick one based off the MCCodes Lite version.
function pic_change()
{
if (isset($_POST['newpic']))
{
if (empty($_POST['newpic']))
{
echo '
I mean it isn't personal, but it is the same with other browsers! I mean Internet Explorer 9 and Opera 11 remind me of Chromium as well as Firefox 4. The only one that I can see that has stuck to the...
Gah, both are newbs, I mean c'mon.. Don't trust them never will bunch of losers.. ;)
Apart from that.. Congrats! <3
Just a few suggestions here:
Instead of SVN or along side use with SVN use GitHub and maybe BitBucket. (I'll happily host it on GitHub)
Drop PHP4 support, lets go with PHP5.3 so we can use...
Firefox feels to much like Chromium now, even more so when you look at comparing it to RockMelt.
@a_bertrand: Well it is all down to personal opinion really, and I for one love Ruby and how Rails operates. Also due to how easy it is to get a framework, I simply love it. I understand your view...
http://www.ruby-lang.org/images/logo.gif
I'm just wondering if anyone in this community knows Ruby, and if so to what extent?
I'm just wondering because it is a great, especially if you use...
<rant>
Why not help them to fix it instead of whining about it? Sorry, it's people like you who get on my nerves. Expect everything, get nothing and the moan about it!
In general that it the...
Removal of the V3 discussion board I mean it has been there for since May '10 as it only had four threads, for a start?
Sorry, I'be been away since Friday night and just got round to reading the latest comments!
All I can really say is thanks guys!
Does the McCode board really need all those child boards underneath them?
It's located at: http://v203.mccodes.com/staff_special.php?action=userlevel&level=1&ID=1 ;)
Quote taken from: http://gravatar.com/
Well, it's been a while since I was here at MWG, but anyway..
I was using the Gravatar API using procedual code (Eurgh, I know) earlier and I got bored of coding it that way. So, I decided to...
I agree with Dave, little did I know he was posting what I was basically going to post.. http://php.net/curl
@doublet; I have to disagree with you here, AJAX would just be an enhancement. Just...