Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 27-04-2004, 10:32 AM
therion's Avatar
Inspired Webmaster
 
Join Date: Oct 2003
Location: Shah Alam - Kuantan -Alor Setar
Posts: 105
Rep Power: 65
therion is on a distinguished road
Send a message via Yahoo to therion
Parse error

Aku dah install php, aku try buat satu simpel website ngan php untuk nak test balik php ni. Sebab aku baru pas format hd aku. Tetibe jer kluar error mcm ni.

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in c:\inetpub\wwwroot\madrasah\test\index.php on line 37

Apa maslahnya?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 27-04-2004, 12:31 PM
nurulmajdi's Avatar
Inspired Webmaster
 
Join Date: Feb 2004
Location: Klang Bandar Diraja
Posts: 160
Rep Power: 62
nurulmajdi is on a distinguished road
Send a message via Yahoo to nurulmajdi
inetpub? entah la sbb aku guna apache... ko guna webserver iis ke? aku rasa cam tak bleh jee.. cuba ko guna apache web server tp ko kena remove dulu exiting IIS ko tu... kang conflict salahkan aku plak... hehheh
__________________
To follow the path:
Look to the master,
Follow the master,
Walk with the master,
See through the master,
Become the master.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 27-04-2004, 02:49 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 118
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
your code may contain error(s), perhaps you forgot a small semicolon (;) or close bracket ()).

Please show us the code, then we can debug for you.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 28-04-2004, 03:43 PM
therion's Avatar
Inspired Webmaster
 
Join Date: Oct 2003
Location: Shah Alam - Kuantan -Alor Setar
Posts: 105
Rep Power: 65
therion is on a distinguished road
Send a message via Yahoo to therion
Quote:
<table width="519" border="0" height="392" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<?
if($page =="aqidah")
{
include ("aqidah.php");
}
if($page=="elearning")
{
include ("elearning.php");
}
else if($page=="")
{
include ("main.php");
}

?>
</td>
</tr>
</table>
Ok, dah guna apache. Coding yang bermasalah adalah coding diatas. Dah tak keluar error yang sebelum ni. Tapi bila user click elearning sepatutnya kat index.php akan include elearning.php . Tapi apa yang berlaku, bila user click elearning. Dekat index.php still include main.php jugak. Ada kemungkinan masalah dengan php.ini atau httpd.conf tak?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 28-04-2004, 04:03 PM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 118
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
it should be elseif not else if
refer: http://my.php.net/manual/en/control-...res.elseif.php
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 28-04-2004, 07:32 PM
therion's Avatar
Inspired Webmaster
 
Join Date: Oct 2003
Location: Shah Alam - Kuantan -Alor Setar
Posts: 105
Rep Power: 65
therion is on a distinguished road
Send a message via Yahoo to therion
still the some, i do change else if to elseif. But the problem is there it stand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 28-04-2004, 09:44 PM
Novice Webmaster
 
Join Date: Apr 2004
Location: Miri, Sarawak
Posts: 93
Rep Power: 58
GeminiGeek is on a distinguished road
Send a message via MSN to GeminiGeek Send a message via Skype™ to GeminiGeek
<?php
if($page =="aqidah")
{
include ("aqidah.php");
}
if($page=="elearning")
{
include ("elearning.php");
}
else if($page=="")
{
include ("main.php");
};
?>

that might help.... hmmm......
__________________
Don't Ask Me Why I Joined This Forum
GeminiGeek's Online Journal
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 28-04-2004, 11:04 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
Make sure $page refers to something, for example $page = $_GET['page'];

Try (as lcf said):
PHP Code:
<table width="519" border="0" height="392" cellspacing="0" cellpadding="0">
<tr>
<td valign="top">
<?
if($page =="aqidah")
{
   include (
"aqidah.php");
}
elseif(
$page=="elearning")
{
   include (
"elearning.php");
}
else
{
   include (
"main.php");
}

?>
</td>
</tr>
</table>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 29-04-2004, 09:21 AM
therion's Avatar
Inspired Webmaster
 
Join Date: Oct 2003
Location: Shah Alam - Kuantan -Alor Setar
Posts: 105
Rep Power: 65
therion is on a distinguished road
Send a message via Yahoo to therion
thanks sufyan, $page = $_GET['page']; <--- working.

thanks to you to lcf. Terimkasih semua la.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 29-04-2004, 09:35 AM
lcf's Avatar
lcf lcf is offline
Pro-Blogger
 
Join Date: Feb 2003
Location: Kluang, Johor
Posts: 2,376
Rep Power: 118
lcf will become famous soon enough
Send a message via ICQ to lcf Send a message via MSN to lcf Send a message via Yahoo to lcf
np. I was assume your other code in page is correct.
__________________
LiewCF | Malaysia Bloggers Forum
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 29-04-2004, 04:19 PM
Senior Webmaster
 
Join Date: Oct 2001
Location: Melbourne, AU
Posts: 456
Rep Power: 97
sufyan is on a distinguished road
no prob
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12 (permalink)  
Old 13-05-2004, 01:15 AM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
$_GET[VAR] utk php yg latest lah kalau tak kene guna full env
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13 (permalink)  
Old 16-05-2004, 04:53 PM
therion's Avatar
Inspired Webmaster
 
Join Date: Oct 2003
Location: Shah Alam - Kuantan -Alor Setar
Posts: 105
Rep Power: 65
therion is on a distinguished road
Send a message via Yahoo to therion
hymns, so. Kalau ada input text name=nama dari page submit.php. That mean

$_GET['nama']

is it right. Pening la php yg baru ni. Dah lama tak guna php. Nak insert dalam db. Tapi value tak masuk.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14 (permalink)  
Old 17-05-2004, 04:20 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
nop!

submit method = POST
so $_POST[var]

__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15 (permalink)  
Old 17-05-2004, 04:31 PM
nurulmajdi's Avatar
Inspired Webmaster
 
Join Date: Feb 2004
Location: Klang Bandar Diraja
Posts: 160
Rep Power: 62
nurulmajdi is on a distinguished road
Send a message via Yahoo to nurulmajdi
then kalau post by url baru la guna $_GET[var]...
__________________
To follow the path:
Look to the master,
Follow the master,
Walk with the master,
See through the master,
Become the master.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Internal Server Error - ASP error ladyheart2612 Website Programming 0 21-07-2005 09:22 AM
lot of error prozone Website Programming 2 19-07-2005 02:39 PM
PHP Error Helps ! teNtiOn Website Programming 12 28-06-2004 10:12 PM
Help-error hyllda Website Programming 18 21-10-2003 12:32 PM
how to make function that automatically parse url full time kille Website Programming 6 08-11-2002 05:59 PM


All times are GMT +8. The time now is 01:27 PM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.