Jump to content

simple question.. why isnt this working?


jbrill

Recommended Posts

Im trying to sort some queries form the database,

heres the code:

[code
<?
//already connected to database

//get these variables from the URL
$employee = $_GET['employee'];
$fromdate = $_GET['fromdate'];
$todate = $_GET['todate'];


$allresultssql = "SELECT * FROM workhours WHERE name='".$employee."' AND BETWEEN date='".$fromdate."' AND  date='".$todate."'";
$allresults = mysql_query($allresultssql);
$results = mysql_fetch_array($allresults);
?>

 

why will this not work?

Link to comment
https://forums.phpfreaks.com/topic/59969-simple-question-why-isnt-this-working/
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.