Welcome, Guest. Please Login or Register.
November 28, 2024, 01:42:13 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  English User Help  |  English Help  |  Why Wont This work « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Why Wont This work  (Read 470 times)
James Bone
Jr. Member
**
Posts: 62


Fly Baby........Fly

WWW
Why Wont This work
« on: September 24, 2003, 09:20:24 PM »
Reply with quote

YaBB SE Version: 1.5.4
PHP Version: 4.3.2
MySQL Version: 4.0.x
Server Platform: Windows
Link to Forum: community.quattix.net

Problem Description:
I'm tring to find out why this wont work:

<?
include("community/SSI.php");
$_SESSION['displayname'] = $GLOBALS['realname'];
echo "Welcome "$GLOBALS['realname']""; ?>


Thanks
James
Logged

[Unknown]
Global Moderator
YaBB God
*****
Posts: 7830


ICQ - 179721867unknownbrackets@hotmail.com WWW
Re:Why Wont This work
« Reply #1 on: September 25, 2003, 12:52:20 AM »
Reply with quote

echo "Welcome "$GLOBALS['realname']"";

Won't work.  You're "doubly quoting" the index.  It should be rither:

echo 'Welcome "', $GLOBALS['realname'], '"';

-[Unknown]
Logged
James Bone
Jr. Member
**
Posts: 62


Fly Baby........Fly

WWW
Re:Why Wont This work
« Reply #2 on: September 25, 2003, 07:19:43 AM »
Reply with quote

Did what unknown said and i got this:

QuoteFatal error: Cannot redeclare welcome() (previously declared in d:\users\quattix\community\SSI.php:116) in D:\Users\quattix\community\SSI.php on line 114


Any ideas?
Ta
James
« Last Edit: September 25, 2003, 07:20:01 AM by James Bone » Logged

James Bone
Jr. Member
**
Posts: 62


Fly Baby........Fly

WWW
Re:Why Wont This work
« Reply #3 on: September 25, 2003, 07:23:03 AM »
Reply with quote

Never mind, doh, i was calling ssi.php twice  ;D

James
Logged

Pages: [1] Reply Ignore Print 
YaBB SE Community  |  English User Help  |  English Help  |  Why Wont This work « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.165 seconds with 21 queries.