ok thank you

In the same way can you tell me the difference between $0 and ${0} ?

$0 is used to refer file-name.

My question is "/transforms/" is any predefined command or a word "/transforms/" in my file..?

Hi
Can anyone explain me the following command.
This may be a minor one, but, please do explain in detail.

CHKTRANS=`echo ${0} | grep '/transforms/' | wc -l`

ok, i understood your explaaination, you mean to add ".htaccess file" right..? thank you... :)

Yes, and, actually many websites use the same, especially the e commerce websites. Using that kind of URLs will make my website and database a bit safe from hackers. So, can you/ anyone help me in getting urls like that...

"munna bharadwaj" is the name...
for example, see the url of this page, It is

...hp/threads/454418/display-name-in-url-from-sql

I want this type of url...
but, in my trails, i am getting

...hp/threads.php?id=454418

I want the php code for the first mentioned kind of urls...

Hi..!

I am having a list of members in my database, which i want to display in my website.

I am using php GET method, and the sample url is

http://www.mywebsite.com/display.php?id=564

Can anyone please help me in getting url like

http://www.mywebsite.com/munna_bharadwaj_564

I may not describe my question properly, but, hope you can understand...
Thanking you..
Bharadwaj

I'm getting result without error after submitting...
But, before searching i am getting that error,

<?php
include("config.php");
if($_SERVER["REQUEST_METHOD"] == "POST")
{
$q=$_POST['q'];
$q=mysql_real_escape_string($q);
$q_fix=str_replace(" ","%",$q); // Space replacing with %
$result=mysql_query("SELECT title FROM articles WHERE title LIKE '%$q_fix%'");
}
?>
<html>
<body>
<form method="post" action="">
<input type="text" name="q" /> <input type="submit" value=" Search " />
</form>

<?php 
while($row = mysqli_fetch_array($result))
{
$title=$row['title'];
echo '<div>'.$title.'</div>';
}
?>
</body>
</html>

Notice: Undefined variable: result in C:\wamp\www\myfirst_samp\search.php on line 19

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in C:\wamp\www\myfirst_samp\search.php on line 19

Please help me...

Dear admins..!! i am sorry for my previous post, but, now i am asking you this because i am poor in JS scripting.... i have seen a website. Here the menu and content are displayed in two different DIVs, but, i cant understand how to use that, i have concerned my friends and masters too, byt, they also did not understand how to apply, so, can you help me out in intgrating these both files.

Please....

index.php

<ol>
<?php

mysql_connect('localhost','root','');

mysql_select_db('munnajax_fetch');

$query = "select * from interndb";
$result = mysql_query($query);

while ($row = mysql_fetch_array($result))
{
    echo "<li><a href='description.php?id=$row[id]'>$row[by]</a></li>";
}
echo "<br>";
?>
</ol>

<div id="targetspace">Description should come here</div>

description.php

<table width="400">
<?php

mysql_connect('localhost','root','');

mysql_select_db('munnajax_fetch');

$id = $_REQUEST['id'];

$query = "select * from interndb where id='$id'";
$result = mysql_query($query);
$row = mysql_fetch_array($result);

echo "<tr><th>Intern By</th><td>$row[by]</td></tr>";
echo "<tr><th>Position</th><td>$row[title]</td></tr>";
echo "<tr><th>Duration</th><td>$row[duration]</td></tr>";
echo "<tr><th>Detailed Description</th><td>$row[desc]</td></tr>";

?>
</table>

Hi..! i have 2 files in a folder "form.php" "thankyou.php" after filling the form, user ir redirected to thankyou, but, if we click browser's BackTo button, the filled details are remaining in the fields. How to reset the form when clicking "Back".
This code i tried.... but no use

<!-- //
    function ClearForm(){
        document.MyForm.reset();
    }
    // -->

Hi Admin..!!

i want source code in php+ajax for a form, in such a way that, suppose i have a form in php, with 10 different fields, when the user fills that form, the fields next to gender should automaically change, like the remaining fields must be different for Male and Female.
As soon as the user selects his/her gender, the form fields must change....
Please help me out in getting code for this....

Hello Admin and other PHP experts..!! small question, how to send email to the email IDs, that are listed in a database, i want to sent it as "noreply(at)mydomian(dot)com" and the receipents should be in BCc. And the mail i send is a HTML Advertisement of my service. help me out please... If possible, provide me the code from Line1, i.e,

<?php
$con = mysql_connect("localhost","munna","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// YOUR GIFT SCRIPT FOR ME

mysql_close($con);
?>

Hello Admin and other PHP experts..!! small question, how to send email to the email IDs, that are listed in a database, i want to sent it as "noreply(at)mydomian(dot)com" and the receipents should be in BCc. And the mail i send is a HTML Advertisement of my service. help me out please... If possible, provide me the code from Line1, i.e,

<?php
$con = mysql_connect("localhost","munna","abc123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

// YOUR GIFT SCRIPT FOR ME

mysql_close($con);
?>

ok, thank you :) @pritaeas

i want a ready script, but, instead of music, i want to display product details, or company details, to prepare a v-card type.... so, users can enter query in the "search" bar

How to build a website like emp3world.com
Please help me...

Munna Bharadwaj