CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 How to write this in the CCS

Print topic Send  topic

Author Message
akapralj

Posts: 6
Posted: 02/04/2009, 9:51 AM

This works great, but how to do it with CCS $db = new clsDBConnection1(); ???


$dbname = 'savjest';
$link = mysql_connect("localhost","root","") or die("Ne mogu se spojiti.");
if($link)
{
$dbcon = mysql_select_db($dbname, $link) or die("Ne nadem bazu");
}

$pregledalo= addslashes( $_SERVER['REQUEST_URI'] );

$qur1 = "select count(*) as mm from gosti where url='$pregledalo' group by url";
$result1 = mysql_query($qur1,$link);
if($line = @mysql_fetch_array($result1, MYSQL_ASSOC))
{
$pregled = $line['mm'];
}

$laku->pregledalo->SetValue($pregled);


Thanks, Antun
View profile  Send private message
datadoit
Posted: 02/04/2009, 10:58 AM

Toolbox -> Builder -> Grid Builder

'Tis why we use CodeCharge and not Notepad. :)
akapralj

Posts: 6
Posted: 02/04/2009, 12:54 PM

Something like that, I asked,

$pregledalo= addslashes( $_SERVER['REQUEST_URI'] );
$db = new clsDBConnection1();

$SQL = "SELECT count(*) as mm FROM gosti WHERE url='$pregledalo' GROUP by url";
$db->query($SQL);
$result = $db->next_record();
if($result)
{
$pregled = $db->f("mm");
}
$db->close();
$feral->pregledalo->SetValue($pregled);


but thank you datadoit anyway!
View profile  Send private message
damian

Posts: 838
Posted: 02/04/2009, 2:43 PM

akapralj - ppl want to help but they dont *really* want to work through your code to understand what you want to achieve... explain what you want and post the code as a reference...

_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
akapralj

Posts: 6
Posted: 02/04/2009, 2:52 PM

damian,
Sorry my English is bad and hard to put my question properly.
Antun
View profile  Send private message
damian

Posts: 838
Posted: 02/05/2009, 3:50 AM

we dont mind your english - just try to tell us what you want your code to actually do...
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.