User Profile

Collapse

Profile Sidebar

Collapse
whitep8
whitep8
Last Activity: Jul 29 '10, 08:12 AM
Joined: Oct 5 '09
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • i have just tried renaming xmlhttp to xmlhttp2 but it didnt work.

    i have made a few small changes in that the second call is called show, rather than showhint, just so i can ensure each one is different
    See more | Go to post

    Leave a comment:


  • How can I use ajax twice on one page to call different php pages

    Hi All,

    Im hoping somebody could help me with this. Ajax is not my strongest point.

    On a page I have a requirement to call 2 different php pages using ajax. this code works fine, but if i add another is seems to conflift and im insure how.

    the calls are in different areas of the page.

    Code:
    <html>
    <head>
    <script type="text/javascript">
    ...
    See more | Go to post

  • whitep8
    started a topic PHP JSON Google maps
    in PHP

    PHP JSON Google maps

    Hi All,

    Im attempting to get a return from google maps to display the lat and long of a postcode but its not outputting them, but it is if i convert it to a raw URL

    any help would be appreciated. Ive come to a dead end
    Code:
    <?php
    function get_lat_long($postcode) {
            #change to your local domain i.e. .com
    echo	$domain = "co.uk";
    echo "domain<br><br>";
    ...
    See more | Go to post

  • whitep8
    started a topic php mysql limits
    in PHP

    php mysql limits

    Hi All,

    Does mysql have a limit in size? If so what is it?

    Im currently using MyISAM which is suggesting 4gb

    Can this be increased? if so how?

    Many thanks

    Paul
    See more | Go to post

  • whitep8
    replied to php extracting xml
    in PHP
    Hi All,

    I think my solution lies with regex. Can anybody help me understand how to extract the order id?
    See more | Go to post

    Leave a comment:


  • whitep8
    started a topic php extracting xml
    in PHP

    php extracting xml

    Im using PHP to extract data from an XML response.

    for example:

    Code:
       
          <UserManageResult>
       
          <ErrorNumber>0</ErrorNumber>
       
          <ErrorMessage/>
       
          <guid>a806368a64ab4cd3a4fef3572e0f2276</guid>
       
          </UserManageResult>
    i would use this code to get the guid value. Which is working...
    See more | Go to post

  • whitep8
    replied to Looking for sample SOAP applications to test
    in PHP
    Even this example gives me a white screen.

    Did you do anything at all to get an output? i have soap activated on my system
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to Looking for sample SOAP applications to test
    in PHP
    Hi,

    Thanks for getting back to me. Ive had almost no responses at all regarding this. All of the online documentation delivers a white screen. Its not like usual PHP when at least you get an error message.
    See more | Go to post

    Leave a comment:


  • whitep8
    started a topic Looking for sample SOAP applications to test
    in PHP

    Looking for sample SOAP applications to test

    Can anybody show me a sample SOAP application that works? All the examples i've tried don't seem to work. Im certainly not new to PHP but soap is causing real pain.

    Ive got the nusoap.php file in the root and all file permissions are fine but EVERY SINGLE example fails to load. My server has SOAP activated and is definitly running PHP 5. Ive ran a whole load of tutorials and all i get is a white screen.
    See more | Go to post

  • whitep8
    started a topic counting rows with mysql and php
    in PHP

    counting rows with mysql and php

    Hi all,

    Im at a loss here. There are definitly a lot of emails repeated in the table, but it just wont echo out anything.

    all help is appreciated

    Code:
    <?php
    session_start();
    include "connect.php";
    		$name = $_SESSION['name'];
    		$email = $_SESSION['email'];
    		$nationality = $_SESSION['country'];
    $query = "SELECT * FROM tbl_beta WHERE email
    ...
    See more | Go to post

  • whitep8
    replied to Counting empty Cells in a row
    ive a feeling its line 27.... maybe need to have a new var in there
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to Counting empty Cells in a row
    Interesting, I didnt realise php did its own garbage collection?

    Ive made a test, incorporating your suggstions. not quite there yet. Hope you dont mind taking a look...

    Code:
    <?php
    session_start();
    include "confun.php";
    $query="SELECT * FROM tbl_dev_dilligence WHERE dev_id = 1";
    $result=mysql_query($query);
    $row = mysql_fetch_assoc($result); 
    
    $dev_contact_fname
    ...
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to Counting empty Cells in a row
    Hi,

    Thanks for the response.

    Whilst waiting for a response I came up with checking the string length of the items called:
    Code:
    if (strlen($dev_business_name) > 0) { $count ++; } else { $count; }
    Im fine with while loops, but this is a new one to me. From your suggestions, without testing as im home from work now I have this.......

    Code:
    <?php
    $arr = array($address, $telephone number,
    ...
    See more | Go to post

    Leave a comment:


  • whitep8
    started a topic Counting empty Cells in a row

    Counting empty Cells in a row

    Hi All,

    I want to count the number of empty cells in a returned row. Can somebody get me on my way?

    Regards
    See more | Go to post

  • whitep8
    replied to pagination problem
    in PHP
    i had a similar problem and the solution ended up being in my face

    pagination is easy to get the first selection, as you have proven. When you click the "next 20" it should include a GET value being posted back to itself for the next sets starting point.

    for for first 10 it would just include your search string, but when you click next an additional parameter would go into the url to say where it should start...
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to PHP PDO MYSQL problem
    in PHP
    Hi,

    I have finally managed to get it working!! Took a while and a lot of scrap paper.

    I was calling the url information in the wrong place. I moved it down to the form and then added two hidden elements that posted the variable to SELF then carried on as normal.

    Thank you very much for your patience and help with this
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to PHP PDO MYSQL problem
    in PHP
    Ok, so the session variable is fine as its global.

    Please could you help me with the syntax and how i could amend it?

    I appreciate your time
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to PHP PDO MYSQL problem
    in PHP
    sorry i didnt refresh, just seen them now.
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to PHP PDO MYSQL problem
    in PHP
    I have been into the database and set both values to allow NULL.

    So now my problem lies with the P variable not passing into the function.

    the url on the upload page looks like this....

    http://..................../index.php?p=1
    See more | Go to post

    Leave a comment:


  • whitep8
    replied to PHP PDO MYSQL problem
    in PHP
    This is the paradox i dont understand.

    On page load, i echo out the two values, 1 from session and 1 from get. The values exist.

    On form submit, the content of P nolonger shows. and it all happens on 1 page.

    I have 3 echo's. top, outside and inside. The outside and inside refer to the upload(). When isset occurs its losing that value.

    The screen output before selecting the file is:
    ...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...