Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/session.php on line 1007: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781

Strict Standards: Non-static method utf_normalizer::nfc() should not be called statically in /www/htdocs/w006661d/anddev/includes/utf/utf_tools.php on line 1781
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4362: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4364: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4365: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4366: Cannot modify header information - headers already sent by (output started at /includes/utf/utf_tools.php:1781)
anddev.org • View topic - Best Way to Hold Data

Best Way to Hold Data

Put your problem here if it does not fit any of the other categories.

Best Way to Hold Data

Postby bluestunt » Sat Mar 24, 2012 8:49 pm

In an app I am making I have a table that stores texts. Each row holds a question and options (text), when the user selects one of the options - there are columns for each option that directs the program to a different row in the table to show a new question and the process repeats.

Would it be best to set up a large, constant multi-dimensional array or to use SQL or maybe a text file to store the table?

Thanks
bluestunt
Freshman
Freshman
 
Posts: 2
Joined: Sun Mar 11, 2012 5:03 am

Top

Re: Best Way to Hold Data

Postby vandzi » Mon Mar 26, 2012 7:02 am

If it's only static text and you don't need edit, delete, add new text I would choose array in resource files. It's easier to create and handle
vandzi
Junior Developer
Junior Developer
 
Posts: 20
Joined: Fri Jun 11, 2010 11:31 am
Location: Slovakia

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 8 guests