Welcome Guest, Not a member yet? Register   Sign In
help about slide
#1

[eluser]srontopekok[/eluser]
this is my home.php and i want it connected with jquery slide

<h2>Mbuh</h2>
<div id="divTrigger">
&lt;? $query = mysql_query("SELECT id,judul,image_berita,kesimpulan FROM berita ORDER BY
tanggal_berita DESC limit 20");
$data = array();
while($row = mysql_fetch_object($query)){
$data[] = $row;
}
// lakukan looping utk trigger tab
$index = 1;
foreach($data as $row){
echo '<a href="[removed];">'.$index.'</a>';
else echo ' >'.$index.'</a>';
$index++;
}
?&gt;
</div>

<div id="divContent">
&lt;?
$index =1;
foreach($data as $row):
?&gt;
<div id="div&lt;?=$index++?&gt;"><span class="title">
&lt;?=$row->judul?&gt;
</span><img >image_berita?&gt;" align="left" /> &lt;?=$row->kesimpulan?&gt;
</div>
&lt;? endforeach; ?&gt;

</div>
#2

[eluser]CroNiX[/eluser]
So what's the problem? Just put the jquery code in the head of the document like you would any other document.
#3

[eluser]srontopekok[/eluser]
A PHP Error was encountered

Severity: Warning

Message: mysql_fetch_object(): supplied argument is not a valid MySQL result resource

Filename: home/home.php

Line Number: 7

here is the error
#4

[eluser]srontopekok[/eluser]
how to make the script to CI with controller
#5

[eluser]srontopekok[/eluser]
what the script anyway. sorry i newB. :p




Theme © iAndrew 2016 - Forum software by © MyBB