Check before insert in Database



hello everyone,

I would to know how to check the value I am getting from an HTML form.

Let's put it that way, I need to get a string and I would like to make sure
this is a string and not a number for instance.

What kind of test could I use to check that?

//here is the line where I get the value

$variable = $_POST['value'];

The point is I have to insert the data in an Oracle database. And I would
like to test it before sending the data to the database.

Any advice, please?


.



Relevant Pages

  • Re: Building Very Large Records
    ... > I am working on a routine to pull information from an Oracle database and ... as it creates a new copy of the string each time. ... I don't know enough about Oracle SQL yet, could I format the ... 'Takes a ctypes object and returns it as a string' ...
    (comp.lang.python)
  • Inserting foreign/special characters from a database
    ... I'm extracting a record set from an oracle database but I am getting the ... In both instances it was when trying to insert a string which contained ... understand is to define the character set to use, however, I can't find ...
    (microsoft.public.excel.programming)
  • Re: Float to String
    ... The problem in that case was that values stored in an Oracle database ... For binary numbers having n bits following the binary point, n digits ... Subject: Float to String ...
    (comp.lang.ada)
  • Re: ADO Recordset
    ... I plugged the string into the ODBC Connect String ... query, I'm now getting a "function sequence error". ... There has got to be something wrong with the Microsoft ODBC for Oracle ... This code gets me into the Oracle database (the number of records returned ...
    (microsoft.public.access.modulesdaovba)
  • Re: invoked from within
    ... >> I'm connecting to ORACLE database, get some values in one string and ... >whole string ... One general principle operating here is that I reserve REs ...
    (comp.lang.tcl)