cinematic_jesi
08-29-2008, 09:25 AM
Hi,
I'm normally a PHP programmer.. and I'm having to do a website in ASP and I'm running in a little trouble with how to write this properly..
I'll show you what I'm trying to accomplish in PHP first then I'll give the variables I need to show up in ASP.
Here's an example of what I'm trying to do in PHP:
<?php
// Create Comment Count Function
$blogid = $row_myblogs['ID'];
$blogcount = mysql_num_rows(mysql_query("SELECT * FROM blog_comments WHERE blogid LIKE '%$blogid%'"));
?>
Okay, so I'm sure all of you are familiar with what I'm doing, its pretty simple.. now I need to do this with the following variables:
The identifier is: <%=(Videos.Fields.Item("ID").Value)%>
Where I need to get counts from: dbo.TblPepTalkVotes
And the identifier in the "counts" table is: VideoID
Can someone help? Thanks :)
I'm normally a PHP programmer.. and I'm having to do a website in ASP and I'm running in a little trouble with how to write this properly..
I'll show you what I'm trying to accomplish in PHP first then I'll give the variables I need to show up in ASP.
Here's an example of what I'm trying to do in PHP:
<?php
// Create Comment Count Function
$blogid = $row_myblogs['ID'];
$blogcount = mysql_num_rows(mysql_query("SELECT * FROM blog_comments WHERE blogid LIKE '%$blogid%'"));
?>
Okay, so I'm sure all of you are familiar with what I'm doing, its pretty simple.. now I need to do this with the following variables:
The identifier is: <%=(Videos.Fields.Item("ID").Value)%>
Where I need to get counts from: dbo.TblPepTalkVotes
And the identifier in the "counts" table is: VideoID
Can someone help? Thanks :)