User Profile

Collapse

Profile Sidebar

Collapse
sclarkstone
sclarkstone
Last Activity: Oct 29 '08, 11:42 AM
Joined: Jun 24 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • just tried it, im getting the same error on that line
    See more | Go to post

    Leave a comment:


  • Parse error: syntax error, unexpected T_STRING, expecting ':' or ';'

    Im getting this error;
    Parse error: syntax error, unexpected T_STRING, expecting ':' or ';'
    with this line;

    [HTML]header ('postcodesearc h.php?e=nw&pcod e=',[$origPostCode]);[/HTML]

    I cant find whats wrong, can anyone help?
    See more | Go to post

  • sclarkstone
    replied to ASP to PHP
    in PHP
    Just tried it, same error on the same line.
    See more | Go to post

    Leave a comment:


  • sclarkstone
    replied to ASP to PHP
    in PHP
    That sorted it, thanks. now im getting Parse error: syntax error, unexpected T_STRING on line 21.
    See more | Go to post

    Leave a comment:


  • sclarkstone
    replied to ASP to PHP
    in PHP
    I just tried it and it is still giving the same error.
    See more | Go to post

    Leave a comment:


  • sclarkstone
    replied to ASP to PHP
    in PHP
    Ive made a few amends but still not working it gives the error Parse error: syntax error, unexpected '!' from this line:
    [HTML]if ($origPostCode ! == ""){ //we've come from the postcode search page[/HTML]

    i need the in there though because it is supposed to say is not equal to nothing.

    [HTML]mysql_select_db ($database_wpol conn, $wpolconn);
    $query_rs_pcode = "SELECT npt_code, dis_name FROM...
    See more | Go to post

    Leave a comment:


  • sclarkstone
    replied to ASP to PHP
    in PHP
    Yes i have tried it and unfortunatly it doesnt work.
    See more | Go to post

    Leave a comment:


  • sclarkstone
    replied to ASP to PHP
    in PHP
    Sorry, i was hoping someone could translate it and then i could compare it to my attempt. here is my attempt, would you be able to take a look please?

    [HTML]mysql_select_db ($database_wpol conn, $wpolconn);
    $query_rs_pcode = "SELECT npt_code, dis_name FROM q_npt_pcodes ";
    $rs_pcode = mysql_query($qu ery_rs_pcode, $wpolconn) or die(mysql_error ());
    $row_rs_pcode = mysql_fetch_ass oc($rs_pcode);
    $totalRows_rs_p code...
    See more | Go to post

    Leave a comment:


  • sclarkstone
    started a topic ASP to PHP
    in PHP

    ASP to PHP

    Hi. i have this page in ASP that pulls an entered postcode and displays the apropriate details for that area and i need to translate it into PHP. can anyone help?
    Im using a MySQL database.thank you for any help that you can give, much appreciated.

    Function RemoveWhiteSpac e(strText) 'function to remove white spaces from post code
    Dim RegEx
    Set RegEx = New RegExp
    RegEx.Pattern = "\s+"
    ...
    See more | Go to post
No activity results to display
Show More
Working...