What if I'm trying to retreive multiple field names by matching a column they own.
like:
*E404
Joe
*E403
Joe
*E402
Joe
*E401
Jim
If I did a search for Joe, I would get E404, E403, E402, E401..
Am I explaining this well enough?
$row = mysql_query("SELECT dept FROM $db_table WHERE superemail = '$sent_superemail' ");
$set_dept = $row[?];
$sql = "SELECT * FROM $dbtable WHERE dept = '$set_dept' "
Basicly I'm trying to get the dept based on the superemail, but I can't figure out how I would do it. I'm farely new to SQL...
This isn't getting put into the database, maybe it's because of a syntax error.. I'm not getting any error messages:
$creation = "INSERT INTO $uber_table ( `subject` , `comment` , `modif_sc` , `name` , `type`, `date` )
VALUES ('$subject', '$comment'...
Is there a way to bring up a "save as" dialog to save a certain set of variables? I also have a <textarea> that needs to be saved this way to.
Thanks ^_-
$query = "SELECT subject FROM $uber_table";
$result = mysql_fetch_array(mysql_query($query));
Retrieve($result);
// Retrieve This Data and put into link form.
//
function Retrieve($array)
{
foreach($array as $value)
Print("$value <br>");
}
Just trying to get this to print out all...
Would anyone know why I might not be getting an error message after trying to insert something into a database?
It doesn't actually insert, and it worked fine yesterday..
The only thing I did was add new fields in the database.
Help greatly appreciated.
my include file
//
// [CONNECT!]
global $db_host, $db_user, $db_pass, $db_use, $db_table, $linkID;
function Connect()
{
//if (!isset($db_host)) // If not set use defaults
$db_host=('localhost');
//if (!isset($db_user)) // If not set use defaults
$db_user=('root');
//if...
I'm trying to retreive a password out of a database
function Verify()
{
$query = mysql_query($run);
$run = " SELECT * FROM $dbtable WHERE acc='$sent_acc' AND pass='$sent_pass'; ";
if($run)
return true;
else
return false;
}
it always returns true
this is where I'm trying to verify if the...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.