Can I use Space as string delimiter?

Hello everyone thanks for your answer i wanna ask something, how i can remove start marker “>” and end marker “<”, in my code bottom. i want input any world without marker.

void recvWithStartEndMarkers() {
  static boolean recvInProgress = false;
  static byte ndx = 0;
  char startMarker = '>';
  char endMarker = '<';
  char rc;

  while (Serial.available() > 0 && newData == false) {
    rc = Serial.read();

    if (recvInProgress == true) {
      if (rc != endMarker) {
        receivedChars[ndx] = rc;
        ndx++;
        if (ndx >= numChars) {
          ndx = numChars - 1;
        }
      }
      else {
        receivedChars[ndx] = '\0'; // terminate the string
        recvInProgress = false;
        ndx = 0;
        newData = true;
      }
    }

    else if (rc == startMarker) {
      recvInProgress = true;
    }
  }
}

and where( in what function) i can connect to PhpMyAdmin to check existing each word of my input??

if data exist will take data ID(at ID table on php my admin) to send feedback to arduino, is this project available to do with arduino and ethernet shield?

Here Is my Full Code

// Example 5 - Receive with start- and end-markers combined with parsing

const byte numChars = 32;
char receivedChars[numChars];
char tempChars[numChars];        // temporary array for use when parsing

// variables to hold the parsed data
char messageFromPC[numChars] = {0};


boolean newData = false;

//============

void setup() {
  Serial.begin(9600);
  Serial.println("This demo expects 3 pieces of data - text, an integer and a floating point value");
  Serial.println("Enter data in this style <HelloWorld, 12, 24.7>  ");
  Serial.println();
}

//============

void loop() {
  recvWithStartEndMarkers();
  if (newData == true) {
    strcpy(tempChars, receivedChars);
    // this temporary copy is necessary to protect the original data
    //   because strtok() used in parseData() replaces the commas with \0
    parseData();
    showParsedData();
    newData = false;
  }
}

//============

void recvWithStartEndMarkers() {
  static boolean recvInProgress = false;
  static byte ndx = 0;
  char startMarker = '>';
  char endMarker = '<';
  char rc;

  while (Serial.available() > 0 && newData == false) {
    rc = Serial.read();

    if (recvInProgress == true) {
      if (rc != endMarker) {
        receivedChars[ndx] = rc;
        ndx++;
        if (ndx >= numChars) {
          ndx = numChars - 1;
        }
      }
      else {
        receivedChars[ndx] = '\0'; // terminate the string
        recvInProgress = false;
        ndx = 0;
        newData = true;
      }
    }

    else if (rc == startMarker) {
      recvInProgress = true;
    }
  }
}

//============

void parseData() {      // split the data into its parts

  char * strtokIndx; // this is used by strtok() as an index

  strtokIndx = strtok(tempChars, ",");     // get the first part - the string
  strcpy(messageFromPC, strtokIndx); // copy it to messageFromPC
  char * pch;
  pch = strtok (messageFromPC, " ");
  while (pch != NULL) {
    Serial.print("Pch :");
    Serial.println(pch);
    delay(1000);
    pch = strtok (NULL, " ");
    Serial.write(3);
  }

}

//============

void showParsedData() {
}

You took the wrong example; use the one with only endmarker and setup serial monitor to send a newline (because you will have to tell the Arduino when the data is complete).

And you do not connect to PhpMyAdmin in that function. You connect to 'it' in your parseData.

Now there is more than likely another problem; you do not connect to PhpMyAdmin at all, you connect to the MySql database. This is outside my area of expertise; I'm aware there is a library for that.

And as far as I know you need network connectivity to use it; do you have network connectivity from the Arduino to the database server? If not, you will need to write an application for the computer that
1)
receives a word from the Arduino via the serial port
2)
connects to the database, checks if the word exists and gives the appropriate response.

And if you have to go this way, it brings the big question what you actually want to achieve; why is there an Arduino involved if you simply type words in an application (Serial Monitor) and send that to a database? You could just as well write an application for your computer that directly communicates with the MySql Server. So I suspect that there is something that you have not told us about your project.

Thanks for your reply.
Oke I will explain what project Im doing Now.

sorry for too much stupid question.

First, i need to connect my smartphone to arduino via bluettooth then send sentence ( this is why i need serial read and parsing each data to word )

my progress now i can separate each serial input to pch variable, and do parsing to each word.

My progress Now

Inside PHPMyAdmin
i have 2 table at database,

| |
| word | Number

Up
Down
Left
Right
Fast
High
cross

i need to check inside database, each word input from my smartphone.
for example i send “>up down fast cross<”. then strtok will do his job to sepratae each word to

Up
Down
Fast
Cross

And what i need to do now?? if data available at database ( i think i need php script like input data from dth sensor) database will send Number for feedback data to arduino.

can this project done by using ethernet shield and arduino?
thank you so much for your answer.

My next question, How we can put pch variable inside if condition?

for example

if (pch == "up"){
Serial.write(1);

}

anyone have reference for learning this condition?

strcmp() will compare strings.

See http://en.cppreference.com/w/cpp/string/byte

thanks for your answer morgan, i will learn bout that and try that . i will update my works ASAP