Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

mssql/ntext

 
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
Jomes
Smarty Rookie


Joined: 09 Jun 2004
Posts: 7
Location: VissticjCity

PostPosted: Wed Jun 30, 2004 7:51 am    Post subject: mssql/ntext Reply with quote

How can I use a ntext value in SMarty?

Greetz Jomes
_________________
"Say 'what' again! Say 'what' again! I dare you! I double dare"
Back to top
View user's profile Send private message
mensi
Smarty n00b


Joined: 29 Jun 2004
Posts: 4
Location: Switzerland -> Zug

PostPosted: Wed Jun 30, 2004 11:24 am    Post subject: Reply with quote

your question should be: "How can I retrieve a ntext value from a MS SQL DB with php?"

I solved this by casting the ntext field to a varchar or text field...
_________________
kernel, n.: A part of an operating system that preserves the medieval traditions of sorcery and black art.
Back to top
View user's profile Send private message
Jomes
Smarty Rookie


Joined: 09 Jun 2004
Posts: 7
Location: VissticjCity

PostPosted: Wed Jun 30, 2004 2:38 pm    Post subject: Reply with quote

Thanx for converting my question.

Now there is another question left.
How do i insert a textfield in a ntext field.

At this moment it only inserts a part of the text.

Greetz Jomes
_________________
"Say 'what' again! Say 'what' again! I dare you! I double dare"
Back to top
View user's profile Send private message
mensi
Smarty n00b


Joined: 29 Jun 2004
Posts: 4
Location: Switzerland -> Zug

PostPosted: Wed Jun 30, 2004 5:18 pm    Post subject: Reply with quote

check out the comments for mssql functions @ php.net

I think I saw something about setting the max char limit there...
_________________
kernel, n.: A part of an operating system that preserves the medieval traditions of sorcery and black art.
Back to top
View user's profile Send private message
Jomes
Smarty Rookie


Joined: 09 Jun 2004
Posts: 7
Location: VissticjCity

PostPosted: Thu Jul 01, 2004 8:15 am    Post subject: Reply with quote

Thnx, I shall check it out.
_________________
"Say 'what' again! Say 'what' again! I dare you! I double dare"
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Smarty Development All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP