السلام عليكم
انا عملت جدول بيانات
اخزن فيه معلومات عن شركات معينه
وقمت بإستخراج هذه المعلومات من جداولها وعرضتها في شريط متحرك
لغة البرمجه هي بي اتش بي مع هتمل
المطلوب الآن هو عرض هذا الشريط في تمليت الناف بار بالمنتدى
لا توجد مشكله في كون قاعده البيانات المخزن فيها المعلومات غير قاعده المنتدى اذ بالأمكان جعل الجداول في قاعده بيانات المنتدى
لكن بصراحه يصعب علي الربط
لهذا اطلب المساعده
هذا هو ملف الشريط المتحرك:
كود PHP:
<?php require_once('Connections/con3.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
$theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}
mysql_select_db($database_con3, $con3);
$query_rec_all = "SELECT symb.*, ticker_name_input.* FROM symb , ticker_name_input WHERE symb.tick_name_id = ticker_name_input.input_id";
$rec_all = mysql_query($query_rec_all, $con3) or die(mysql_error());
$row_rec_all = mysql_fetch_assoc($rec_all);
$totalRows_rec_all = mysql_num_rows($rec_all);
?>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
}
-->
</style>
<table width="736" height="115" border="1" id="marq">
<tr bordercolor="#000000" bgcolor="#2F16A0">
<td height="20"><div align="center" class="style1">شريط الأسعار </div></td>
</tr>
<tr bordercolor="#000000">
<td height="43"><marquee dir='rtl' direction='right' scrollamount='2' scrolldelay='60' behavior='scroll' onmouseover='this.stop()' onmouseout='this.start()'>
<?
do {
?>
<strong><font color="#0000FF">( <? echo $row_rec_all["input_name"]; ; ?> :</font></strong> <? echo " ";?>
<strong><font color="#009933"><img src="index_up.gif"> <? echo $row_rec_all["tick_high"]; ; ?></font></strong> <? echo "  ";?>
<strong><font color="#FF0000"> <img src="index_down.gif" /> <? echo $row_rec_all["tick_low"] ; ?> </font></strong>) ,,,, <? echo "";?>
<? } while ($row_rec_all = mysql_fetch_assoc($rec_all));?>
</marquee></td>
</tr>
<tr bordercolor="#000000">
<td height="20" bgcolor="#2F16A0"><div align="center" class="style1">بإدارة أبو خالد </div></td>
</tr>
</table>
<?php
mysql_free_result($rec_all);
?>