Search found 27 matches

by shnkrsv
Thu Aug 21, 2014 7:17 am
Forum: PHP coding => General
Topic: How to rewrite 2 urls with same number of parameters?
Replies: 1
Views: 435

How to rewrite 2 urls with same number of parameters?

Greetings, We trying to rewrite two urls with same number of parameters, given below. URL 1: http://www.build99.com/flooringmain.php?maincatid=5&catname=Electricals URL 2: http://www.build99.com/flooringmain1.php?catid=10&subname=Civil Re-Written URL 1: www.build99.com/5/Electricals Re-Written URL 2...
by shnkrsv
Tue Aug 19, 2014 8:52 pm
Forum: PHP coding => General
Topic: Dynamic URI Rewrite Using HTACCESS or PHP
Replies: 3
Views: 687

Re: Dynamic URI Rewrite Using HTACCESS or PHP

Thank You. But now am trying using .htaccess rewrite options Now am Using both the category id and category name in the query variables http://www.build99.com/flooringmain.php?maincatname=Electricals&maincatid=12 I just need to rewrite the url like below Should Redirect to http://www.build99.com/Ele...
by shnkrsv
Tue Aug 19, 2014 4:20 am
Forum: PHP coding => General
Topic: Dynamic URI Rewrite Using HTACCESS or PHP
Replies: 3
Views: 687

Dynamic URI Rewrite Using HTACCESS or PHP

Greetings, Am trying to redirect my dynamic url Am using MySql DB Contains Category ID and its corresponding category name. Am passing each category as id given below by query variable Using Now : http://www.build99.com/flooringmain.php?maincatid=12 I just need to redirect the passing id to the give...
by shnkrsv
Tue Dec 11, 2012 5:12 am
Forum: PHP General
Topic: How to add Facebook unique Like button for every post.
Replies: 0
Views: 576

How to add Facebook unique Like button for every post.

Greetings,

Please suggest me how to add a Facebook like button for each and every post or articles or images.

The like button should be unique for each post's.

Is there any options with that.. Please help me...

(Note : Its not a Wordpress, customizing CMS website.)
by shnkrsv
Sat Jul 21, 2012 2:05 am
Forum: mySQL & php coding
Topic: Select a range of Records from Table
Replies: 2
Views: 718

Re: Select a range of Records from Table

Thank you Nullsig... :) :) its really works... thank you very much... :D
by shnkrsv
Fri Jul 20, 2012 2:20 am
Forum: mySQL & php coding
Topic: Select a range of Records from Table
Replies: 2
Views: 718

Select a range of Records from Table

Hai Friends, Am trying to display a range of records from my table. Am using the code $find = "SELECT * FROM $category1 ORDER BY RAND() LIMIT 4"; This works gread, which displays the random of records and limited to 4 to display. But what i exactly need is to display only 4 records from only top 10 ...
by shnkrsv
Sat Jun 09, 2012 11:39 pm
Forum: PHP coding => General
Topic: View Image Once in Paginate page
Replies: 0
Views: 354

View Image Once in Paginate page

Hai Friends, Am trying to view a image in a seperate page where i can paginate the images one by one by paginate navigation.. Am fine with view the image alone. But while am using the paginate script am totally not able to view the image am clickd on the previous page. Let me try to explain in detai...
by shnkrsv
Sat Jun 09, 2012 11:27 pm
Forum: PHP Scripts
Topic: PHP FORM SUBMISSION WITHOUT SUBMIT BUTTON
Replies: 1
Views: 1567

Re: PHP FORM SUBMISSION WITHOUT SUBMIT BUTTON

As my friend suggusted there's also another way. Can try this. No need for seperate file to insert. <?php if(isset($_POST['submit'])) { $name2=$_POST['name1']; $des=$_POST['desc1']; $keyword=$des; $keyword = str_replace("'","\'",$keyword); $des=$keyword; $db_table=$_POST['category']; include("config...
by shnkrsv
Thu May 31, 2012 5:20 am
Forum: PHP Scripts
Topic: Java Script not working in PHP
Replies: 2
Views: 933

Re: Java Script not working in PHP

Thank you Nullsig, but i found a easy way to do that... This code works good... :) :) ?> <td> <a href='full_delete.php?id=<?php echo $info['id'] ?>&article_name=<?php echo $info['name'] ?>&table_name=<?php echo $table_name ?>&index_img=<?php echo $info['img'] ?>&url=<?php echo $info['url'] ?>' onCli...
by shnkrsv
Thu May 31, 2012 1:45 am
Forum: PHP Scripts
Topic: Java Script not working in PHP
Replies: 2
Views: 933

Java Script not working in PHP

Am trying to use this very simple code for delete a record from my db. But before that i have to prompt the user for confirmation to delete or not. So am using this simple script in php, but its not working... Please some one help. <?php Print "<td><a href='full_delete.php?id=".$info['id']."&article...
by shnkrsv
Wed Mar 07, 2012 8:45 pm
Forum: PHP coding => General
Topic: Copy and Rename a file into a folder
Replies: 1
Views: 391

Copy and Rename a file into a folder

I was trying to copy a php file and trying to put into another location by renaming it. I got the result with this code: $url2='filename.php' $old = 'example.php'; $new = $url2; copy($old, $new) or die("Unable to copy $old to $new."); This code executes well and fine. But am not getting result for t...
by shnkrsv
Mon Oct 31, 2011 11:45 pm
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

I hav lots of doubts to ask u.. u should solve my queries... so u supposed to be my trainer.. :)
by shnkrsv
Mon Oct 31, 2011 11:11 pm
Forum: PHP coding => Images
Topic: white space below image
Replies: 0
Views: 1397

Re: white space below image

What's the height set to "Col-2" class? give me exact style code for "Col-2"
by shnkrsv
Mon Oct 31, 2011 10:56 pm
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Thank You... :) basically am owning my company.. Janana Technologies Solutions... and am a java developer cum web designer.. now getting into PHP..
Rupali is my trainer for PHP... :)
by shnkrsv
Mon Oct 31, 2011 4:05 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Ya.. thank you.. and don't be sorry for my name.. :)
Hope to find you to solve my next queries...
by shnkrsv
Mon Oct 31, 2011 3:55 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Have a great time... :D And my name is not "shnkrsv" its just an id.. Am "shiva.." Now i have to work to find how to display that image in my web page.. www.jananatech.net www.vssgroups.com www.sboapwa.com www.diamondbookbank.com www.jbbattery.com www.srinithiprinters.com This are some of my works.....
by shnkrsv
Mon Oct 31, 2011 3:47 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Oh k.. I understood... So everytime we need a folder to save our images, and as the same way we need to get back to view those images by ter names!
Thank you sooo much rupali.. :D.
by shnkrsv
Mon Oct 31, 2011 3:40 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

yap, now the db is updated the image file... then how to get back to display the image..?

I dont understand why you used upload folder there.. am new to php am not so advanced..
by shnkrsv
Mon Oct 31, 2011 3:30 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Ya, k.. I'll try and get back to you.. :)
by shnkrsv
Mon Oct 31, 2011 3:20 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Is ter any solutions found? :(
by shnkrsv
Mon Oct 31, 2011 3:02 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Attachment with full code and DB.
full.rar
(2.07 KiB) Downloaded 165 times
by shnkrsv
Mon Oct 31, 2011 2:54 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Wait, i'll send my code and db in package..
by shnkrsv
Mon Oct 31, 2011 2:45 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Ya, i have tried but still have the same issue... Wil ter be any problem in uploading the image? I'll send the image insert code now.. Code : //insert.php <?php $hostname = "localhost"; // usually is localhost, but if not sure, check with your hosting company, if you are with webune leave as localho...
by shnkrsv
Mon Oct 31, 2011 2:38 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

Ya.. Will get back u..
by shnkrsv
Mon Oct 31, 2011 2:31 am
Forum: PHP coding => Images
Topic: How to view image from DB.
Replies: 26
Views: 11187

Re: How to view image from DB.

I have tried it but still i cont view my images.... My Code : <?php $host = 'localhost'; $user = 'root'; $pw = ''; $db = 'demo'; mysql_connect($host,$user,$pw); mysql_select_db($db); $sql = "select * from first"; $result = mysql_query($sql) or die('Bad query at 12!'.mysql_error()); while($row = mysq...