Database Forum
Web Database Register Members List Calendar FAQ

 
Go Back   Database Forum > Database Management > PHP & MySQL
User Name
Password

Reply
 
Thread Tools Search this Thread Display Modes
Default Read strings from MySQL
11-10-2008, 08:53 AM #1  

susapra
Junior Member

 
Status: Offline
Posts: 3
Join Date: Sep 2008

So, in my latest project I have decided to save all of the visible text a "strings" in a table in my database. The database structure is as follows:

Code:
+----+------+-----------------------------+------------+
| id | name | default_value               | cust_value |
+----+------+-----------------------------+------------+
|  1 | str1 | This is a demo string       |            |
|  2 | str2 | This is another demo string |            |
+----+------+-----------------------------+------------+
So I got the contents of the table called 'strings' like this:


PHP Code:
$strings = mysql_query("SELECT * FROM `strings`;");
but after that I am unsure as to how I would go about placeing these strings in my code.

Can anyone help?
thanks

______________________
Keyword Search mens colognes
Reply With Quote

Default
12-14-2008, 07:16 AM #2  

Lana
Senior Member

 
Status: Offline
Posts: 110
Join Date: Oct 2007

Quote:
I am unsure as to how I would go about placeing these strings in my code
What code
Reply With Quote

Default
01-12-2009, 08:21 AM #3  

tiff
Junior Member

 
Status: Offline
Posts: 1
Join Date: Jan 2009

, we need more of your code
Reply With Quote

Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 01:51 AM.

Powered by: vBulletin Version 3.7.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Database Forums

Help support our forum assistants and product development ->

go to top go to top