WAP Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreWAP Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old November 7th, 2004, 10:11 AM
jpveneracion jpveneracion is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Posts: 2 jpveneracion User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Can anyone help me please?

Hi!

Good Day guys!

i have these two wml pages...
browse.php and cat.php

BROWSE.PHP

<?php
include "include/wml.inc";
include "config.php";
?>
<card id="index" title="Select Type">
<p align="center" mode="wrap">Welcome
<br/>
<br/>
</p>
<p align="left" mode="wrap">Type of building:
<select name="category">
<?php
$sql = "SELECT DISTINCT category FROM $tname ORDER BY category ASC";
$query = mysql_db_query($dname,$sql,$my_conn);
?>
<?php
while ($row = mysql_fetch_array($query))
{
echo "<option value=\"$row[category]\">";
echo ucwords($row[category]);
echo "</option>";
}
?>
</select>
<anchor>Submit
<go href="cat.php" method="get">
<postfield name="category" value="$category"/>
</go>
</anchor>
</p>
</card>
</wml>

CAT.PHP

<?php
include "include/wml.inc";
include "config.php";
?>
<?php
$cat_search = $category;
?>
<card id="index" title="Select Type">
<p align="center" mode="wrap">Welcome
<br/>
<br/>
Type of building: <b><?php echo ucwords($cat_search) ?></b>
</p>
<p align="left" mode="wrap">Choose a building
<select name="building">
<?php
$sql = "SELECT * FROM $tname WHERE category = '$cat_search' ORDER BY category ASC";
$query = mysql_db_query($dname,$sql,$my_conn);
?>
<?php
while ($row = mysql_fetch_array($query))
{
echo "<option value=\"$row[place]\">";
echo ucwords(strtolower($row[place]));
echo "</option>";
}
?>
</select>
<anchor>Submit
<go href="build.php" method="get">
<postfield name="building" value="$building"/>
</go>
</anchor>
</p>
</card>
</wml>

Problem is CAT.PHP errors with "NO GATEWAY REPLY"
i only created CAT.PHP with editing the SQL for BROWSE.PHP and some formatting...
tnx guys!

Reply With Quote
  #2  
Old November 7th, 2004, 01:06 PM
jabba_29's Avatar
jabba_29 jabba_29 is offline
Back in HEL
Dev Shed God 8th Plane (8500 - 8999 posts)
 
Join Date: Feb 2002
Location: Finland
Posts: 8,670 jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)jabba_29 User rank is General 10th Grade (Above 100000 Reputation Level)  Folding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner FolderFolding Points: 57777 Folding Title: Beginner Folder
Time spent in forums: 3 Months 3 Weeks 4 Days 6 h 4 m 26 sec
Reputation Power: 1618
Send a message via ICQ to jabba_29 Send a message via AIM to jabba_29 Send a message via MSN to jabba_29 Send a message via Yahoo to jabba_29 Send a message via Google Talk to jabba_29 Send a message via Skype to jabba_29
Facebook
Mulitple questions , number one probably most important.

Does include/wml.inc contain wml header information?
Is it definately included as requried?
Do you have error reporting on - if you do your pages will fail as your php is badly written - reporting syntax would maybe cause the page not to be formed correctly.
Is
Code:
mode="wrap"
legit syntax - it may well be, just never seen it before. If it isn't, then page will fail.

Also please read the sticky on how to post a question. Use [php.]tags (no .), and use useful subject lines - many people would ignore a subject line like yours.
__________________
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.

__________________

Last edited by jabba_29 : November 7th, 2004 at 01:09 PM. Reason: typos

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreWAP Programming > Can anyone help me please?


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway