so i have to look through my mysql db's till i find the category ids? arent they displayed when you click them? and when i do find them what would i do next?
so i have to look through my mysql db's till i find the category ids? arent they displayed when you click them? and when i do find them what would i do next?
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
Just count how many people have posted them then keep them updated to save stress cause some people might post in a certain section and it might not be a tutorial "/
ok heres a simple thing that can do it
athogh ypu would need a database connection to your douems database
PHP Code:<?php
//Get all the topics where there in forum with id 5
$sql = mysql_query("SELECT tid FROM ibf_topics WHERE forum_id='5'");
//count them
$result = mysql_num_rows($sql);
//output
echo $result;
?>
Now the above will output how many topics are in the forum with the id 5, chnage the 5 in the exsample for the id of the forum you want to copyu topics in
(wrote in hurry so could be errors)
nothing at all appeared what do i need to configure from that just change forum_id to the category number?
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
i always get ignored :@ *bump*
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
so what i need to add
to that code you gave me?PHP Code://MySQL Hostname
$hostname = 'localhost';
//MySQL Database Username
$sqlname = 'my username';
//MySQL Database Password
$sqlpass = 'password';
//MySQL Database Name
$mysqldb = 'db name';
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
so in the end it will look like this?
this is what im usin now and its not workin still (i changed the DB parts though)PHP Code:<?php
$dbh = mysql_connect ("localhost", "USER_DB", "DB") or die ('DB error due to: ' . mysql_error());
mysql_select_db ("DB");
//Get all the topics where there in forum with id 5
$sql = mysql_query("SELECT tid FROM ibf_categories WHERE id='3'");
//count them
$result = mysql_num_rows($sql);
//output
echo "$result";
?>
in phpmyadmin this is what i found in ibf_categories on the tutorial one
id position state name
3 7 1 Tutorials
Last edited by L@c0ste; 03-07-2005 at 07:46 PM.
*Image Removed
Ahemm.. How exactly was my sig innapropriate?
Goddamit i hate this forum :@
I RESIGN FROM GRAPHICS DESIGNER :@ :@ :@
Want to hide these adverts? Register an account for free!