-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtest.php
More file actions
62 lines (44 loc) · 1.16 KB
/
test.php
File metadata and controls
62 lines (44 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<?php
echo "This is a ttesst pages.";
?>
<?php include 'common_files/db_connect.php'; ?>
<?php
$currentNumber = 1;
$currentType = 'tme_teaching_point';
//tme_question
while($currentNumber < 10)
{
$myQuery = "SELECT * FROM '$currentType' WHERE tpname = '$currentNumber'";
$result = mysql_query($myQuery);
$i = 1;
while($row = mysql_fetch_array($result))
{
$AudioID = $row['AudioID'];
$myQuery2 = "SELECT * FROM '$currentType' WHERE AudioID = '$AudioID' ";
$result2 = mysql_query($myQuery2);// or die($myQuery2."<br/><br/>".mysql_error());
$row2 = mysql_fetch_array($result2);
$AudioName = $row2['Name'];
echo $AudioName;
$ImageID = $row2['ImageID'];
$myQuery4 = "SELECT * FROM tme_image_table WHERE ImageID = '$ImageID' ";
$result4 = mysql_query($myQuery4);
$row4 = mysql_fetch_array($result4);
$images[$i] = $row4['Name'];
$audios[$i] = $AudioName;
$i++;
//Play(AudioName, images, imagesStart)
for($j=1; $j<$i; ++$j)
{
echo "<br />";
echo $images[$j];
echo "<br />";
echo $imagesStart[$j];
$j++;
}
echo "<br />";
echo "****";
$currentNumber++;
}
}
mysql_close($dbcon);
?>