Error Selecting User from Data Base!
".
'Error:' . mysql_error() . '
Dbase Error
Error Checking Activity.
' . 'Error: '. mysql_error(). '
Functions for
| |||||||
|
| ||||||
![]()
0){
while($row = mysql_fetch_array($new)){
$ProjID = $row[0];
$ProjName = $row[1];
$ProjStat = $row[2];
echo(" ![]() "); } } */ $new = dbq("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Hot' ORDER BY due DESC","o"); foreach($new as $row){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } /* $newt = @mysql_query("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Open' ORDER BY due DESC"); if(!$newt){ echo("Problem getting Projects. Error: ". mysql_error()); } $num_rows = mysql_num_rows($newt); if($num_rows < 1){ echo("No Current Projects"); }else{ while($row = mysql_fetch_array($newt)){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } } } */ $newt = dbq("SELECT ID,Project_Name,status,due FROM task WHERE usrn='$usrn' AND status='Open' ORDER BY due DESC", "o"); if (count($newt) == 0) echo "No Current Projects. \r\n"; foreach($newt as $row){ $ProjID = $row[0]; $ProjName = $row[1]; $ProjStat = $row[2]; echo(" ![]() "); } ?>
|
![]()
0){
while($row=mysql_fetch_array($getquotes)){
$QIDs[]=$row['ID'];
$CIDs[]=$row['CID'];
$start=$row['started'];
$chunk_st = chunk_split($start, 2, ':');
$chunk_arrs = explode(":", $chunk_st);
$starts = $chunk_arrs[2].'/'.$chunk_arrs[3].'/'.$chunk_arrs[0].$chunk_arrs[1];
$starteds[]= $starts;
}//while getting rows
}//there are rows
else{
echo(" No Quotes Started "); $stopit="stop"; }//no quotes }//got quotes */ $getquotes=dbq("SELECT ID,CID,started FROM quotes_inv WHERE usrn='$usrn' ORDER BY started DESC", "ao"); if (count($getquotes) == 0) echo("No Quotes Started "); foreach($getquotes as $row){ $QIDs[]=$row['ID']; $CIDs[]=$row['CID']; $start=$row['started']; $chunk_st = chunk_split($start, 2, ':'); $chunk_arrs = explode(":", $chunk_st); $starts = $chunk_arrs[2].'/'.$chunk_arrs[3].'/'.$chunk_arrs[0].$chunk_arrs[1]; $starteds[]= $starts; } if($stopit!="stop"){ $i=0; $countem=count($QIDs); /* mysql_select_db('ecosmar_contacts', $dbcnx); while($i<$countem){ $getqcon=mysql_query("SELECT first_Name,Name,Company FROM con_main WHERE ID='$CIDs[$i]'"); if(!$getqcon){ $air[]="Problem getting Quote Contacts. Error: ". mysql_error(); }else{ $qcon=mysql_fetch_array($getqcon); $first_Name=$qcon['first_Name']; $Name=$qcon['Name']; $Company=$qcon['Company']; if($Company!=""){ $greet=$Company; }else{ $greet=$first_Name." ".$Name; }//company is blank }//got quote contact */ while($i<$countem){ $qcon=dbq("SELECT first_Name,Name,Company FROM con_main WHERE ID='$CIDs[$i]'" , "ao"); if (count($qcon) > 0){ $qcon = $qcon[0]; $first_Name=$qcon['first_Name']; $Name=$qcon['Name']; $Company=$qcon['Company']; if($Company!=""){ $greet=$Company; }else{ $greet=$first_Name." ".$Name; }//company is blank }//got quote contact echo(" • " .
"X " .
"Quote $QIDs[$i] - $greet "); }//foreach air }//air is not empty ?>
| ||||||
| |||||||
" .
"![]() | |||||||
$agt" . " | $ref1" . " | $trk" . " | $sp" . " | ||||
$off" . " | $ref2" . " | $psw" . " |
" .
"![]() | $inv1" . " | " . " |
" .
"![]() | ||
" .
"![]() | " .
"![]() | " .
"![]() |
" .
"![]() | ||
$pdb" . " | $ivt" . " | $wbf" . " |
$drl" . " | $drp" . " | $mfg" . " |
$fpd" . " | $phc" . " | $rfp" . " |
" .
"![]() | $ivtrd $ivtrw" . " |
![]() | |||
![]()
No Memo Posted");
}else{
$author = $row['author'];
$memo = stripslashes($row['memo']);
$dtnum = $row['dtnum'];
$chunk_mdt = chunk_split($dtnum, 2, ':');
$chunk_arrm = explode(":", $chunk_mdt);
$duem = $chunk_arrm[2].'/'.$chunk_arrm[3].'/'.$chunk_arrm[0].$chunk_arrm[1];
echo("
" .
"From: $author -- $duem" . " $memo" . " "); } } */ $new = dbq("SELECT author,memo,dtnum FROM main_memo", "ao"); if (count($new) == 0) echo(" No Memo Posted"); foreach($new as $row){ $author = $row['author']; $memo = stripslashes($row['memo']); $dtnum = $row['dtnum']; $chunk_mdt = chunk_split($dtnum, 2, ':'); $chunk_arrm = explode(":", $chunk_mdt); $duem = $chunk_arrm[2].'/'.$chunk_arrm[3].'/'.$chunk_arrm[0].$chunk_arrm[1]; echo(" From: $author -- $duem" . " $memo" . " "); } ?> ![]() |