Please help regarding method/function sign up validation with mysql jdbc.

HI guys,
I am have been fixing this problem for days, hope that someone could help me find the bug on my code.
I have 3 files:
1.WithAuth.java - for database jdbc mysql connection
2.WithAuthMet.java - method that will read any variables that will be passed to it. this method is waiting for two variables, a and b. a for userName and b for userPassword.
3.WithAuthTest.java - the testing class, this is where i declare my sample control data to test the database connection and query.
here's the actual codes:
WithAuth.java
package com.Auth;
public class WithAuth {
    static String userName = "root";
    static String userPassword = "";
    static String databaseUrl = "jdbc:mysql://localhost:3306/javatowebservice";
    static String userQuery = "select * from userlogin";
}WithAuthMet.java
- this is where the error is and where I messed up.
package com.Auth;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class WithAuthMet extends WithAuth {
    public void connect(String a, String b)throws Exception{       
        //try {
            Class.forName ("com.mysql.jdbc.Driver").newInstance ();               
            Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
            Statement stat = conn.createStatement();   
            String query = userQuery;
            ResultSet result = stat.executeQuery(query);
            System.out.println("Result(s): ");
              while (result.next ()){
                  int i = result.getInt("userId");
                  String name=result.getString("userName");
                  String password=result.getString("userPassword");
                      //System.out.println("test data:"+a);
                  if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
                            System.out.println("User is Valid");
                        else{
                            System.out.println("You are not a Valid User");
                            System.out.println("test data:"+name);
                            System.out.println("test data:"+password);
                            System.out.println("test data:"+a);
                            System.out.println("test data:"+b);
                  //conn.close();
               // }catch(Exception e){
                //System.out.println("Exception is ;"+e);
                //System.out.println("Exception is ;");
//                if(a.equals(name.("userName"))
//                    && password.equals(password.equals("userPassword"))){
//                    System.out.println("User is Valid");
//                else{
//                    System.out.println("You are not a Valid User");
} WithAuthTest.java
package com.Auth;
public class WithAuthTest extends WithAuthMet{
    public static void main(String[] args) throws Exception{
        WithAuthMet CTD = new WithAuthMet();   
        String a = "dan";
        String b = "password";
        //CTD.connect(String name,String password);
        CTD.connect(a, b);
        //return connect;
}please help.

yakultyakultyakult wrote:
WithAuthMet.java
- this is where the error is and where I messed up.
package com.Auth;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
public class WithAuthMet extends WithAuth {
public void connect(String a, String b)throws Exception{       
//try {
Class.forName ("com.mysql.jdbc.Driver").newInstance ();               
Connection conn = DriverManager.getConnection (databaseUrl, userName, userPassword);
Statement stat = conn.createStatement();   
String query = userQuery;
ResultSet result = stat.executeQuery(query);
System.out.println("Result(s): ");
while (result.next ()){
int i = result.getInt("userId");
String name=result.getString("userName");
String password=result.getString("userPassword");
//System.out.println("test data:"+a);
if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){
System.out.println("User is Valid");
else{
System.out.println("You are not a Valid User");
System.out.println("test data:"+name);
System.out.println("test data:"+password);
System.out.println("test data:"+a);
System.out.println("test data:"+b);
//conn.close();
// }catch(Exception e){
//System.out.println("Exception is ;"+e);
//System.out.println("Exception is ;");
//                if(a.equals(name.("userName"))
//                    && password.equals(password.equals("userPassword"))){
//                    System.out.println("User is Valid");
//                else{
//                    System.out.println("You are not a Valid User");
This is one line that is wrong
                   if(a.equals(name.equals("userName"))&& b.equals(password.equals("userPassword"))){You have 'a' and 'b which are Strings
and you are comparing them [using equals()] with the boolean return from another set of equals() invocations.
String equals boolean will always be false (well, maybe not if the String is "TRUE" or "FALSE" - and you would need some more boilerplate to make that work).

Similar Messages

  • Please help regarding the function module 'MESSAGE_TEXT_BUILD'

    hii i am a new employee.
    can anyone please explain wat the following code is doing
    IF sy-subrc = 0.
    l_mstring = t100-text.
    IF l_mstring CS '&1'.
    REPLACE '&1' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&2' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&3' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&4' WITH wa_messtab-msgv4 INTO l_mstring.
    ELSE.
    REPLACE '&' WITH wa_messtab-msgv1 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv2 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv3 INTO l_mstring.
    REPLACE '&' WITH wa_messtab-msgv4 INTO l_mstring.
    ENDIF.
    CONDENSE l_mstring.
    i am supposed to use a function module for it
    i have got a function module.
    but i am not understanding wat fields shd i put in it
    the function module is
    CALL FUNCTION <b>'MESSAGE_TEXT_BUILD'</b>
    EXPORTING
    msgid =
    msgnr =
    MSGV1 = ' '
    MSGV2 = ' '
    MSGV3 = ' '
    MSGV4 = ' '
    IMPORTING
    MESSAGE_TEXT_OUTPUT =
    can anyone tell wat shd i put on msgid ,msgnr and other fields.
    [email protected]

    Hello,
    Guid for unique identification assigned list
    It think it will generate the one unique key in the program.
    DATA: con_log_guid   TYPE  guid_16.
    CALL FUNCTION 'GUID_CREATE'
      IMPORTING
        ev_guid_16 = con_log_guid.
    WRITE con_log_guid .
    Try this example it is generating a 16number id.

  • Please help , regarding fair usage policy....subsc...

    Hello Dear Moderator,
    My skype id is pavank77
    I had accidnetaly exceeded the unlimited india calling subscription on 1 april 2012 and my call would not connect, The subscription is still not active on 2 April 2012....According to skype as far as i searched in the forum it should be active today....
    Please Help regarding this matter. Skype calling is important to me as i am far away from home.
    I would highly appreciate your help.
    Warm Regards,
    Pavan

    I am sorry to hear that your account has been suspended due to Fair Usage Policy.
    For Skype to fully assist you with this concern, we can go through the email verification form by just clicking this link below:
    https://support.microsoft.com/skype/hostpage.aspx?​language=en&locale=EN-US&oaspworkflow=start_1.0.0.​...
    1. Once you are on that page, choose Account and Password.
    2. Choose Blocked Accounts.
    3. Click on Next.
    4. Click on Email Support.
    5. Kindly fill out the form.
    **Please make sure to enter as much information as you can for them to collate enough data to authenticate your identity. It is also important to include the Service Request number together with the issue <SR# - ISSUE>, on the subject field. Once the form is completed it will be forwarded to a special team who will handle your case. You will then receive a follow-up email and will be assisted further in resolving the issue/processing your request.
    If one of my replies has adequately addressed your issue, please click on the “Accept as Solution” button. If you found a post useful then please "Give Kudos" at the bottom of my post, so that this information can benefit others.

  • I'm battling to change my primary iCloud account on my mac, please help? I want to replace it with my secondary account by can't find a way to do this?

    I'm battling to change my primary iCloud account on my mac, please help? I want to replace it with my secondary account by can't find a way to do this? Tony

    System Preferences/iCloud - log out and then log in with your other ID.
    https://discussions.apple.com/thread/3390335?tstart=0
    Set up iCloud
    Set up iCloud (2)

  • Please Help :( iMac 20" refuses to boot up with anymore than 1gb ram?

    Please Help iMac 20" refuses to boot up with anymore than 1gb ram?  It was fine 4 days ago and had been working with a 1gb stick in one slot and a 2gb stick, which had replaced the orignal 1gb stick that I got it with, in the other and it had shown 3gb of ram and was working just fine with that since November?  It went to sleep briefly 4 days ago while I was waiting on a customer and I came back to try to wake it up and it never would forcing me to hard boot it.  When I did that it would only go to a black screen with a solid white light on the power indicator.  Over and over again and same thing.  I read and tried every suggestion I could possibly find in this and a few other mac forums to no avail.
    I finally after reading about RAM issues etc.  I decided to power off and take out the ram sticks and try them one at a time in each slot.  So I took out the 2gb stick and did the SMC reset and it would boot up and work just fine with the 1 gb of ram.  So then I went through the same process with the 2gb stick and it would not boot up only go to a black screen with white solid light again (NOT flashing).  So then I tried the other original 1gb I had replaced with the 2gb and it worked just find like the other 1gb.  So then I tried just 1gb stick in the other ram slot (back facing one) and with just the 1gb strip it booted up and worked fine.  Tried it with the other 1gb stick and once again that one too worked just fine.  So I determined it wasn't the slot itself I thought?  I then tried the 2gb in the back slot and it would not boot only go to the black screen white solid light deal like before.  So I thought well ok it's obviously the 2gb ram must have somehow went bad (even though I have only had it since November) and I thought well I will just use the (2) 1gb sticks in each slot and then that will at least give me 2gb because only 1gb really ***** LOL.  So I proceeded to go through the same shut down process installed both sticks (I always push them to I feel them click and my fingers have a nice indention on them) reset the SMC and turned the power one and.... It would only go to the black screen with white solid light on power indicator????  I went through the same above process at least 3 times and again today a few times and I can't figure it out and I tried to search and search and I couldn't find anything like what I am experiencing.....What happened?  Please help this slow Imac is killing me.  It will work with 1gb ram only nothing more?  Here are the specifics of my Imac.
    It is a 20" Late 2006 Intel Core 2 Duo 2.16 ATI Radeon X1600 256 MB graphics card and Ram with now only 1gb (did have 3gb) and I am running OSX Lion 10.7.5
    When I go to system report and go under memory it shows this:
    BANK 0/DIMM0:
      Size:          1 GB
      Type:          DDR2 SDRAM
      Speed:          667 MHz
      Status:          OK
      Manufacturer:          0xCE00000000000000
      Part Number:          0x4D342037305432393533435A332D43453620
    BANK 1/DIMM1:
      Size:          Empty
      Type:          Empty
      Speed:          Empty
      Status:          Empty
      Manufacturer:          Empty
      Part Number:          Empty
      Serial Number:          Empty
    Any help I can get would really be appreciated.  Thanks in advance
    ALSO...Here is also a pic of the system log right before it happened.  It even changed the date to 07/2014????
    I have some more if needed??????????????? 
    <Personal Information Edited by Host>

    The Memtest just completed and came back like this?  It only test the single 1gb chip because anything more in this computer it won't go past the black screen with solid white power light. 
    Memtest version 4.22 (64-bit)
    Copyright (C) 2004 Charles Cazabon
    Copyright (C) 2004-2008 Tony Scaminaci (Macintosh port)
    Licensed under the GNU General Public License version 2 only
    NOTE: No command-line arguments have been specified
    Using defaults: Test all available memory, one test pass, no logfile
    Mac OS X 10.7.5 (11G63) running in multiuser mode
    Memory Page Size: 4096
    System has 2 Intel core(s) with SSE
    Requested memory: 250MB (263086080 bytes)
    Available memory: 250MB (263086080 bytes)
    Allocated memory: 250MB (263086080 bytes) at local address 0x0000000101000000
    Attempting memory lock... locked successfully
    Partitioning memory into 2 comparison buffers...
    Buffer A: 125MB (131543040 bytes) starts at local address 0x0000000101000000
    Buffer B: 125MB (131543040 bytes) starts at local address 0x0000000108d73000
    Running 1 test sequence... (CTRL-C to quit)
    Test sequence 1 of 1:
    Running tests on full 250MB region...
      Stuck Address       : ok             
      Linear PRN          : ok             
    Running comparison tests using 125MB buffers...
      Random Value        : ok
      Compare XOR         : ok
      Compare SUB         : ok
      Compare MUL         : ok
      Compare DIV         : ok
      Compare OR          : ok
      Compare AND         : ok
      Sequential Increment: ok
      Solid Bits          : ok             
      Block Sequential    : ok                
      Checkerboard        : ok             
      Bit Spread          : ok               
      Bit Flip            : ok               
      Walking Ones        : ok               
      Walking Zeroes      : ok               
    All tests passed!  Execution time: 362 seconds.
    logout
    [Process completed]
    Seems Okay I guess?

  • I am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    i am a OS10.7.4 user. yesterday i bought a Lacie external hard disk but error message appear said " You cant open the applicant LaCie setup assistant because PowerPC applicants are no longer support". please help me how to connect my mac with Lacie??

    You do not need the Setup Assistant; in fact, you do not need any software on an external hard drive. I have two LaCie's; I erased the drive as soon as I plugged it in. You will need to format it anyway because most hard drives come Windows formatted. So, if you only want to use it with the Mac, highlight it in Disk Utility and choose Mac OS Extended (Journaled) as the format and the GUID Partition scheme under Options. While doing that, it will erase the drive (and get rid of the LaCie software) - once finished, your drive is ready to use for Time Machine or any other backup plans you have for it.

  • Emergency! Please Help. I have an iPhone 4 with all my pictures from the vacation on it and I plugged into my computer and it sync'ed to my ipod.  all of my pictures are gone.  How do I get my pictures back?

    Emergency! Please Help. I have an iPhone 4 with all my pictures from the vacation on it and I plugged into my computer and it sync'ed to my ipod.  all of my pictures are gone.  How do I get my pictures back?

    If all you did was sync your phone, and if you haven't synced again since this happened, you can restore your phone from the backup that was created at the beginning of the sync process (camera roll photos are included in the backup).  If you have synced again since this happened this backup has already been overwritten and your photos are lost.  Also, if you restored your phone from the backup of your iPod, rather than just synced, then your  photos are lost too.
    If you have an intact backup that contains these photos, do the following:
    Without connecting your phone, open iTunes on your computer and go to Preferences.  On the Devices tab check "Prevent...from syncing automatically".
    Connect your phone to your computer, right-click on the name of your phone when it appears in iTunes on the left sidebar and select Restore from Backup, choose your most recent backup to restore from.
    When complete, you can go back to iTunes>Preferences>Devices and re-enable automatic syncing.

  • Hello. I have a problem. I live in Armenia, now I am in Guangzho (China) and i have lost my Iphone 4S. Tryed to find in icloud, no result. it seems the finder has switched off or deleted my apple ID. Please help me. Can I do anything with IMEI code?

    Hello. I have a problem. I live in Armenia, now I am in Guangzho (China) and i have lost my Iphone 4S. Tryed to find in icloud, no result. it seems the finder has switched off or deleted my apple ID. Please help me. Can I do anything with IMEI code?

    IMEI number is no use.
    If you can't track it using find my phone.
    Then report the lost to the local authority and your phone carrier.
    change your  passwords.

  • Purchased iTunes alert tones intermittently working.Please help. I'm on iOS 8 with 6 plus phone.

    Purchased iTunes alert tones intermittently working. Initially they worked and now occasionally work. They are there and alert tone can be seen/heard and is set to it but keep hearing the standard message alert tone. Please help. I'm on iOS 8 with 6 plus phone. Thanks.

    It is working through your iPhone 6 through the Continuity feature. This allows any device that is logged in to your Apple ID and connected to the same WiFi network to make and receive calls through your iPhone. If this is not useful to you go to the settings for Facetime and turn off iPhone cellular calls.

  • Please Help regard function that will return values of each JComboBox items

    I'd like to create a function that will return values of each item on the JComboBox at a time when
    I click on each item of a comboBox. I had this following codes, but didn't work.
    Please help me !!!Please correct it... thanks a million
    String wp;
    String text;
    String A[] = {"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox ABC = new JComboBox();
    for (int i=0;i<A.length;i++) {
    ABC.addItem (A);
    text = Get_It(); //assigns each value of JComboBox's item to variable text when clicks at each item
    //of a comboBOx
    private String Get_It(){
    ABC.addActionListener(new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wp = (String)CBweapon.getSelectedItem() ;
    return wp;

    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class AlertFrame extends JFrame {
    String s_alert[] ={"WARNIGNS","CAUTIONS","NOTES"};
    JComboBox CBweapon;
    String wpText;
    public AlertFrame() {
    super("Alerts");
    Container contentPane = getContentPane();
    contentPane.setLayout(null);
    setSize(600,600);
    CBweapon = new JComboBox();
    for (int i=0;i<s_weapon.length;i++) {
    CBweapon.addItem (s_weapon);
    contentPane.add(CBweapon);
    CBweapon.setActionCommand("");
    //set position for components
    CBweapon.setBounds(370 + insets.left,295+ insets.top, 150,30);
    System.out.println(getit()); //calling getit() function
    //this function will be return a String of JcomboBOx value if click on each item of combobox
    private String getit(){
    CBweapon.addActionListener( new ActionListener (){
    public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    return wpText;
    public static void main(String args[]) {
    AlertFrame af = new AlertFrame();
    af.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    System.exit(0);
    **I have no errors on compile or run, but it didn't return a string value to System.out.println(getit());
    It maybe because of the "void" of public void actionPerformed(ActionEvent e){
    wpText = (String)CBweapon.getSelectedItem() ;
    Please help me

  • Please help me, boolean function

    Hello everyone, this is my first post in this forum. I have this function but I cant get it to work because I get this "missing return statement". Im desperate now, I cant figure how to fix it. Please help me.
    public static boolean es(String inst) {                              // Verificador de validez
              int ad=inst.indexOf("ADELANTE");
              int at=inst.indexOf("ATRAS");
              int iz=inst.indexOf("IZQUIERDA");
              int de=inst.indexOf("DERECHA");
              int bo=inst.indexOf("BORRAR");
              int ho=inst.indexOf("HOGAR");
              double numero;
              try {
                   if ((ad==0)&&(inst.charAt(8)==' ')) {
                        numero = Double.parseDouble(inst.substring(9));
                        if (numero>0)
                             return true;
                        else return false;
                   if ((at==0)&&(inst.charAt(5)==' ')) {
                        numero = Double.parseDouble(inst.substring(6));
                        if (numero>0)
                             return true;
                        else return false;
                   if ((iz==0)&&(inst.charAt(9)==' ')) {
                        numero = Double.parseDouble(inst.substring(10));
                        if ((numero>0)&&(numero<360))
                             return true;
                        else return false;
                   if ((de==0)&&(inst.charAt(7)==' ')) {
                        numero = Double.parseDouble(inst.substring(8));
                        if ((numero>0)&&(numero<360))
                             return true;
                        else return false;
                   if (bo==0) return true;
                   if (ho==0) return true;
                   else return false;
              catch (NumberFormatException ex) {
         }The objective of this function is to check if the user entered one of these words: "adelante", "atras", "izquierda" or "derecha" followed by a positive number. Thank you in advance for your help.

    you need to have a return statement at the very end of you method.
    here's a rewrite of what you provided...instead of a bunch of returns everywhere, i set a variable to return. i also put else if statements instead of if since you only want to see if one of the instances exist
    public static boolean es(String inst) {                              // Verificador de validez
              int ad=inst.indexOf("ADELANTE");
              int at=inst.indexOf("ATRAS");
              int iz=inst.indexOf("IZQUIERDA");
              int de=inst.indexOf("DERECHA");
              int bo=inst.indexOf("BORRAR");
              int ho=inst.indexOf("HOGAR");
              double numero;
              boolean answer = false;
              try {
                   if ((ad==0)&&(inst.charAt(8)==' ')) {
                        numero = Double.parseDouble(inst.substring(9));
                        if (numero>0)
                             answer = true;
                        else answer = false;
                   else if ((at==0)&&(inst.charAt(5)==' ')) {
                        numero = Double.parseDouble(inst.substring(6));
                        if (numero>0)
                             answer = true;
                        else answer = false;
                   else if ((iz==0)&&(inst.charAt(9)==' ')) {
                        numero = Double.parseDouble(inst.substring(10));
                        if ((numero>0)&&(numero<360))
                             answer = true;
                        else answer = false;
                   else if ((de==0)&&(inst.charAt(7)==' ')) {
                        numero = Double.parseDouble(inst.substring(8));
                        if ((numero>0)&&(numero<360))
                             answer = true;
                        else answer = false;
                   else if (bo==0) answer = true;
                   else if (ho==0) answer = true;
                   else answer = false;
              catch (NumberFormatException ex) {
    answer = false;
              return answer;
    Message was edited by:
    muzic

  • Please HELP!!! Signed Applet .. Printing Problem..

    Hi.. I wrote a signed applet that would send info to the client's printer.. I have it working in the appletviewer.. but when I try to send something throught the IE, it complains about missing java.awt.print package.. anyone had any problems with printing .. Please help..

    give more detail!

  • Please help regarding PLSQL coding standards

    Hi,
    Can you please send any document for PL/SQL coding standards,
    Please help.. I did nt find any good resources on net regarding..
    Pleease help me if any pdf regarding are exitst to my mail id
    [email protected]
    Thanks and Regards
    asp

    I did nt find any good resources on net regarding..Here is a list from the net for you to start with (courtesy of many of the fellow posters here in these forums), and there will be plenty more. Just need to search correctly.
    http://www.redhat.com/docs/manuals/waf/rhea-dg-waf-en-6.0/ap-sql-standards.html
    http://www.orafaq.com/faqplsql.htm
    http://www.williamrobertson.pwp.blueyonder.co.uk/documents/plsqlcodingstandards.html
    http://www.orafaq.com/node/48
    http://apex.oracle.com/pls/otn/f?p=2853:4:11598658413321972351::NO::P4_QA_ID:3262
    http://www.bbc.co.uk/guidelines/newmedia/technical/databases.shtml
    Message was edited by:
    Kamal Kishore
    Message was edited by:
    Kamal Kishore

  • Please help -- .options method not working in MAC IE 5.0

    Hi,
    My requirement is to dynamically populate a drop down box (combo box) in a JSP Page, using a javascript function, with some values. This happens on click of some button.
    I am using the below function to populate the drop down box. This runs fine in Windows IE, but in MAC, i get a javascript error saying " 'options' is not an object". Can anybody please tell me how to go about this? Is there any other way in which i could populate a drop down box? I need this to work in both Windows and MAC. Please help!
    Function used:
    // add an option item to the list
    function fnAddListItem(obj)
    optname = new Option("Sample","1",false,false);
    obj.options[obj.length] = optname;
    P.s: 'obj' here is my drop down box.
    eval("document.forms[0].drpSampleBox");
    Thanks in advance,
    -Santhi.

    Try using document.createElement("Option"); as shown below. It might help u
    var tblSpace = document.getElementById("drpSampleBox");
    var optionObjt = document.createElement("Option");
    optionObjt.text = "<DEFAULT>";
    optionObjt.value = "<DEFAULT>";
    tblSpace.add(optionObjt);
    for(i=0;i<array.length;i++)
         optionObjt = document.createElement("Option");
         optionObjt.text = array;
         optionObjt.value = array[i];
         tblSpace.add(optionObjt);

  • HELP!!! When I sign into FaceTime or imessage, when I sign in it makes me sign in again and again until it says that the password is incorrect!!!! I know it correct!!! Please help I can't sign in!!

    HELP!!! When I was using imessage on my phone it worked perfectly, but on my ipad, when I sign in it makes me write my password again and again until it says my password is incorrect!! Please help, I know my password is corrcect and I don't know what's going on with imessage.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Extra FaceTime IDs
    http://tinyurl.com/k683gr4
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Fix Can’t Sign Into FaceTime or iMessage iOS 7
    http://ipadtutr.com/fix-login-facetime-imessage-ios-7/
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    Send an iMessage as a Text Message Instead with a Quick Tap & Hold
    http://osxdaily.com/2012/11/18/send-imessage-as-text-message/
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

Maybe you are looking for