Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A few things to check:</p> <ol> <li><p>what is <code>country</code> value after reading it from <code>NSUserDefaults</code>?</p></li> <li><p>what does <code>NSLog(@"%@",response);</code> print out?</p></li> <li><p>in your PHP, what is <code>$coname</code>?</p></li> <li><p>is <code>$_POST</code> defined? is <code>$_GET</code> defined? could you print out <code>$_REQUEST</code> content (<code>print_r($_REQUEST)</code>)?</p></li> </ol> <p>EDIT:</p> <p>can you put this statement </p> <pre><code>echo print_r($_REQUEST); </code></pre> <p>before <code>$coname=$_POST["c_name"];</code>?</p> <p>can you add this statement:</p> <pre><code> echo mysql_errno($con) . ": " . mysql_error($con) . "\n"; </code></pre> <p>after executing <code>mysql_query</code>?</p> <p>what does it output?</p> <p>EDIT2:</p> <p>With the <code>echo</code>es we added above, we now know that the post parameter is arriving at the server. Are you sure that there are data stored for France in your database? mysql_error did not return any error (0: in the output), so everything went ok... it seems that the query returned no data, but it did not fail...</p> <p>Anyway, just as a further check, could you add this more statement before executing mysql_query?</p> <pre><code>echo "SELECT age,wname,slid,sex FROM user WHERE user.c_name='".$coname."'"; </code></pre> <p>so we will see what the query looks like...</p> <p>EDIT3:</p> <p>please, replace:</p> <pre><code>$coname=$_POST["c_name"]; </code></pre> <p>by</p> <pre><code>$coname=$_REQUEST["c_name"]; </code></pre> <p>EDIT 4:</p> <pre><code>$bilgi= mysql_query("SELECT age,wname,slid,sex,c_name FROM user"); while($sutun= mysql_fetch_array($bilgi)) { echo $sutun["age"]; echo $sutun["wname"]; echo $sutun["sex"]; echo $sutun["slid"]; echo $sutun["c_name"]; } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload