Search found 26 matches
- Sat Sep 22, 2012 5:05 am
- Forum: PHP - Code
- Topic: Can't find the problem in this code
- Replies: 1
- Views: 516
Can't find the problem in this code
Hi, Here is my code, it seems there is some problem with it: <?php require_once 'connection.php'; $link = conenct('localhost', 'root', '', 'w_db'); mysql_query( "SET NAMES utf8" ); mysql_query( "SET CHARACTER SET utf8" ); mysql_set_charset('utf8', $link); Class AreaInfo{ public $...
- Mon Aug 13, 2012 12:31 pm
- Forum: PHP - Code
- Topic: [SOLVED] Json on php side after getJSON call
- Replies: 1
- Views: 777
- Mon Aug 13, 2012 12:26 pm
- Forum: PHP - Code
- Topic: [SOLVED] Json on php side after getJSON call
- Replies: 1
- Views: 777
[SOLVED] Json on php side after getJSON call
Hi, Hi, I have an issue with the getJSON method, here is the code of the jquery: $(document).ready(function(){ $.getJSON('../php/functions/user_info.php', {id: id}, function(data){ alert(data); }); }); the php code at ../php/functions/user_info.php is: <?php require_once 'connection.php'; $link = co...
- Mon Aug 13, 2012 2:00 am
- Forum: PHP - Code
- Topic: json php and java script
- Replies: 7
- Views: 1374
Re: json php and java script
ok it seems to be in hebrew after adding
$.getJSON('../php/functions/all_city.php',function(data)
$.getJSON('../php/functions/all_city.php',function(data)
- Mon Aug 13, 2012 1:53 am
- Forum: PHP - Code
- Topic: json php and java script
- Replies: 7
- Views: 1374
Re: json php and java script
this: ["\u05ea\u05e8\u05d5\u05dd","\u05ea\u05e7\u05d5\u05e2","\u05ea\u05e7\u05d5\u05de\u05d4","\u05ea\u05e4\u05e8\u05d7","\u05ea\u05e4\u05d5\u05d7","\u05ea\u05e2\u05d5\u05d6","\u05ea\u05e0\u05d5\u05d1\u05d5\u05ea","\u05ea\u05...
- Mon Aug 13, 2012 1:11 am
- Forum: PHP - Code
- Topic: json php and java script
- Replies: 7
- Views: 1374
Re: json php and java script
there is a problem,it shows all in Gibberish (in the alert) and i'm pretty sure that what I'm doing on the javascript side is wrong.
- Mon Aug 13, 2012 12:50 am
- Forum: PHP - Code
- Topic: json php and java script
- Replies: 7
- Views: 1374
Re: json php and java script
ok thanks,
and what about the javascript side, what should I do with the json object? how should I decode it (on the java script side, get the values in the array)?
tnx
and what about the javascript side, what should I do with the json object? how should I decode it (on the java script side, get the values in the array)?
tnx
- Sun Aug 12, 2012 5:19 pm
- Forum: PHP - Code
- Topic: json php and java script
- Replies: 7
- Views: 1374
json php and java script
Hi, I am using jquery to get list of cities from my data base(the city names are in Hebrew, all of the strings saved as utf-8) here is my jquery code: $.post('../php/functions/all_city.php',function(output){ alert(output); }); now here is my php code to return the json object: <?php require_once 'co...
- Wed Aug 08, 2012 3:07 pm
- Forum: PHP - Code
- Topic: Problem with reading from file
- Replies: 3
- Views: 677
Re: Problem with reading from file
you were write!!
tnx
tnx
- Wed Aug 08, 2012 1:27 pm
- Forum: PHP - Code
- Topic: Problem with reading from file
- Replies: 3
- Views: 677
Re: Problem with reading from file
the text file? ( I think no, how do this?)
- Wed Aug 08, 2012 12:55 pm
- Forum: PHP - Code
- Topic: Problem with reading from file
- Replies: 3
- Views: 677
Problem with reading from file
Hi, I am trying to read from file that has a list of city names in Hebrew and echo out to an html page it writs all the names as "???" here is the code: <?php header('Content-Type: text/plain; charset=utf-8'); $file = "./uniq.txt"; $doc = file_get_contents($file); $lines = explod...
- Mon Jun 11, 2012 1:01 pm
- Forum: PHP - Code
- Topic: Help with header function
- Replies: 4
- Views: 768
- Mon Jun 11, 2012 10:50 am
- Forum: PHP - Code
- Topic: Help with header function
- Replies: 4
- Views: 768
Help with header function
Hi, I want to create a web page that when other page links to it, it links to it with some information (page.php?action=1) . The page needs to be refreshed every minute, so I used header("Refresh: 60;"); . After the refresh I want that the path would be (page.php?action='') , how can I do ...
- Tue Jun 05, 2012 7:54 am
- Forum: PHP - Code
- Topic: texterea issue
- Replies: 3
- Views: 657
Re: texterea issue
Thanks
- Tue Jun 05, 2012 2:16 am
- Forum: PHP - Code
- Topic: texterea issue
- Replies: 3
- Views: 657
Re: texterea issue
it should be Message Received