Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Php with TigraScrollers
elite79
Junior Member

Posts: 3
Registered: 1/4/2006
Member Is Offline
posted on 1/4/2006 at 07:27 AM Reply With Quote
Php with TigraScrollers


Hi,I hava a question about using php + Scrollers. I want to dynamiclly find data from mysql database. here is my coding thanks for replying.
<?php

// Open the database connection
$connector = mysql_connect("localhost","root","98115006")or die("Could not connect: " . mysql_error());

//select the DB
mysql_select_db("project", $connector);

//do the query
$query = mysql_query ("select * from news where Allow='yes'", $connector) or die("Could not connect: " . mysql_error());

while ($result= mysql_fetch_array($query, MYSQL_ASSOC)){
?>

ITEMS = [
{
'file': '',
'content': '<?= $result[Contents]?>',
'pause_b': <?= $result[Pause_time]?>,
'pause_a': 0
}

]
<? }?>

above coding just can show me one record not all the records why? thanks for reply
View User's Profile View All Posts By User U2U Member
elite79
Junior Member

Posts: 3
Registered: 1/4/2006
Member Is Offline
posted on 1/5/2006 at 01:06 AM Reply With Quote

today i try this but said
no definition main and behave error
i donot no why
ITEMS = [
<?php
while ($result= mysql_fetch_array($query, MYSQL_ASSOC))
{
echo "{";
echo "<br>";
echo "'file': '',";
echo "<br>";
echo "'content': '$result[Contents]',";
echo "<br>";
echo "'pause_b': $result[Pause_time],";
echo "<br>";
echo "'pause_a': 0";
echo "<br>";
echo "},";
echo "<br>";

}
?>
]
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Tigra Scroller
Product Demonstrations Live Demos:
Multiple vertical scrolling
Horizontal scrolling
Free Download Free Download
Product Documentation Documentation:
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
   
Tigra Scroller PRO
Product Demonstrations Live Demos
Vertical automatic scrolling
Horizontal manual scrolling
Product Documentation Documentation
Documenation Page
Change Log
Support Forum Technical Support
Support Forum
Customer Care System
Order Now ORDER NOW!
Add to Cart
View Cart
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004