User Profile

Collapse

Profile Sidebar

Collapse
Rocky86
Rocky86
Last Activity: Jan 1 '08, 04:15 PM
Joined: Jun 26 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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!!
    See more | Go to post

  • Rocky86
    replied to How to check if the user input is a string?
    in PHP
    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]...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to check if the user input is a string?
    in PHP
    sort of checking if the user input is string like eg: letter
    to check if what the user input is a alphapert...
    See more | Go to post

    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]."&";...
    See more | Go to post

    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...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • Rocky86
    started a topic How to check if the user input is a string?
    in PHP

    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
    See more | Go to post

  • I understand I will do it thx...
    See more | Go to post

    Leave a comment:


  • 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]."&";...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to use this logic to apply to my code?
    in PHP
    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] ...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to use this logic to apply to my code?
    in PHP
    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");
    My PHP:
    [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...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to use this logic to apply to my code?
    in PHP
    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 ....
    See more | Go to post

    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...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to use this logic to apply to my code?
    in PHP
    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 error
    See more | Go to post

    Leave 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?...
    See more | Go to post

    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...
    See more | Go to post

    Leave a comment:


  • Rocky86
    replied to How to use this logic to apply to my code?
    in PHP
    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?...
    See more | Go to post

    Leave a comment:


  • Rocky86
    started a topic Help in displaying all the record instead of 1
    in PHP

    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...
    See more | Go to post
No activity results to display
Show More
Working...