The_code_cracker

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Feb 26, 2013 09:00
ya..i mean how can i do that??
Feb 26, 2013 08:59
just want to register domain there..can you help me??
Feb 26, 2013 08:59
i have purchase space already...
Feb 26, 2013 08:59
but i want that only
Feb 26, 2013 08:58
can you help me for that??
Feb 26, 2013 08:58
@DaveRandom: my question is to register my domain to godaddy
Feb 26, 2013 08:56
@da
Feb 26, 2013 08:54
i want some help regarding hosting...can any body help??
Feb 26, 2013 08:53
hello
Jan 21, 2013 11:47
i have problem in json webservice...can anybody help me??
Jan 21, 2013 11:47
hello
 
Jan 21, 2013 12:13
if i send you php code..can you help me??
Jan 21, 2013 12:12
do you know php??
Jan 21, 2013 12:11
it means webservice in php code problem..or server's problem??
Jan 21, 2013 12:10
if i get the jsonresponse correcly than it works perfeclty...
Jan 21, 2013 12:09
as response
Jan 21, 2013 12:09
<html><body><script>document.cookie='ddddddd=fcbbd7e8ddddddd_fcbbd7e8; path=/';window.location.href=window.location.href;</script></body></html>
Jan 21, 2013 12:09
but sometimes it give me
Jan 21, 2013 12:09
sometimes its response perfectly as it show in browser..so that i can parse it correctly
Jan 21, 2013 12:08
can you please help me to take response of it...
Jan 21, 2013 12:07
my url is
Jan 21, 2013 12:07
json
Jan 21, 2013 12:06
<html><body><script>document.cookie='ddddddd=fcbbd7e8ddddddd_fcbbd7e8; path=/';window.location.href=window.location.href;</script></body></html>
Jan 21, 2013 12:06
in android it consoles in
Jan 21, 2013 12:06
that error is also in android
Jan 21, 2013 12:05
nsstring * str=[[nsstring alloc]initwithcontentofurl:urlname encoding:utf8..]
Jan 21, 2013 12:04
but when i take it into string using
Jan 21, 2013 12:04
i have varified my json in jsonlint..and it is valid
Jan 21, 2013 12:04
i have problem to parse json
Jan 21, 2013 12:02
can anyone help me??
Jan 21, 2013 12:02
i have problem to parse json webservice
Jan 21, 2013 12:02
hello
 
Jan 21, 2013 11:48
i have some problem in that
Jan 21, 2013 11:48
can anybody help me for json parse in ios??
Jan 21, 2013 11:47
hello
 

iPhone / iPad

Apple iOS development chat. This room has a FAQ at ios-develop...
Jan 21, 2013 11:43
ok..thanks
Jan 21, 2013 11:39
please see that and try to help me if possible
Jan 21, 2013 11:39
ok...i send you php code for service..
Jan 21, 2013 11:38
but do you know the php??
Jan 21, 2013 11:37
ok...heartly thanks for your kind response
Jan 21, 2013 11:35
ok..than please can you tell me if that is not json than why it works properly for some times..
Jan 21, 2013 11:32
<html><body><script>document.cookie='ddddddd=fcbbd7e8ddddddd_fcbbd7e8; path=/';window.location.href=window.location.href;</script></body></html>
Jan 21, 2013 11:32
sometimes i get it json data.. but sometimes i got
Jan 21, 2013 11:31
and i tried to log it
Jan 21, 2013 11:30
nsstring * str=[[nsstring alloc]initwithcontentsofurl:url encoding:nsutf8encoding];
Jan 21, 2013 11:29
but when i request to url using
 
Jan 21, 2013 11:42
is there any one who can help me...i have problem in json
Jan 21, 2013 11:41
helllo
 

recycle bin

deleted items
Jan 21, 2013 11:40
<?php
header('Content-type: application/json');
$link = mysql_connect('localhost', 'b3228hos', 'sportman2') or die('Cannot connect to the DB');
mysql_select_db('b3228hos_restaurent',$link) or die('Cannot select the DB');
$query = "select * from restinfo where approve = 'yes'";
$result = mysql_query($query,$link) or die('Errant query: '.$query);
$posts = array();
while($post = mysql_fetch_object($result))
{
$posts[] = $post;
}
echo json_encode($posts);
//@mysql_close($link);
?>