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
|
 |
 |
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!
|
 |
 |
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.... :)
|
 |
 |
akapralj
Posts: 6
|
| Posted: 02/04/2009, 2:52 PM |
|
damian,
Sorry my English is bad and hard to put my question properly.
Antun
|
 |
 |
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.... :)
|
 |
 |
|