Note that there are some explanatory texts on larger screens.

plurals
  1. POScript working on localhost but not on host server.
    primarykey
    data
    text
    <p>I have this script. It works all right in localhost but I have problems on host server.</p> <pre><code>$query="SELECT t1.*, t2.*, t3.*,t4.*,t5.*,t7.asciiname as asciiname_t7, t8.asciiname as asciiname_t8,t9.* FROM anunturi t1 INNER JOIN tranzactie t2 ON t1.tranzactie = t2.id_tranzactie INNER JOIN tip_proprietate t3 ON t1.tip = t3.id_prop INNER JOIN anunt_descriere t4 ON t1.id_anunt = t4.ext INNER JOIN anunt_locatie t5 ON t1.id_anunt = t5.ext INNER JOIN zone t9 ON t5.zona = t9.id_zona INNER JOIN locatii t7 ON t5.judet = t7.admin1_code AND t7.feature_code='ADM1' INNER JOIN locatii t8 ON t5.oras = t8.geonameid WHERE t1.status=:arh ORDER BY t1.data DESC"; $stmt = $this-&gt;dbh-&gt;prepare($query); $stmt-&gt;bindParam(':arh', $arh, PDO::PARAM_INT); $stmt-&gt;execute(); $nr=$stmt-&gt;rowCount(); //echo $nr; if($nr&gt;0) { foreach ($stmt-&gt;fetchAll(PDO::FETCH_ASSOC) as $result) { if($result['tip']=='1') { $camere=" - ".$result['camere']; } else { $camere=""; } if($result['special']=='0' &amp;&amp; $_SESSION['privilegiu']=='2') { $special="&lt;a href='#' id='".$result['id_anunt']."' onclick='special(this);'&gt;special&lt;/a&gt;"; $rest="&lt;a href='#' id='".$result['id_anunt']."' onclick='mod(this);'&gt;Edit&lt;/a&gt; &lt;a href='#' id='".$result['id_anunt']."' onclick='arhivare(this);'&gt;Arhivare&lt;/a&gt; "; } else { if($_SESSION['privilegiu']=='2') { $special="&lt;a href='#' id='".$result['id_anunt']."' onclick='nespecial(this);'&gt;normal&lt;/a&gt;"; $rest="&lt;a href='#' id='".$result['id_anunt']."' onclick='mod(this);'&gt;Edit&lt;/a&gt; &lt;a href='#' id='".$result['id_anunt']."' onclick='arhivare(this);'&gt;Arhivare&lt;/a&gt; "; } else { $special=""; $rest=""; } } $view[]=" &lt;tr&gt; &lt;td&gt;".$result['id_anunt']."&lt;/td&gt; &lt;td&gt;".$result['den_tranzactie']."&lt;/td&gt; &lt;td&gt;".$result['den_prop'].$camere."&lt;/td&gt; &lt;td&gt;".$result['asciiname_t7']." ".$result['asciiname_t8']." ".$result['den_zona']."&lt;/td&gt; &lt;td&gt;&lt;input type='hidden' name='tip' id='i".$result['id_anunt']."' value='".$result['tip']."'&gt;&lt;input type='hidden' name='tranz' id='e".$result['id_anunt']."' value='".$result['tranzactie']."'&gt;&lt;a href='#' id='".$result['id_anunt']."' class='view' value='".$result['id_anunt']."' onclick='view(this);'&gt;View&lt;/a&gt; ".$rest.$special."&lt;/td&gt; &lt;/tr&gt;"; } } else { $view[]="Nu exista oferte"; } return $view; } </code></pre> <p>I tested this script most on my localhost server and now I cannot use it. I need it urgently. Thanks in advance!</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.
 

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