its an firebug error console and in that it showing as the syntax error.
can u please check that line
in only one line it is showing as error
its an firebug error console and in that it showing as the syntax error.
can u please check that line
in only one line it is showing as error
Thanks for the reply friends
but iam using this in the start of line in the php page and the code is working perfectly , but in the backend (means in the error console) it is showing as the error.
my client does not require that.
thanks once again.
Hello Friends,
I am Rakesh,
iam facing a problem regarding HTML in PHP page
iam pasting the link of error can any one please tell the solution.
http://screencast.com/t/yrFqDdsf
iam unable to understand why its comming
so please tell the solution
Thanks in Advance
Hello Guys
I am working on a website
I am not getting the forget password
can u please help me in solving problem please
Thanks in advance
Hi Friends,
I need to design a script which will block all user interaction on PC until an activity is completed.
Problem:
We need to fill time reports every day. People tend to forget filling this. This directly affects companies revenue.
Solution:
I am thinking of running a script every day at 5pm. This script will open intranet site where we fill our time reports. It will also block user from doing anything until report is filled or until that screen is closed.
I need your help in developing this.
Hello
I require a solution please
the problem is the
user register for an event at the admin side the admin can accept or reject is registration for event
if admin clicked on accept a mail has to go saying that the registration has accepted else no mail
please help me
Hello Good afternoon Guys
Iam KNR iam having a problem with javascript validation
i want to check validation of all controls at a time means
if i have a form with all fields blank then it has to show message
and if any of the field is filled then it dont have to show the message and
the message about blank field has to shown
if(trim(cname.value) == '')
{
alert('Enter a Name');
cname.focus();
return false;
}
please help me
hello friends
can u please help me in writing the code for
adding multiple images
i tried a lot but the purpose has not been completed
please help
Thanks in advance
Hello friends
If i want to add multiple images (suppose 10 images) to a database
how can any one give me the sujjestion please
help me
Thank u in advance
hello friends
thanks to all for their co-operation
iam facing a problem with date function
i want to insert it in a database by taking from form
is there any one whi gives the code
Thank u
KNR
Thanks praveen
i qm having the category table in that table only i want to insert subcategory
i dont want to create seperate table for subcategory
i got with seperate table
but actually i am looking for the total categories and subcategories in a single table
I require the add subcategory and edit subcategory in a single page
and i want to add category and add subcategory with a single table
(if suppose i put the category parentid=0 and for subcategory parentid =1 )
please tell the code i have written the code for addcategory but iam unabling to write the code for addsubcategory please
Thanks in advance
Bye
and 1 more thing sir i want the category and subcategories have to be saved in the same table
please sir
Thanks for the reply sir
can u please check the code once and see please
<?php
//ob_start();
//include_once('login_check.php');
include_once('functions.php');
if($_SERVER['REQUEST_METHOD']=='POST')
{
if(!isset($_GET['fid']))
{
$qry1="SELECT * FROM categories WHERE catname='".$_POST['cname']."'";
$res1=mysql_query($qry1) or die(mysql_error());
$num1=mysql_num_rows($res1);
if($num1!=0)
{$msg1="This Category with this name already exists "; }
if($num1==0)
/*{
if($HTTP_POST_FILES["cimage"]["size"] >1)
{
$ext = substr($HTTP_POST_FILES['cimage']['name'],strpos($HTTP_POST_FILES['cimage']['name'],'.')+1);
$ext_arr=array("jpeg","ping","jpg","gif","bmp");
//if (in_array($ext,$ext_arr))
{
$prlimage=substr($HTTP_POST_FILES['cimage']['name'],0,strpos($HTTP_POST_FILES['cimage']['name'],'.'));
$prlimage.=time();
$prlimage.=strstr($HTTP_POST_FILES['cimage']['name'],'.');
$prlimage="../uploadedimages/categories/".$prlimage;
if(!move_uploaded_file($HTTP_POST_FILES['cimage']['tmp_name'],$prlimage)) { $prlimage=""; }
chmod($prlimage,0777);
} else
{
$prlimage="";
}*/
$qry2="INSERT INTO categories (catname,cimg,parentid,status,added_date) VALUES ('".$_POST['cname']."','".$prlimage."','".$_POST['cat_id']."','1',now())";
$res2=mysql_query($qry2) or die(mysql_error());
$ic_id=mysql_insert_id();
header("location:addsubcat.php?msg=1");
}
}
if(isset($_GET['fid']))
{
$qry1="SELECT * FROM categories WHERE catname='".$_POST['cname']."' AND id!='".$_GET['fid']."'";
$res1=mysql_query($qry1) or die(mysql_error());
$num1=mysql_num_rows($res1);
//if($num1==0)
/*{
if($HTTP_POST_FILES["cimage"]["size"] >1)
{
$ext = substr($HTTP_POST_FILES['cimage']['name'],strpos($HTTP_POST_FILES['cimage']['name'],'.')+1);
$ext_arr=array("jpeg","ping","jpg","gif","bmp");
//if (in_array($ext,$ext_arr)) {
$prlimage=substr($HTTP_POST_FILES['cimage']['name'],0,strpos($HTTP_POST_FILES['cimage']['name'],'.'));
$prlimage.=time();
$prlimage.=strstr($HTTP_POST_FILES['cimage']['name'],'.');
$prlimage="../uploadedimages/categories/".$prlimage;
if(!move_uploaded_file($HTTP_POST_FILES['cimage']['tmp_name'],$prlimage)) { $prlimage=""; }
chmod($prlimage,0777);
} else {
$prlimage=$_POST['oldimage'];
}}*/
$qry2="UPDATE `categories` SET catname='".$_POST['cname']."',cimg='".$prlimage."',parentid='".$_POST['cat_id']."' WHERE id='".$_GET['fid']."'";
$res2=mysql_query($qry2) or die(mysql_error());
echo '<script language="javascript">window.location.href="addsubcat.php?msg=2"</script>';
//header("location:addsubcat.php?msg=2");
//}
}
?>
<?php
if(!empty($_GET['fid']))
{
$qry3="SELECT * FROM categories WHERE parentid!=0 and id='".$_GET['fid']."'";
$res3=mysql_query($qry3) or die(mysql_error());
$row3=mysql_fetch_array($res3);
$show=" Edit ";
}
else
{
$show =" Add ";
}
if(!empty($_GET['start'])){ $start=$_GET['start']; }
else{ $start=0; }
$len=10;
if(!empty($_GET['start']))
{
$link="addsubcat.php?a=a&start=".$_GET['start']."";
}else{
$link="addsubcat.php?a=a";
}
if(!empty($_GET['cn']))
{
if($_GET['cn']==1){ $con=1; $m=4; }
else { $con=0; $m=5;}
mysql_query(" update categories set status='".$con."' where id='".$_GET['id']."' ");
header("location:addsubcat.php?msg=".$m."");
}
if(!empty($_GET['delid'])){
$t="delete from categories WHERE id='".$_GET['delid']."'";
mysql_query($t);
mysql_query("delete from categories where id='".$_GET['cat_id']."'");
if(!empty($_GET['start']))
{
header("location:addsubcat.php?msg=del&start=".$_GET['start']."");
}else{
header("location:addsubcat.php?msg=del");
}
}
$fres=mysql_query("SELECT * FROM categories where parentid!=0 ORDER BY id");
$fcunt=mysql_num_rows($fres);
$fres=mysql_query("SELECT * FROM categories where parentid!=0 ORDER BY id DESC LIMIT $start,$len");
$cat_arr=array();
$ar_res=mysql_query("select * from categories order by id");
while($ar_rw=mysql_fetch_assoc($ar_res)) {
$cat_arr[$ar_rw['catname']]=$ar_rw['id']; …
Hello friends
Iam unabing to add subcategory
and iam trying to add in the same table in which the categories are there can anyone please help me in adding subcategories and categories in a same table please
Thank u
KNR
Hello friends
please tell how to add ssubcategories and editing in a single page
please provide code if u have
i worked on that but iam getting errors
please help me in solving the problem
hello friends
iam having a problem
if we want to add a category and subcategory in single page
and in a single database
in database can we able to
please help me in adding category and subcategory in a single page please
thank you
KNR
Thank u very much
qurram sir
thanks a lot
for ur cooperation
KNR
Hello Friends,
This is Knr i require calender function,
when we click on calender image the calender of this month has to be display and we have to select the date
iam placing the image please
please friends i have to get the things like that
Thanks in advance
Hello friends,
i copied a table from other database and using in other database, when iam using the same table in other database the primary key in the table is just auto increamenting from the past table only.
i want it to start from 0
Rakesh
Hello friends,
can any one tell me how to make Tabs ina website just like in this forum
like home,forums tutorial etc
and how to make Logos for a website freely
please tell
thank u
Rakesh Nagekar
Hello friends,
iam new to the .NET
when i run the page in ASP.NET a small symbol is comming in lower task bar at timer
can u please tell me how to run the webpage in localhost please
Thank u
hello friends,
The one which u got is browser virus and the virus code is written in VBscript (.VBS) type
and its a usb virus
can u please send me the latest log of ur system.
BYE
Rakesh Nagekar.
hello friends,
can u please tell the event for delete, when using hyperlink as a link to delete
please tell me with code
Thank u
Rakesh Nagekar
Hello friends,
i want to get the o/p like this
please check this
Browse 'A'
Thank u
Rakesh Nagekar
hello friends,
how to import .MDB file to sql server
please tell in detail
please
Rakesh Nagekar
can u please tell in detail please
miss shanti garu
please andi
Rakesh Nagekar
<table width="100%" border="0">
<tr>
<td>Search Blog( A-Z ) </td>
</tr>
<tr>
<td><table width="90%" border="0" align="center">
<tr>
<td> A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y |Z</td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<table bgcolor="#aa5a87" border="0" cellpadding="1" cellspacing="1" width="100%">
<tbody><tr>
<td align="center" bgcolor="#c792af" height="23"><strong class="th-white-11">Blog Directory </strong></td>
</tr>
<tr>
<td bgcolor="#fdf5ff"><table width="100%" border="0" align="center">
<?
$fqur="select * from bg_blogs where Blog_title ''".$_POST['letter']."'%";
$fres=mysql_query($fqur)or die(mysql_error());
$c=-3;
while($frow=mysql_fetch_array($fres)){
if(($c%3)==0){ echo '<tr valign="middle">';} $c++;
?>
<td width="4%" align='left'><img src="../images/ar-1.gif"></td>
<td width="8%" align="left" class="style20"><a href="blog-directory.php?sid=<?=$frow['category_id'];?>" class="blinks"><? $name=$frow['category_id'];?>
<?=getdata("bg_category","category_name","category_id=".$name);?> </a> </td>
<td width="20%"> </td>
<? if(($c%3)==0)
{
echo '</tr>'; } }
?> </table> </td>
</tr>
</tbody></table>
</td>
</tr>
</table>
if i want to search from A to Z then in a single query can we
please
Rakesh Nagekar
hello friends,
if i want to search with A in searching and if i want to B
please send code
thanks
Rakesh Nagekar
Hello Friends,
please require help for how to check the " Is the value set or not " to send the value to other page
require urgently pleaseeeeeeeeeee
Rakesh Nagekar
hello friend,
i require help for forget password
please provide code for this
please
Thank u in advance
Rakesh Nagekar
hii,
can anyone please see the doc in this the del is not working
pleaseeeeeeeeeeeeeeee
Rakesh Nagekar
Thank u
for giving the reply
Rakesh Nagekar
Hello Guys,
This is Rakesh Nagekar,
when i open a visual studio.net and click on File -->New website -->
Then the
windows application,console application,class library, all those in project are comming
those require for creating website is not comming.
how to get back those please
Rakesh Nagekar
hello Friends,
can any one give me the link for free downlable .NET projects
Please provide me
Thanks in advance
Rakesh Nagekar