HELP PLEESE, screen is code!!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
help is needed
Forum Newbie
Posts: 2
Joined: Sun Jun 25, 2006 11:46 pm

HELP PLEESE, screen is code!!!

Post by help is needed »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


When i try to view a php document, i get stuck with seeing a screen of

Code: Select all

sql_query($sql)) ) { message_die(GENERAL_ERROR, 'Error in obtaining userdata', '', __LINE__, __FILE__, $sql); } if( $row = $db->sql_fetchrow($result) ) { if( $row['user_level'] != ADMIN && $board_config['board_disable'] ) { redirect(append_sid("index.$phpEx", true)); } else { // If the last login is more than x minutes ago, then reset the login tries/time if ($row['user_last_login_try'] && $board_config['login_reset_time'] && $row['user_last_login_try'] < (time() - ($board_config['login_reset_time'] * 60))) { $db->sql_query('UPDATE ' . USERS_TABLE . ' SET user_login_tries = 0, user_last_login_try = 0 WHERE user_id = ' . $row['user_id']); $row['user_last_login_try'] = $row['user_login_tries'] = 0; } // Check to see if user is allowed to login again... if his tries are exceeded if
and i can't fix it. This is beginning of source code for a phpbb forum and hosted by http://www.100webspace.com/ and they support php and mysql. All help is appreciated!
PS - i'm pretty good with html and am using dreamweaver
[url=http://forums.devnetwork.net/viewtopic.php?t=30037]Forum Rules[/url] Section 1.1 wrote:2. Use descriptive subjects when you start a new thread. Vague titles such as "Help!", "Why?" are misleading and keep you from receiving an answer to your question.

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
tecktalkcm0391
DevNet Resident
Posts: 1030
Joined: Fri May 26, 2006 9:25 am
Location: Florida

Post by tecktalkcm0391 »

Is that your whole code?

Cause I don't see the <?php and ?>
help is needed
Forum Newbie
Posts: 2
Joined: Sun Jun 25, 2006 11:46 pm

nope

Post by help is needed »

that isn't my whole code but i got it figured out in the first few minutes anyway. thanks for tryin

just wondering, what do i put into my database for the forum, which columns, rows, etc
im stuck at that now and am a noob php coder so go easy plz. im 15 and had just gotten the hang on html before starting php
Post Reply