Hello There,
I m trying to Retrieve values from my database i,e "testshaiff" and the name of only table is "members". Finally i managed to retrieve values of the first row but the members table contain thousand of records and i need to search a particular value from search form (i,e members_id) and my script should work like; it search members_id value entered on form and match it will all members_id (in database) and then fetch complete row of that particular members_id. That shall be shown on the page.
Code is require to accomplish that task,
Thanks in advance.
Regards,
Shaiff
Retrieve Databse from form using php
Moderator: General Moderators
Re: Retrieve Databse from form using php
Yes, indeed. So perhaps you need to learn how to write code, yes?Shaiff wrote:Code is require to accomplish that task,
Re: Retrieve Databse from form using php
I like your signature 
Cause of the mouse trap right?
Cause of the mouse trap right?
Re: Retrieve Databse from form using php
You got it.jackpf wrote:I like your signature
Cause of the mouse trap right?
Re: Retrieve Databse from form using php
i just need code to retrieve data of a particular row which is entered on search form.
other code is something like
<?php
require("db_config.php");
require("db_connect.php");
$sql = 'SELECT * FROM `members` ';
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
print "<br></br>". $row['m_id']. " ";
?>
I want to enhance that code to advance level.
other code is something like
<?php
require("db_config.php");
require("db_connect.php");
$sql = 'SELECT * FROM `members` ';
$result=mysql_query($sql);
$row=mysql_fetch_array($result);
print "<br></br>". $row['m_id']. " ";
?>
I want to enhance that code to advance level.
Re: Retrieve Databse from form using php
Do that then.
Re: Retrieve Databse from form using php
The reason you're not getting much help is that you haven't asked a specific question and it sounds like you think that you're going to learn programming by asking questions in this forum. You can't. You have to learn programming in a class, or from a book, or from online tutorials, then you have to try to use what you learned. THEN, when you have an error you don't understand or it isn't doing what you expected it to do, THAT's when you come here to a forum and ask for help. So far, you're just wasting our time. When you have tried to learn the basics and are struggling with a specific technical problem, we will be glad to help you.Shaiff wrote:I want to enhance that code to advance level.
Re: Retrieve Databse from form using php
Mr califdon, as you said "you're just wasting our time"
So i won't bother you or your forum anymore.
Have Fun
So i won't bother you or your forum anymore.
Have Fun