Jump to content

royal1664

New Members
  • Posts

    6
  • Joined

  • Last visited

royal1664's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Just the fact that they still send these stupid emails out, means that there are still some retards out there who fall for them!!
  2. Just received this email. Cannot wait to reply!!
  3. Hi, since learning PHP i've come across this and i'm a little confused. Was wondering if anyone could shed some light on it. I'm more than familiar with IF statements from C++. However i'm confused as to why you might use an ELSEIF... why does it not work like this (below)? IF(This is true) { do this } IF(this is true) { do this } IF(this is true) { do this } else { go home, you're drunk } I don't under stand why if you make the first IF statement every other IF statement has to be an ELSEIF. Many thanks, Royal1664
  4. Sorry, just wanted to say thanks for your replies on this. I've been going through reading (studying) it and it has been very helpful! Cheers!! Royal.
  5. Hi, i'm very new to this so please speak slowly here i my code... <?php $restult = NoReturn; $dbcon=mysqli_connect(*******,*********,*************,************); if (mysqli_connect_errno($con)) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $restult=$mysqli_query("SELECT 'COL 4' FROM TABLE 1 WHERE (COL 1 >= $clientIP) && (WHERE COL 2 <= $clientIP)"); echo $restult; ?> as you might be able to see, i have a database with column 1 as the from ip addresses and column 2 as the to ip addresses. column 4 has the country name that the range applies to. When i run this code on my server withing a .php file nothing comes back. can anyone point me in the right direction as to what i'm doing wrong? many thanks, royal1664
  6. Oh i also forgot to say that i also know c++ and some HTML. From what i've learnt so far PHP is very similar to c++.
  7. Hi everyone, so i guess this is where i come to say hello! I've been using CMS' for many years now but i thought it was about time i learnt how to actually write some PHP my self. sooo... here i am! I'm sure i'll have MANY questions so please bear with me. Many thanks, Royal
×
×
  • 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.