Jump to content

Reg: Type casting


jana

Recommended Posts

Hi to all,

i hav a prob. when i fetch the data from the table to the row. it shows upto to only 255 characters. and my db is mssql server 2000. but in my db field it has more than 255 chars. can anyone help me regarding this issue?
Link to comment
Share on other sites

i will explain my prob detailed. a string is fetched from the table from the database. the string will look like as follows.

IN:- 9:01AM <BR> IN:- 9:10AM <BR> OUT:9:45PM <BR> IN:-10:02 AM Like this and so on.........

i want the string splited and stored into two arrays as In[] and Out[];

every In's with the time should be stored in array variable In[] and Out's in Out[].

and my db is  mssql server 2000

i am fetching the row into a row variable as $row=msssql_fetch_row($result);

and the lenghty detailed field is $row[8];

$temp=$row[8];
$temp=explode('<BR>' $temp);

and thus $temp is an array having all in's and out's accordingly. and from here my trouble starts.

i don't know how to split in's and out's seperately.

can anybody help me.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.