Search found 13 matches

by achintha
Fri May 29, 2009 4:27 am
Forum: PHP - Code
Topic: Adding error message to form
Replies: 4
Views: 190

Re: Adding error message to form

here use this. create a file add.php and put the code. <?php  if(isset($_REQUEST['submit'])) {     if($_REQUEST['name']!='')     {         echo "Your name is ".$_REQUEST['name'];     }     else     header('Location:add.php?msg=Please enter a name');   } else { ?> <form action="add.php...
by achintha
Fri May 29, 2009 4:07 am
Forum: PHP - Code
Topic: How to delete a file from server after download
Replies: 4
Views: 646

Re: How to delete a file from server after download

u can use unlink function.but I think that function is disable on lot of servers.
so if you google it you will be find a good solution than copy & deleting.
by achintha
Fri May 29, 2009 3:54 am
Forum: PHP - Code
Topic: Issue with PHP combo box select and d an action
Replies: 9
Views: 871

Re: Issue with PHP combo box select and d an action

here use this. I have modified & tested on localhost.Its working fine. <?php   if(isset($_REQUEST['jack']) && $_REQUEST['jack']=='Release' ) {   echo "Jack U r done"; } else { echo "<form method='post' action='".$_SERVER['PHP_SELF']."'>"; echo "<select ...
by achintha
Fri May 29, 2009 3:37 am
Forum: PHP - Code
Topic: Sub menu
Replies: 1
Views: 330

Sub menu

please tell me how I do this

i have added 2 menu boxes.
when user select the value from box1 I need to change values displayed in box2.
it for a add page. i want to when the user select the state from box 1 in box2 their have cities under that state.
pls help me.
by achintha
Tue May 26, 2009 6:31 am
Forum: Databases
Topic: category print
Replies: 3
Views: 1397

Re: category print

When I google I found the following script. It works.but it showing a error. i have included the code & error which I get Code: <?php   // Recursive function to generate a parent/child tree // Without the need for a Root parent // Written by: Brian Parnes // 13 March 2006   $connect = mysql_conn...
by achintha
Tue May 26, 2009 3:33 am
Forum: Databases
Topic: category print
Replies: 3
Views: 1397

category print

I want to know how do I print a categories from database.I want to know how to do it for unlimited level. like this Maincat 1 --Sub Cat 1 ------Sub Cat 1 --Sub Cat 2 --Sub Cat 3 Maincat 2 Maincat 3 --Sub Cat 1 Maincat 4 Maincat 5 --Sub Cat 1 -----Sub Cat 1 -----Sub Cat 2 --Sub Cat 2 --Sub Cat 3 Main...
by achintha
Thu Dec 11, 2008 6:52 am
Forum: Databases
Topic: Insert txt file data in to my sql
Replies: 1
Views: 287

Insert txt file data in to my sql

Please some one help me to insert following rows in to mysql

I have attache txt file.
Please insert it in to mysql and give me the sql.

If you can please tell me how to do it

Thanks
data.zip
(819 Bytes) Downloaded 28 times
by achintha
Tue Sep 30, 2008 7:11 am
Forum: PHP - Code
Topic: How to save generated image
Replies: 1
Views: 103

How to save generated image

I found image resizing code. But it's only showing the resized image. But I want to save it to server.how can I do that? <?php header('Content-type: image/jpeg'); //$myimage = resizeImage('filename', 'newwidthmax', 'newheightmax'); $myimage = resizeImage('test.jpg', '150', '120'); print $myimage;   ...
by achintha
Mon Oct 01, 2007 9:41 pm
Forum: Databases
Topic: how do I dispaly results like this
Replies: 1
Views: 315

how do I dispaly results like this

I want to know if we want to dispaly results like this how i do it.

Sample:
Results
1
2
3
4
5
6

this is normal way. I wna to know how I do dispaly like following way

1 2
3 4
5 6

please help me
by achintha
Fri Sep 14, 2007 9:02 pm
Forum: PHP - Code
Topic: How to paginate like "Page: 1,2,3,4,5,6,..."
Replies: 4
Views: 328

How to paginate like "Page: 1,2,3,4,5,6,..."

currently I'm using pagination.but it's only have "Previous page | Next page" but i want to dispaly it like Page: 1,2,3,4,5,6,... I attahc the code currently i using.pls help me <?php $pagenext = $page+1; $result1 = $db->getnewsbycatid($pagenext,$front_latestoncatarecord,$catalogid); if ($...
by achintha
Mon Apr 30, 2007 7:05 pm
Forum: PHP - Code
Topic: Pls Help
Replies: 4
Views: 534

ok

Sorry........
by achintha
Mon Apr 30, 2007 10:53 am
Forum: PHP - Code
Topic: Pls Help
Replies: 4
Views: 534

thanks...

thanks...
by achintha
Mon Apr 30, 2007 10:26 am
Forum: PHP - Code
Topic: Pls Help
Replies: 4
Views: 534

Pls Help

I'm using news script for my site.I found this script.but when I put headline to home page the whole mysql result will be show as headline. but I want only latest 5 headlines.pls help me.... :) :) :) <?php // load the configuration file. include("config.php"); //load all news from the data...