|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Php mysql n wap problem
i have writen a code to get the post from a db of guestbook..
when i can the file it say Code:
Wrong mime-type, I got text/html, but I want text/vnd.wap.wml. This error occurs when you request a page that is not a WAP page, or when the webserver isn't set up correctly for hosting WAP sites but i have used the same wml header previously... heres my code... PHP Code:
u can see the file at http://www.gnuer.com/hmv/wap/post.php?id=1 and when i call the file thru web browser it says Code:
Parse error: syntax error, unexpected T_WHILE in /home/phpmysql/public_html/hmv/wap/post.php on line 20 and the 20th line is PHP Code:
__________________
![]()
|
|
#2
|
||||
|
||||
|
header("Content-Type: text/vnd.wap.wml\n\n");
headers usually require two newlines after the header type, try that, and see if that sorts it out
__________________
--Ax without exception, there is no rule ... The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones ![]() 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0 Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems. -- Jamie Zawinski Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ... |
|
#3
|
|||
|
|||
|
Quote:
i didnt work... wht should i do |
|
#4
|
|||||
|
|||||
|
The error is because you are churning out the page without blocks.
The output code is xml Code:
You need <p> tags around the actual content.
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#5
|
|||
|
|||
|
Quote: hey thanx.... u have seent the code after i have corrected the prob,,.. i had forgotten a ";" n thanx for reminding the <p> ![]() |
|
#6
|
|||
|
|||
|
I've tried to implement similar code to display a directory for emergency contacts. But I keep receiving an error (502). Due to forum rules, the doc type was modified to remove url.
Any help would be greatly appreciated. PHP Code:
|
|
#7
|
||||
|