Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I will get round to answering this one, once my development server has finished updating itself. However, I would try an alternate PHP script to the one you list.</p> <pre><code>&lt;?php require_once('../Connections/workdata.php'); //select database mysql_select_db($database_workdata, $workdata); if(isset($_POST['queryString'])) { $queryString = $_POST['queryString']; $query = sprintf("SELECT acct, mailing_name FROM pub_addrs WHERE acct = '%s'",$queryString); $result = mysql_query($query, $workdata) or die(mysql_error()); $row_result = mysql_fetch_assoc($result); echo $row_result['acct']." ".$row_result['mailing_name'];//this fails //echo 'this works'; } ?&gt; </code></pre> <p>If echo'ing 'this works', does actually work as expected then the problem exists in this portion of code.</p> <pre><code>&lt;?php // Include the auxiallary files as required require_once('../../valentxt3.class.php'); $testVar = 701; // Establish db connection. $DBase = new dbConn(); $tmpStr = "SELECT `acct`, `mailing_name` FROM `pub_addrs` WHERE `acct` = '".$testVar."';"; $result = $DBase-&gt;runQuery($tmpStr); // Lets see how many texts there are to send. $howMany = mysql_num_rows($result); $row_result = mysql_fetch_assoc($result); echo $row_result['acct']." ".$row_result['mailing_name']; //this fails echo 'this works'; exit; ?&gt; </code></pre> <p>The code above produces the following output:</p> <pre><code>php test.php X-Powered-By: PHP/5.2.13 Content-type: text/html 701 DO NOT MAIL- Deleted Account this works </code></pre> <p>Obviously, this is ran via a PHP CLI, but should work through a POST or GET request. Once I've got my development server ready, I'll test in more detail.</p>
    singulars
    1. This table or related slice is empty.
    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. This table or related slice is empty.
    1. This table or related slice is empty.
    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