User Profile
Collapse
-
Possible to make a Calender in PHP to be display on html?
Hi there any ppl know to how make a Calender in PHP script cause I am doing a project base on chalet booking and I want to create a calender in my project so user can see the calender is it possible in PHP if yes please teach me thx!! -
Is my code correct to check if the user input from actionscript is a alphapert? and return a error message to actionscript
[PHP]
$postalno=subst r($_GET["postal"],0,2);
if(ctype_alpha( $postalno)){
$report.="error "."="."Erro r text enter number"."&";
echo $report;
[/PHP]... -
sort of checking if the user input is string like eg: letter
to check if what the user input is a alphapert...Leave a comment:
-
Hey pbmods I manage to get the both the uid and uname to be display actionscripts by this php code I did:
[PHP]
$report = "&";
$counterx=0;
while($row=mysq l_fetch_assoc($ resultpostal)){
foreach($row as $col_value){
$temp[$counterx]=$col_value;
$counterx++;
}
$report.="uid". "=".$temp[1]."&";
$report.="uname "."=".$temp[0]."&";...Leave a comment:
-
Hey pbmods I noe the different between the if and while if just loop through 1 record while loop through all the record until that is no matching result but I try both using if and while it still return me the same thing...Leave a comment:
-
Hey volectricity I did alot of testing and I realize that it keep returning me the same value for both the uname and uid:
uid=Khali Signh&uname=Kha li Signh&
this is what I get what is wrong with it I don't know why the uid is displaying the same value as the uname when it should be displaying uid...Leave a comment:
-
How to check if the user input is a string?
Hi I want to know how do I check if the user input from actionscripts is a string when it is pass to php -
-
how come the uid is undefined value on the actionscripts? the uname is able to be display but the uid is undefinded I don't see any wrong with my code but I don't know why it return undefinded value?
[PHP]
$counterx=0;
if($row=mysql_f etch_array($res ultpostal)){
foreach($row as $col_value){
$temp[$counterx]=$col_value;
$counterx++;
}
$report.="uid". "=".$temp[0]."&";...Leave a comment:
-
I understand the mysql_fetch_arr ay is only able to fetch the first row but not the second or third and so on But I reallx want to know how to do that? able to fetch not just the first row but all the row that match the sql condition pls help...Leave a comment:
-
Just want to know is this the correct way to put in a variable in SQL statement?
[PHP]
$postalno=$_GET["postal"];
$resultpostal=m ysql_query("SEL ECT location.uname, location.uid FROM location,distri cts WHERE districts.distr ictno ='".$postalno." ' AND
location.lat BETWEEN districts.start lat AND districts.endla t AND location.lng BETWEEN districts.start lng AND districts.endln g");
[/PHP] ...Leave a comment:
-
No is not throught URL is through PHP
My actionscripts:
Code:postalOut.postal=assign.postal.text; var postalOut:LoadVars = new LoadVars(); postalOut.sendAndLoad(passingurl, postalIn, "POST");
[PHP]
$postalno=subst r($_POST['postal'],0,2);
$resultpostal=m ysql_query("SEL ECT location.uname, location.uid FROM location,distri cts WHERE districts.distr ictno...Leave a comment:
-
I want my code to be able to GET the postal from actionscript, the postal is a user input in actionscripts
My code is unable to GET the postal from the actionscripts
My code is suppoosed to get the postal number example 560894 and in PHP it will extact out the first 2 number which is 56 and store it inside a variable to compare it in the SQL statement and show the record that matches the 56 ....Leave a comment:
-
hey jx2 basically the code you post is returning all the record which not what I want to acheive for my case I need to compare the value and return the uname and uid of whoever that matches my sql condition right now my code is able to just return 1 record instead of all the record that matches the condition trying to make it display not just 1 but all the record that matches the sql condition...Leave a comment:
-
Hey pbmods that code you put is just returning the record that match my sql statement that all what is the solution to my problem plss help...Leave a comment:
-
I don't think I can use the isset() function because I am taking a pass value from the actionscript and the isset() only works with variables as passing anything else will result in a parse errorLeave a comment:
-
I did as you suggest it now return me nothing at all worse then just now this statement iszit to check if it return all the recordS?...Leave a comment:
-
Hey pbmods I did what you mention but it does not seen to work at all it just basically return me the value "3"
while($row=mysq l_fetch_array($ resultpostal)){
After I change back then it still return me one record but when I do a testing on the SQL statement it return me 2 record but in php it just return me 1...Leave a comment:
-
I use the GET postal is to get the input postal code by the user from actionscripts and use php to extact out the first 2 value you mean something is wrong with the way I get the postal from acitonscriptS?...Leave a comment:
-
Help in displaying all the record instead of 1
Hi ppl I need help with my php basically I manage to get my php to display the uname that matches the sql condition however it only return 1 record when there are 2 record that match the condition how do I make it display all record that matches the condition instead of displaying just one?
This is my code:
[PHP]
$resultpostal=m ysql_query("SEL ECT location.uname, location.uid FROM location,distri cts WHERE districts.distr ictno...
No activity results to display
Show More
Leave a comment: