|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
Wml Mysql & Php
OK i am having difficulties with variables.
The first page i have is Code:
while ($row = mysql_fetch_array($result)) : $local=$row[Location]; echo "<a href='Bylocation2.php?location=" . $local . "'>" . $row['Location'] . "</a><br/>"; endwhile; Now, 1st problem is here i want to pass 2 values from that link, WML doesnt like & symbol. the $local is from the database. the next one is that the $local value passed from the database cant be passed again. no idea why. to get around this problem i have used txt files. i have 4 pages, on each page i get a new value which is selected from a database on the fourth page i want 3 values. hopefully this makes sence and hopefully someone can help jonesyp |
|
#2
|
||||
|
||||
|
& = &
__________________
Andy Moore << oh no it's got a blog..... Word Press WAP Plugin with Ad Mob Advertising revenue PHP developer deploying ringtones, mp3 downloads and realtones I'm a geek who's obsessed with stats and gadgets |
|
#3
|
||||
|
||||
|
When you get the the 2nd php file, what is the value of $local? $local has not been defined. you assigned the value of $local to $location. trying to pass $local again is passing an unassigned variable that has no value. however if you were to try and pass $location you would be passing a variable that actually has some data in it.
here's how i would write it: PHP Code:
that's may just be because i don't like messing w/ all that . stuff it confuses me. and then remember it's $location, not $local in the 2nd script |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > WAP Programming > Wml Mysql & Php |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|