Jump to content

sc_84

Members
  • Posts

    13
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

sc_84's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. each user of a php application has thier own sub-domain, database and connection files. But they will all use the same php scripts. If any errors are found or scripts need updating then its going be a big job to upload the new set of scripts to every single sub-domian. Is it possible to just include all the scripts from one master directory, so all domains will be using the same set of scripts?
  2. just spotted another open { without a matching close tag on line 41 if($scip == 'yourip' && $scport == 'port' && $station_name == 'your_station_name'){ the parse error goes away if you close the one i have previously mentioned at the end of your original code and the new one so at the end of your original code add two new { close brackets if($sock_init != 'FALSE'){ if($dsp_connected == '1'){ include (online.php); } } } }
  3. just to be more specific its this bit: if($sock_init != 'FALSE'){ fputs($scp,"GET /7.html HTTP/1.0\r\nUser-Agent: SC Status (Mozilla Compatible)\r\n\r\n"); while(!feof($scp)) { $sc7 .= fgets($scp, 1024); } needs a }
  4. on line 58 theres an open { without a matching close } if($sock_init != 'FALSE'){
  5. solved this one by changing the " into its special entity. So i replaced " with " and it displays in text boxes fine.
  6. there are some errors with your php structure you need to add { } brackets to you if statements. Like this: <?php if ($_post["user"]!="") { echo "<p>Takk, kommentaren din har blitt sendt.</p>"; } else { echo " <p> Her kan du sende inn en kommentar til oss om du er fornøyd med servicen. <br /><form action='#' method='get'> <label for='name'>Brukernavn: </label> <input type='text' id='name' name='user' maxlength='32' size='14' /> <label for='text'>Kommentar: </label> <textarea rows='7' cols='12' maxlength='256'>Skriv her</textarea> <input type='submit' value='Send inn' /></form></p>"; } ?>
  7. Hi, Thought this was more of a html question than php. I have a form which allows users to enter the height (such as 5' 11"). This goes into the database as 5/' 11/" which is fine. Now when i display the date in a html input box again for editing i first strip the slashes and then echo the value in the text box. However the text box displays 5' 11 (misses off the speech mark). I assume this is because the speech mark is ending the input value="". So if I put 5" 1' the text box displays 5 (stops at speech mark), Is there any way to escape the speech mark so it prints out inside a text box?
  8. thanks for your replys. I suppose it is sort of a service we are selling, we arent going to give them access to code, we are going to be hosting the web application that they buy. They will have to log onto our servers to use the system.
  9. Hello, Sorry if this is the wrong place to post this. But we have built our own php web application and are planning to sell it as online software. The web application uses PHP, MySQL and PEAR:Calendar. My question is what steps do we need to take before we can legally sell it to people. Any help, advice or links with articles to read, much appreciated. Thanks
  10. LAST UPDATE: Just seen the problem the field wasnt an Integer field for some reason, its working now, so its becasue i was using the wrong field type
  11. Just an update if I add a 0 in front of the 9 digit number to make it 0946684800 (a 10 digit number) then it works. So it must be something to do with the fact im comparing a 9 digit number to a 10 digit number. Anyone come across this before ? adding a 0 infront is a bit of a hack i dont really want to do it this way, id prefer it to work properly?
  12. You could set the value to "All" then run a different query based on which radio buttion is checked for example: if($id == "All"){ $query = "SELECT * from Table"; } else { $query = "SELECT * from Table where id = '$id'; }
  13. Hello, I have a database which stores the time stamp of a particular record (the timestamp is made by php) so my db looks like this: TABLE payment_timestamp = 1261440000 I want to drag out all records which appear after 01 January 2000 (the time stamp for this is 946684800). So i run this query: SELECT * FROM accounts WHERE payment_timestamp > '946684800'; This returns an empty result set even though 1261440000 is larger than 946684800. The only thing I can find that as soon as the timestamp becomes the same amount of digits which is 10 it works. It only seems to not work when I compare a 9 digit number to a ten digit number (even though a ten digit number is greater than the 9 digit number obviously). Any help greatly appreciated Thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.