Jump to content

Number match


RON_ron

Recommended Posts

<?php

$link = mysql_connect("localhost","inmy","inmypasw01");

mysql_select_db("inmy_dyomails");

 

$query = 'SELECT * FROM dyomails';

$results = mysql_query($query);

 

echo "<?xml version=\"1.0\"?>\n";

echo "<dyomails>\n";

// I want to match this number to an ID on the MySQL. Is the syntax ok?

$SomeVar = "APXI12345611";

 

$query = "SELECT * FROM dyomails WHERE ID = '$SomeVar'";

$results = mysql_query($query);

if($line = mysql_fetch_assoc($results))

{

echo = "<item>" . $line["Email"] . "</item>\n";

}

 

echo "</dyomails>\n";

mysql_close($link);

 

?>

Link to comment
https://forums.phpfreaks.com/topic/176596-number-match/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.