Jump to content

jzdexta

Members
  • Posts

    19
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

jzdexta's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. The best way out is save the file in a folder and make an entry in the database this will ensure that even if you change servers there wont be a problem with this type of configuration.
  2. $password = md5($userName).":".md5($userPassword); This makes both username and password case sensitive
  3. Thanks a bunch!! Couldn't have made any step without your assistance
  4. Thanks at list now there's some constructive output This is the output i get array(9) { [0]=> object(stdClass)#2 (2) { ["value"]=> string(2) "12" ["id"]=> string(2) "24" } [1]=> object(stdClass)#3 (2) { ["value"]=> string(2) "23" ["id"]=> string(2) "16" } [2]=> object(stdClass)#4 (2) { ["value"]=> string(2) "34" ["id"]=> string(2) "11" } [3]=> object(stdClass)#5 (2) { ["value"]=> string(2) "45" ["id"]=> string(1) "5" } [4]=> object(stdClass)#6 (2) { ["value"]=> string(2) "56" ["id"]=> string(1) "4" } [5]=> object(stdClass)#7 (2) { ["value"]=> string(2) "67" ["id"]=> string(2) "13" } [6]=> object(stdClass)#8 (2) { ["value"]=> string(2) "78" ["id"]=> string(1) "2" } [7]=> object(stdClass)#9 (2) { ["value"]=> string(2) "89" ["id"]=> string(1) "1" } [8]=> object(stdClass)#10 (2) { ["value"]=> string(2) "90" ["id"]=> string(5) "nonAg" } } next question is, how do i get to access the individual object and there respective values??
  5. If i json_decode $_POST['consumption'] directly i get NULL The received value is [{\"value\": \"12\", \"id\": \"24\"}, {\"value\": \"23\", \"id\": \"16\"}, {\"value\": \"34\", \"id\": \"11\"}, {\"value\": \"45\", \"id\": \"5\"}, {\"value\": \"56\", \"id\": \"4\"}, {\"value\": \"67\", \"id\": \"13\"}, {\"value\": \"78\", \"id\": \"2\"}, {\"value\": \"89\", \"id\": \"1\"}, {\"value\": \"90\", \"id\": \"nonAg\"}] encoded with a javascript function (Prototype.js array#toJSON())
  6. <?php require_once('includes/mysql.lib.php'); $connObj = new connect(); $rxJson = $connObj->cleanVariable($_POST['consumption']);//mysql_real_escape_string -> htmlspecialchars -> stripslashes(var) //$rxJson = utf8_encode($rxJson); var_dump(json_decode($rxJson)); //$rxJson = json_decode($rxJson); //echo var_dump($rxJson); ?>
  7. Im using php 5.2.5. When I use your code with any form of dummy text it shows what i've typed, however, if i copy & paste the result of my "faulty" json it just display a blank line.
  8. Hi, Got this json data posted to a php form : [{"value": "12", "id": "24"}, {"value": "23", "id": "16"}, {"value": "34", "id": "11"}, {"value": "45", "id": "5"}, {"value": "56", "id": "4"}, {"value": "67", "id": "13"}, {"value": "78", "id": "2"}, {"value": "89", "id": "1"}, {"value": "90", "id": "nonAg"}] problem is when i decode this data i get a null value returned. Tried utf8-encoding before json_decode still getting null result. What could I be missing?? NB: Have validated the data on jsonlint dot com and it was valid. Regards -j
  9. Hi, I have a page(page1.php) which needs external values which are contained in another page(page2.php). page2.php is accessed from page1.php by opening a window all items selected in page2.php need to be posted to page1.php without loading page1.php in page2.php window. How do i achieve this? Kind regards - jd
  10. By the way most of the tutorials i have been going through have to receive a path upto the file extension question is how do i parse a path that looks like this: -> feeds.mysite.org/../../feedlink?format=xml which doesn't have a precise file and extension? Im just too confused already about this RSS issue... ???
  11. Thanks for the reply (koen), first part answered second part is, see the link will provide a whole page of information and thats not what im after. I would like the information put in a dynamically scrolling listbar which if i click on either of the links i now get the whole page on the exact information i've clicked on. Is this possible? if the answer is yes, how do i go about it?
  12. Hi, Im trying to connect specifically to - http://feeds.reuters.com/reuters/features/personalfinance which is an rss feed on reuters about personal finance, the problems is that the code i get is about video feeds and not text based. What i really want is to have a small window at the corner of the page to have live content scrolling upwards from the above listed feed but when i on any of the content it takes me to the above listed url. Question is how do i go about that? Your assistance will be highly appreciated.
  13. Thanx for the reply, I used WAMP5_1.7.2 downloaded from sourcefodge (hope thats the right spelling) which has openssl files in both apache2\conf and php in some folder (atleast i can see openssl.cnf). I was wondering if it is possible from phpinfo() to know if ssl is active or not. If it is not active how do i make it active?
  14. Hi, How do i know if ssl has been enabled in a WAMP configuration using PHP ? Thanx in advance.
  15. Hi, I'm not sure i should make my post here, i just found it appropriate as im still exploring php/mysql/mssql. To begin with, i have a primary server running mssql located at the office. There's going to be a secondary server located in another site, in this site a secondary server will be running L.A.M.P.. My issue is that information from the primary server must be copied to the secondary server every half hour definitely on the first run it will be all the info. but there after it will be just updates to the secondary. My question is, is it possible through PHP to copy data from a remote mssql database and copy to a mysql database without having to create some form of temporary data storages; if yes how do i go about it? Secondly, clients have to connect to the temporary database over the internet and would like to implement secure http from login to viewing their online reports; again how do i go about this? Lastly, on one of the pages, the content changes every half hour and the client must be in a position to see the changes (if any), how do i make the page refresh every half hour or once there's a refresh in the secondary database? Hope to have supplied adequate information, in the case of further clarification, please feel free to ask. Thank you in advance.
×
×
  • 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.