Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
T_CONSTANT_ENCAPSED_STRING error
Old 08-10-2004, 06:45 PM T_CONSTANT_ENCAPSED_STRING error
Junior Talker

Posts: 3
Trades: 0
Hi, having trouble with this section of supersurf script:

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING

on "THIS LINE"



<?
require 'require.inc.php';
if (@$adminpass) {
mysql_query("INSERT INTO $user_table (username, realname, email, password, verified, activationcode, type, points, joindate) values ('admin','Administrator', '$contact_email','$adminpass', 'y', $acode, 'admin', 9999, ".time().")");

THIS LINE die "Admin account should have been created with username 'admin'. Log in to test."
)
?>
<form action=install.php method=post><input type=text name=adminpass value='password'><input type=submit value='Create admin account with this password'></form>



I think it may just be a ; missing but i cant figure it.

If anyone can help i'd appreciate it

cheers

derek
oneworld is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 08-10-2004, 06:50 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
I think it may be the fact that you open your if statement properly with a { but close it with a )...It would be a good idea to put the ; in there too though.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 08-10-2004, 07:52 PM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
This is what winky's saying;

PHP Code:
<?
require 'require.inc.php';
if (@
$adminpass) {
mysql_query("INSERT INTO $user_table (username, realname, email, password, verified, activationcode, type, points, joindate) values ('admin','Administrator', '$contact_email','$adminpass', 'y', $acode, 'admin', 9999, ".time().")");

die(
"Admin account should have been created with username 'admin'. Log in to test.");
}
?>
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources,
Please login or register to view this content. Registration is FREE
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Old 08-10-2004, 08:01 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
Was I not clear enough?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
Republikin is offline
Reply With Quote
View Public Profile
 
Old 08-11-2004, 11:50 AM
Kyrnt's Avatar
The Post-Mod Years

Posts: 2,536
Location: Western Maryland
Trades: 0
LOL.....
__________________
—Kyrnt
Kyrnt is offline
Reply With Quote
View Public Profile Visit Kyrnt's homepage!
 
Old 08-11-2004, 01:25 PM
webwoRRks's Avatar
Ultra Talker

Posts: 426
Location: I hope so
Trades: 0
no
__________________
Theres 10 types of people; those who understand binary, and those who don't.
webmaster and webdeveloper resources,
Please login or register to view this content. Registration is FREE
webwoRRks is offline
Reply With Quote
View Public Profile Visit webwoRRks's homepage!
 
Reply     « Reply to T_CONSTANT_ENCAPSED_STRING error
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.16521 seconds with 12 queries