|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Can't display in phone..
hai there..
i got this error(500:web service problem.please contact the system provider) when i try to display wap content using my phone(sony ericsson j230i-wml1.1,wml1.2,wml 1.3) but it can work very well in Openwave V7 simulator.. i' m using xampp server(php/wml/mysql) |
|
#2
|
||||
|
||||
|
Hi tea_ais,
Welcome to DS. I think we are going to need a bit more info. 500 errors usually mean configuration errors on the server side.... Have you validated your code? What content type are you sending the pages as? Have you got a URL? I know you are knew, but http:// your . domain . com will do ![]()
__________________
Cheers, Jamie # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure # Any form of employment is strictly prohibited ...... __________________ 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. __________________ |
|
#3
|
|||
|
|||
|
hai..yup i'm newbie..hehe..
ok this is detail:1500: could not connect to the server.. eem?? "configuration error in server"??..u mean need to setting apache server rite??? xtually i have setting MIME and httpd file.. (* i've setting index1.php as default page in httpd file..) or is it something wrong with d coding.. this is sample of my coding..(not index1.php file) < Code:
?php
// connect to mysql database
$lbwap = mysql_pconnect("localhost", "root","");
// select database
$db = mysql_select_db("lbwap");
ini_set('session.use_cookies', 0);
// Get session ID from GET/POST
if (isset($_REQUEST[ 'ses' ]))
session_id($_REQUEST[ 'ses' ]);
// Start session
session_name('lbwap_ses');
@session_start();
?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN"
"http;//(URL address blocked: See forum rules)/DTD/wml_1.1.xml">
<wml>
<card id="papar_berat" newcontext="true">
<?php
$mode = 'display';
if (is_numeric ($_GET['pid'])) {
$query = "SELECT * FROM cake,berat WHERE berat.CID = cake.CID AND berat.CID = {$_GET['pid']} ORDER BY berat_kek ASC ";
$result = mysql_query ($query);
$row = mysql_fetch_array ($result, MYSQL_ASSOC);
// Display a header.
echo "<div align=\"center\">
<p><b>{$row['kod']}</b> </p>
<a href=\"display_cake2.php\">{$row['nama_kek']}</a>
<br />{$row['penerangan']}
</div><br />";
// Get the image information and display the image.
if ($image = @getimagesize ("../uploads/{$row['image']}")) {
echo "<div align=\"center\"><img src=\"../uploads/{$row['image']}\" $image[3] alt=\"{$row['nama_kek']}\" />";
} else {
echo "<div align=\"center\">No image available.";
}
//display table
echo '<table border="1" width="100%" cellspacing="2" cellpadding="2" align="center">
<tr bgcolor="#FFFF00">
<td align="center" width="30%"><b><small>Berat</small></b></td>
<td align="center" width="30%"><b>Harga</b></td>
<td align="center" width="30%"><b>Tempah</b></td>
</tr>';
// Display each record.
$result = mysql_query ($query);
while ($row = mysql_fetch_array ($result, MYSQL_ASSOC)) {
echo " <tr>
<td align=\"center\">{$row['berat_kek']}</td>
<td align=\"center\">{$row['harga']}</td>
<td align=\"center\"><a href=\"p.php?tid={$row['BID']}\">TEMPAH</td>
</tr>\n";
} // End of while loop.
echo '</table>'; // Close the table.
?>
<anchor>
<small> MAIN MENU </small>
<go href="index1.php">
</go>
</anchor>
<anchor>
<small>KEMBALI </small>
<go href="papar_kek.php">
</go>
</anchor>
<?php
mysql_close(); // Close the database connection.
}
?>
</card>
</wml>
thank again for ur kindness.. ![]() |
|
#4
|
|||
|
|||
|
what are you using for a header?
[edited] I was looking at the top of the page..try this (at the top of the page) Code:
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
__________________
I'm so old...When I was born the Dead Sea was just sick... Last edited by tj_nt : February 26th, 2008 at 11:47 AM. |
|
#5
|
||||
|
||||
|
The URL you sent me in the mail was a local address -
you won't be able to access the site on your phone unless a) you are physically connected to the same network on your phone or b) you open up the site on a public IP address... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Can't display in phone.. |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|