Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела

Notices

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 09.01.2007, 14:12   #10
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

I have an easier way... store procedure lin_GetSSQStatus return all the values you need directly...

Code:
DEFINE("SSQ","USE lin2world EXEC lin_GetSSQStatus");
$result = mssql_query(SSQ);

$round_number = @mssql_result($result, 0, 0);
$dawnPoint = @mssql_result($result, 0, 1);
$twilPoint = @mssql_result($result, 0, 2);
$seal1 = @mssql_result($result, 0, 3);
$seal2 = @mssql_result($result, 0, 4);
$seal3 = @mssql_result($result, 0, 5);
$time = @mssql_result($result, 0, 10);
$ssStatus = @mssql_result($result, 0, 11);
And later using the original script... only modifying javacript vars to link with php vars...

Code:
<script language="JavaScript" type="text/javascript">
  var nthDay = <? echo $ntdDay; ?>;
  var currTime = '<? echo $currTime; ?>';
  var ssStatus = <? echo $ssStatus; ?>;
  var dawnPoint = <? echo $dawnPoint; ?>;
  var twilPoint = <? echo $twilPoint; ?>;
  var maxPointWidth = <? echo $maxPointWidth; ?>;
  var seal1 = <? echo $seal1; ?>;
  var seal2 = <? echo $seal2; ?>;
  var seal3 = <? echo $seal3; ?>;
</script>
$ntdDay and $currTime is possible to get like in your script.
$maxPointWidth i set it to 150 like original script.
FidoW is offline  
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 14:48.