0) $findterm = $findterm ." ".ucfirst($terms[$i]); } $id=str_replace('%20', ' ', $findterm); $qdisplay = str_replace('%20', ' ', $q); ?>

Symptoms and Causes

get($findterm."_articles_i"); $products = getarticle($findterm); echo $products; echo('

Check out the latest treatments for '.$qdisplay.'

'.$qdisplay.' treatment research studies

'.$mp.' clinical trials, surveys and public health registries

'); } function getarticle($findterm){ $url = "http://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=".str_replace(' ', '%20', $findterm)."&retmax=1"; $parse = file_get_contents($url); // find first occurance of $parse = between($parse,'',''); $parse = str_replace('<', '<', $parse); $parse = str_replace('>', '>', $parse); $parse = str_ireplace($findterm, ''.$findterm.'', $parse); if(empty($parse)){ $url = 'http://en.wikipedia.org/w/api.php?action=parse&page='.str_replace(' ', '%20', $findterm).'&format=json&prop=text§ion=0'; $ch = curl_init($url); curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($curl, CURLOPT_USERAGENT, 'patientsville/1.1 (http://patientsville.com/i.htm?q=Constipation&mp=keflex; artekllc@gmail.com) BasedOnSuperLib/1.4'); // required by wikipedia.org server; use YOUR user agent with YOUR contact information. (otherwise your IP might get blocked) $c = curl_exec($ch); $json = json_decode($c); $content = $json->{'parse'}->{'text'}->{'*'}; // get the main text content of the query (it's parsed HTML) // pattern for first match of a paragraph $pattern = '#

(.*?)

#s'; // http://www.phpbuilder.com/board/showthread.php?t=10352690 if(preg_match_all($pattern, $content, $matches)) { // print $matches[0]; // content of the first paragraph (including wrapping

tag) $parse = strip_tags(implode("\n\n",$matches[1])); // Content of the first paragraph without the HTML tags. $parse = $parse.('

Source:Wikipedia.org

'); $parse = str_ireplace($findterm, ''.$findterm.'', $parse); } else { $parse =('

We are sorry, but no medical information on this topic currently exists in our database. Our articles are updated often, please revisit soon.

'); } } return $parse; } function between($src,$start,$end){ $txt=explode($start,$src); $txt2=explode($end,$txt[1]); return trim($txt2[0]); } ?>

Find Drug Side Effect reports



'.$mp.' Side Effects'); $both_array = array(); $fda_array = array(); if(ctype_alpha($mp)){ // Require Library // require_once("../phpfastcache/phpfastcache.php"); //require("./phpfastcache/phpfastcache2.php"); // simple Caching with: //$cache = phpFastCache(); //$mp = 'Mucinex'; //$products = getlist($mp); //$cache->set("mucinex_fda_50", $products , 600); // Try to get $fda list from from Caching First // mucinex_fda_50 is "identity keyword"; //$products = $cache->get($mp."_fda_50"); $products = getlist($mp); echo $products; } } function getlist($mp) { //$con = mysql_connect("localhost","patient2_user3","best3"); //$con = mysqli_connect('localhost', 'patient2_user3','best3', 'patient2_patient_pvpoll'); //$mysqli = mysqli_connect('localhost', "patient2_new","JAuVP*P{?C)R0*)v,n", 'patient2_patient_pvpoll'); $mysqli = mysqli_connect('localhost', 'fordprob_pville','2Goldbirds$', 'fordprob_pvpoll'); if (!$mysqli) { die('Could not connect: ' . mysqli_connect_error()); } //mysql_select_db("patient2_patient_pvpoll", $con); $sql = "SELECT se, freq from `FDAMPSE` where mp = '".$mp."' ORDER BY `freq` DESC limit 50"; //echo($sql); $stmt = $mysqli->prepare($sql); $stmt->execute(); $fdaresult = $stmt->get_result(); //$fdanum = mysql_num_rows($fdaresult); //echo($fdanum); //$fdaresult = mysqli_query($sql) or die(mysqli_error()); //$fdanum = mysql_num_rows($fdaresult); //echo($fdanum); while($row = mysqli_fetch_assoc($fdaresult)) { $key = strtolower(trim($row['se'])); $both_array[$key] = $row['freq']; } /* add votes from fdaselist */ $sql = "SELECT se, count(*) as stot from fdaselist where mp = '".$mp."' group by se ORDER BY `stot` DESC limit 50"; $stmt = $mysqli->prepare($sql); $stmt->execute(); $result = $stmt->get_result(); //$result = mysql_query($sql) or die(mysql_error()); //$num = mysql_num_rows($result); /* add counts if match found */ while($row = mysqli_fetch_assoc($fdaresult)) { $key = strtolower(trim($row['se'])); if( array_key_exists( $key, $both_array )) { // if found - add frequency, otherwise ignore $both_array[$key] = $both_array[$key] + $row['stot']; } } arsort($both_array); $cTable = (''); $n=0; foreach ($both_array as $key => $value) { $n++; if($n < 51) { $se = substr( trim($key), 0, 50); $most = $most. '|'. ucfirst(substr($se, 0, 10)); $freq = $value; $trstyle = ''; $goodse = ucwords($se); $goodse = str_replace('I Have', '', $goodse); $goodse = str_replace(' Have ', '', $goodse); $selink = str_replace(' ', '-', $se); $link = ''; $cTable = $cTable.(''.$trstyle.'>'); } } $cTable = $cTable.('
'.$link.ucwords($se).' ('.$freq.')
'); if($fdanum > 0){ $cTable = $cTable.('

➢ More

'); } else { $cTable = $cTable.('

➢ More

'); } //mysql_close($con); //echo($cTable); return $cTable; } // end getlist function ?>


Common Meds

Abilify (10132)
Adderall (1304)
Amlodipine (6664)
Amoxicillin (4387)
Benadryl (1568)
Celebrex (12876 )
Celexa (1342)
Cialis (2975)
Cipro (8580)
Citalopram (7792)
Crestor (18839)
Cymbalta (14373)
Doxycycline (1757)
Effexor (7289)
Flexeril (435)
Flomax (2177)
Fluoxetine (4261)
Gabapentin (4593)
Hydrocodone (2469)
Ibuprofen (8222)
Lantus (10968)
Lexapro (3499)
Lipitor (17769)
Lisinopril (8919)
Lyrica (27148)
Medrol (650)
Mirena (41254)
Mobic (957)
Morphine (5356)
Naproxen (538)
Neurontin (6501)
Oxycodone (4438)
Pradaxa (13372)
Prednisone (5926)
Prilosec (2631)
Prozac (1954)
Seroquel (27216)
Simvastatin (8348)
Synthroid (4452)
Tamiflu (5585)
Topamax (3748)
Tramadol (5054)
Trazodone (1458)
Viagra (5394)
Vicodin (1153)
Wellbutrin (6324)
Xanax (2847)
Zocor (5718)
Zoloft(6792)
Zyrtec(1669)

Recent Reviews

prepare($sql); $stmt->execute(); $result = $stmt->get_result(); if(mysqli_num_rows($result) == 0){ //echo('Not Found'); } //echo("Drug Reports associated with '".$q."'"); while($row = mysqli_fetch_assoc($result)) { $url = ucfirst($row['url']); $desc = ucfirst($row['ddesc']); $desc = str_replace('&nbsp;', '', $desc); $desc = str_replace('<p>', '', $desc); $desc = str_replace('<em>', '', $desc); $desc = str_replace("<span style=''>", "", $desc); $desc = str_replace("</span>", "", $desc); $desc = str_replace("<span>", "", $desc); $desc = str_replace('</em>', '', $desc); //$reviews =$reviews.('

'.$desc.'

'); $reviews = $reviews.('

'.$desc.'

'); } $sql = "SELECT url, ddesc FROM `dquscomm` WHERE MATCH (ddesc) AGAINST ('".$q."' IN NATURAL LANGUAGE MODE) group by ddesc limit 10"; $stmt = $mysqli->prepare($sql); $stmt->execute(); $result = $stmt->get_result(); if(mysqli_num_rows($result) == 0){ //echo('Not Found'); } //echo("Drug Reports associated with '".$q."'"); while($row = mysqli_fetch_assoc($result)) { $url = ucfirst($row['url']); $desc = ucfirst($row['ddesc']); $desc = str_replace('&nbsp;', '', $desc); $desc = str_replace('<p>', '', $desc); $desc = str_replace('<em>', '', $desc); $desc = str_replace("<span style=''>", "", $desc); $desc = str_replace("</span>", "", $desc); $desc = str_replace("<span>", "", $desc); $desc = str_replace('</em>', '', $desc); //$reviews =$reviews.('

'.$desc.'

'); $reviews =$reviews.('

'.$desc.'

'); } //mysql_close($con); return $reviews; } ?>

Clinical Trials and Studies

Treatments might be new drugs or new combinations of drugs, new surgical procedures or devices, or new ways to use existing treatments. The goal of clinical trials is to determine if a new test or treatment works and is safe. Clinical trials can also look at other aspects of care, such as improving the quality of life for people with chronic illnesses. People participate in clinical trials for a variety of reasons. Healthy volunteers say they participate to help others and to contribute to moving science forward. Participants with an illness or disease also participate to help others, but also to possibly receive the newest treatment and to have the additional care and attention from the clinical trial staff.
get("STUDIES".$q.$mp); $studies = getstudies($mp, $q); echo($studies); function getstudies($mp, $q) { // check to see if stored already, and fetch //$q = $id; //$con = mysqli_connect('localhost', 'patient2_user3','best3', 'patient2_patient_pvpoll'); $mysqli = mysqli_connect('localhost', 'fordprob_pville','2Goldbirds$', 'fordprob_pvpoll'); //$con = mysql_connect("localhost","patient2_user3","best3"); if (!$con) { die('Could not connect: ' . mysql_error()); } //mysql_select_db("patient2_patient_pvpoll", $con); $sql = "select studies from study_list where q like '%".$_REQUEST['q']."%' or q like '%".$_REQUEST['mp']."%'"; //echo($sql); $result = mysqli_query($sql) or die(mysqli_error()); if(mysql_num_rows($result) > 0) { $row = mysql_fetch_array($result); $studies = $row['studies']; } else { // parse and store // read http://wsearch.nlm.nih.gov/ws/query?db=healthTopics&term=stomach%20pains&retmax=1 $url = 'http://clinicaltrials.gov/ct2/results/displayOpt?flds=a&flds=b&flds=t&submit_fld_opt=on&term='.str_replace(' ', '%20', $q).'&recr=Open&show_flds=Y'; //echo($url); $studies = file_get_contents($url); $studies = between($studies,'','
'); $studies = '
'.$studies; // replace links $studies = str_replace( '?term='.strtolower($q).'&recr=Open', '', $studies); $studies = str_replace( '?term='.$q.'&recr=Open', '', $studies); // mark up - need $studies = str_ireplace( $q, ' '.$q.' ', $studies); $studies = str_replace( '&flds=abt&submit_fld_opt=', '', $studies); // add to links to know referer $studies = str_replace( '/ct2/show/', '/study.htm?q='.strtolower($q).'&id=', $studies); // we can get title and other info here // ?? // store - need $studiesnq = str_replace( "'", "\'", $studies); $sql = "insert into study_list (q, studies) values ('$q', '$studiesnq')"; mysql_query($sql) or die(mysql_error()); } //mysql_close($con); return ($studies); } // end function ?>

© Copyright .

If you think you may have a medical emergency, call your doctor or 911 immediately.

By accessing this website, you are indicating your acknowledgement and acceptance of these Terms of Use. These Terms of Use are subject to change by WinFirst LLC at any time in its discretion. Your use of WinFirst LLC Site after such changes are implemented constitutes your acknowledgement and acceptance of the changes. Please consult these Terms of Use regularly. PatientsVille.com does not provide medical advice, diagnosis or treatment. The information contained on PatientsVille.com site has not been scientifically or otherwise verified as to a cause and effect relationship and cannot be used to estimate the incidence of adverse drug reactions or for establishing or changing of patient treatments.

Privacy | Terms | Contact us

privacy policy