100+ results results for 'mysql_query repo:claws96/public_stuff' (126 ms)
19$query = "select *, unix_timestamp(comDateTo) as comUnixTo from tblCompetition where comPk=$comPk"; 20$result = mysql_query($query) or die('Query failed: ' . mysql_error()); 21$title = 'highcloud.net'; 123 $query = "select pilPk, pilHGFA from tblPilot where pilLastName='$name'"; 124 $result = mysql_query($query) or die('Query failed: ' . mysql_error()); 125 171 $query = "select T.tasPk, T.tasTaskType, C.comType from tblTask T, tblTrack TL, tblCompetition C where C.comPk=T.comPk and T.comPk=$comid and TL.traPk=$maxPk and TL.traStart > date_sub(T.tasDate, interval C.comTimeOffset hour) and TL.traStart < date_add(T.tasDate, interval (24-C.comTimeOffset) hour)"; 172 $result = mysql_query($query) or die('Query failed: ' . mysql_error()); 173 if (mysql_num_rows($result) > 0) 181 $query = "insert into tblComTaskTrack (comPk,tasPk,traPk) values ($comid,$tasPk,$maxPk)"; 182 $result = mysql_query($query) or die('ComTaskTrack failed: ' . mysql_error()); 183 225 $query = "update tblTrack set traGlider='$glider', traDHV='$dhv' where traPk=$maxPk"; 226 $result = mysql_query($query) or die('Update tblTrack failed: ' . mysql_error()); 227ebpls_abstractcoll.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 260 lines
72 73 $result=mysql_query("select lguname, lguprovince, lguoffice from ebpls_buss_preference") 74 or die(mysql_error()); 75 $resulta=mysql_fetch_row($result); 76$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resulta[0]'"); 77$getlgu = @mysql_fetch_row($getlgu); 77$getlgu = @mysql_fetch_row($getlgu); 78$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resulta[1]'"); 79$getprov = @mysql_fetch_row($getprov); 112$prefset = FetchArray($dbtype,$staxfee); 113 // $result = mysql_query("select tfodesc from ebpls_buss_tfo limit 8") 114$sassess = $prefset[staxesfees]; 115 116 $result = mysql_query("select a.tfoid, a.tfodesc from ebpls_buss_tfo a, rpt_temp_abs b 117 where a.tfoid=b.tfoid ") ;heidelpay_response.php https://bitbucket.org/isaacoheneayisi/ecommerce.git | PHP | 190 lines
48 mysql_select_db($connect->db); 49 $result = mysql_query("SELECT virtuemart_order_id FROM ".$connect->dbprefix."virtuemart_orders"." WHERE order_number = '".mysql_real_escape_string($orderID)."';"); 50 $row = mysql_fetch_object($result); 169 "response_ip = \"".mysql_real_escape_string($_SERVER['REMOTE_ADDR']). "\";" ; 170 $dbEerror = mysql_query($sql); 171 }ebpls_bus_indtaxdelinquent.html http://ebpls.googlecode.com/svn/trunk/ | HTML | 199 lines
28 29 $result=mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error()); 30 $resulta=mysql_fetch_row($result); 126 // unang gawang tama 127 $result=mysql_query("select ' ', ' ', ' ' , ' ', ' ' 128 from ebpls_business_enterprise") or die(mysql_error()); 131 /* sample/test ko lng 132 $result=mysql_query("select a.owner_id, a.business_name, a.business_city_code, a.business_type_code, 133 a.business_street, a.business_capital_investment, a.business_last_yrs_dec_gross_sales, b.fee_amount, 160 161 $result=mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error()); 162 $resulta=mysql_fetch_row($result);ebpls_ctc_issued.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 214 lines
82 83 $result=@mysql_query("select lguname, lguprovince from ebpls_buss_preference") 84 or die(mysql_error()); 85 $resulta=mysql_fetch_row($result); 86$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resulta[0]'"); 87$getlgu = @mysql_fetch_row($getlgu); 87$getlgu = @mysql_fetch_row($getlgu); 88$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resulta[1]'"); 89$getprov = @mysql_fetch_row($getprov); 115$date_to = date('Y-m-d', $xdate); 116 $result1=mysql_query("select concat(ctc_first_name, ' ', ctc_middle_name, ' ', ctc_last_name) as name, ctc_code, 117 ctc_address, ctc_date_issued, ctc_tax_due, ctc_tax_interest, ctc_additional_tax1, ctc_additional_tax2, ctc_additional_tax3 from ebpls_ctc_individual where ctc_date_issued between '$date_from' and '$date_to' order by name asc") 119 $x1 = @mysql_num_rows($result1); 120 $result2=mysql_query("select ctc_company, ctc_code, ctc_company_address, ctc_date_issued, ctc_tax_due, ctc_tax_interest, ctc_additional_tax1, ctc_additional_tax2 from ebpls_ctc_business where ctc_date_issued between '$date_from' and '$date_to' order by ctc_company asc") 121 or die(mysql_error());Database.singleton.php https://code.google.com/p/gctour/ | PHP | 311 lines
132 // do query 133 $this->query_id = @mysql_query($sql, $this->link_id); 134spo.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 218 lines
14 <?php $selPle="select localitati.nume, localitati.id_localitate from spo inner join localitati on spo.id_oras = localitati.id_localitate inner join tari on localitati.id_tara = tari.id_tara where tari.nume = 'Romania' Group by localitati.id_localitate Order by localitati.nume "; 15 $quePle=mysql_query($selPle, $conn_tz) or die(mysql_error()); ?> 16 Localitate Plecare: 24 <?php $selPle="select tari.nume, tari.id_tara from spo inner join tari on spo.id_tara = tari.id_tara inner join localitati on spo.id_oras = localitati.id_localitate inner join tari as tari_plec on localitati.id_tara = tari_plec.id_tara where tari_plec.nume = 'Romania' Group by tari.id_tara Order by tari.nume "; 25 $quePle=mysql_query($selPle, $conn_tz) or die(mysql_error()); ?> 26 Tari sosire: 46 $insEx="INSERT INTO exceptii_lista_spo (spo) VALUES ('".$_GET['scoate']."') "; 47 $queEx=mysql_query($insEx, $connect->link) or die(mysql_error()); 48 @mysql_free_result($queEx); 52$selEX="SELECT spo FROM exceptii_lista_spo GROUP BY spo "; 53$queEX=mysql_query($selEX, $connect->link) or die(mysql_error()); 54while($rowEX=mysql_fetch_array($queEX)) { 89 90$rez=mysql_query($query); 91$numar_total=mysql_num_rows($rez);ebpls.reportgenerator.funcs.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 458 lines
84 85 $res = mysql_query( $sqlSelect, $dbLink ); 86 111 112 $res = mysql_query( $sqlSelect, $dbLink ); 113 139 140 $res = mysql_query( $sqlSelect, $dbLink ); 141 166 167 $res = mysql_query( $sqlSelect, $dbLink ); 168 200 201 $res = mysql_query( $sqlSelect, $dbLink ); 202mutate_htmlsnippet.dynamic.php https://github.com/garryn/evolution.git | PHP | 225 lines
35$sql = 'SELECT internalKey, username FROM '.$tbl_active_users.' WHERE action=78 AND id=\''.$id.'\''; 36$rs = mysql_query($sql); 37$limit = mysql_num_rows($rs); 51 $sql = 'SELECT * FROM '.$tbl_site_htmlsnippets.' WHERE id=\''.$id.'\''; 52 $rs = mysql_query($sql); 53 $limit = mysql_num_rows($rs);class.eyemysqladap.inc.php https://github.com/kevinroberts/snippetz.git | PHP | 438 lines
116 { 117 $result = mysql_query($query, $this->link); 118mysql.php http://seo-phpbb.googlecode.com/svn/trunk/ | PHP | 479 lines
58 { 59 @mysql_query("SET NAMES 'utf8'", $this->db_connect_id); 60 // enforce strict mode on databases that support it 62 { 63 $result = @mysql_query('SELECT @@session.sql_mode AS sql_mode', $this->db_connect_id); 64 $row = @mysql_fetch_assoc($result); 82 $mode = implode(',', $modes); 83 @mysql_query("SET SESSION sql_mode='{$mode}'", $this->db_connect_id); 84 } 114 case 'begin': 115 return @mysql_query('BEGIN', $this->db_connect_id); 116 break; 118 case 'commit': 119 return @mysql_query('COMMIT', $this->db_connect_id); 120 break;parsetodb.php https://gitlab.com/bjwebb-codedump/plingconica.git | PHP | 219 lines
33 34 if ($result = mysql_query("SELECT * FROM `".$tablename."` WHERE id='".$array["id"]."'", $con)); 35 else die(mysql_error()); 66 if ($query) { 67 if (mysql_query($query)); 68 else { 215 216if (mysql_query("UPDATE `custom` SET `uptodate`=0 WHERE `uptodate`=1")); 217else die(mysql_error());install.php https://code.google.com/p/ezrpg/ | PHP | 340 lines
170QUERY; 171 mysql_query($query1) or die('Something went wrong.'); 172 184QUERY; 185 mysql_query($query2) or die('Something went wrong.'); 186 309 $query = 'INSERT INTO `' . DB_PREFIX . 'players` (`username`, `password`, `email`, `secret_key`, `registered`, `rank`) VALUES(\'' . mysql_real_escape_string($_POST['username']) . '\', \'' . mysql_real_escape_string(sha1($secret_key . $_POST['password'] . SECRET_KEY)) . '\', \'' . mysql_real_escape_string($_POST['email']) . '\', \'' . mysql_real_escape_string($secret_key) . '\', ' . time() . ', 10)'; 310 mysql_query($query); 311class.Ticker.inc.php http://flaimo-php.googlecode.com/svn/trunk/ | PHP | 266 lines
211 $sql .= ' VALUES (' . $tm->getTimestamp() . ',"' . addslashes($tm->getText()) . '");'; 212 $result = mysql_query($sql, $this->conn) or die ('Request not possible! SQL Statement: ' . $sql . ' / ' . mysql_error()); 213 } // end functionstudent_2.php https://bitbucket.org/deba666/accitsoftware.git | PHP | 93 lines
55 <?php $std_row="select * from student ORDER BY STUD_NO DESC"; 56 $q=mysql_query($std_row); 57 while($row=mysql_fetch_array($q))all_hotels.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 143 lines
2$sel_hoteluri = "SELECT Accommodation_UnitID, Accommodation_Name, Accommodation_Stars, Accommodation_City_Name, Accommodation_City_ID FROM preturi_transilvania GROUP BY Accommodation_UnitID "; 3$que_hoteluri = mysql_query($sel_hoteluri); 4while($row_hoteluri = mysql_fetch_array($que_hoteluri)) { 15 $sel_loc = "SELECT * FROM localitati_corespondent WHERE nume_furnizor = '".$hotels['localitate'][$key]."' AND code_furnizor = '".$hotels['localitate_id'][$key]."' AND id_furnizor = '".$id_furnizor."' "; 16 $que_loc = mysql_query($sel_loc); 17 $row_loc = mysql_fetch_array($que_loc); 19 $ins_city = "INSERT INTO localitati_corespondent (nume_furnizor, code_furnizor, id_furnizor) VALUES ('".$hotels['localitate'][$key]."', '".$hotels['localitate_id'][$key]."', '".$id_furnizor."') "; 20 $que_city = mysql_query($ins_city) or die(mysql_error()); 21 @mysql_free_result($que_city); 23 $sel_oras = "SELECT id FROM localitati_corespondent WHERE nume_furnizor = '".$hotels['localitate'][$key]."' AND code_furnizor = '".$hotels['localitate_id'][$key]."' AND id_furnizor = '".$id_furnizor."' "; 24 $que_oras = mysql_query($sel_oras); 25 $row_oras = mysql_fetch_array($que_oras); 34 $sel_hotels = "SELECT * FROM import_hoteluri WHERE nume_hotel = '".$value."' AND stele_hotel = '".$hotels['stele'][$key]."' AND city = '".$hotel_city."' "; 35 $que_hotels = mysql_query($sel_hotels); 36 $row_hotels = mysql_fetch_array($que_hotels);functions_db.php https://github.com/justinmc/turkiball.com.git | PHP | 389 lines
34 35 $QUERY = mysql_query("SELECT * FROM $table WHERE Index = '$index'"); 36 $DATA = mysql_fetch_array($QUERY); 54 55 $QUERY = mysql_query("SELECT * FROM $table WHERE `Index` = $index"); 56 $DATA = mysql_fetch_array($QUERY); 74 75 $QUERY = mysql_query("SELECT * FROM smf_messages WHERE ID_MSG = $id"); 76 $DATA = mysql_fetch_array($QUERY); 94 95 $QUERY = mysql_query("SELECT * FROM smf_members WHERE ID_MEMBER = $id"); 96 $DATA = mysql_fetch_array($QUERY); 123 { 124 $QUERY = mysql_query("SELECT * FROM smf_members WHERE ID_MEMBER = $count"); 125 $DATA = mysql_fetch_array($QUERY);trainingNaiveBayes.php https://bitbucket.org/astahiam/penduduk.git | PHP | 300 lines
29 $tabel = "select * from penduduktrain"; 30 $hasilSelect = mysql_query($tabel) or die (mysql_error()); 31 $jumlahRow = mysql_num_rows($hasilSelect); 55 $querycek = "select * from hasiltrain where hasil is not null"; 56 $c = mysql_query($querycek) or die (mysql_error()); 57 if(mysql_num_rows($c) > 0 ) { 62 //echo $querySejahtera; 63 $s = mysql_query($querySejahtera) or die (mysql_error()); 64 $jmlSejahtera = mysql_num_rows($s); 71 //echo $querySejahtera; 72 $p = mysql_query($queryPraSejahtera) or die (mysql_error()); 73 $jmlPraSejahtera = mysql_num_rows($p); 84 $queryNikahSejahtera = "SELECT p.*,h.* FROM penduduktrain p, hasiltrain h WHERE p.nik = h.idpenduduk and p.status = 'MENIKAH' and h.hasil = 'SEJAHTERA'"; 85 $ns = mysql_query($queryNikahSejahtera) or die (mysql_error()); 86 $jmlNikahSejahtera = mysql_num_rows($ns);hours.inc.php https://bitbucket.org/websightdesigns/project-manager.git | PHP | 256 lines
60 //echo $insert_sql . "<br />"; 61 $q = mysql_query($insert_sql); 62 //$_SESSION["command_results"]["addhours"] = "Your hours were added."; 81 $project_sql = "SELECT id FROM projects WHERE project_name LIKE '%" . str_replace($search_project, "", $_POST['search']) . "%'"; 82 $project_q = mysql_query($project_sql); 83 while($i = mysql_fetch_object($project_q)) { 107 $client_sql = "SELECT id FROM clients WHERE fullname LIKE '%" . str_replace($search_client, "", $_POST['search']) . "%'"; 108 $client_q = mysql_query($client_sql); 109 while($i = mysql_fetch_object($client_q)) { 133 $task_sql = "SELECT id FROM tasks WHERE task_title LIKE '%" . str_replace($search_task, "", $_POST['search']) . "%'"; 134 $task_q = mysql_query($task_sql); 135 while($i = mysql_fetch_object($task_q)) { 182 //echo "<pre>".$sql."</pre><br />"; 183 $q = mysql_query($sql) or die(mysql_error()); 184 $total_numrows = mysql_num_rows($q);editproduct.php https://bitbucket.org/shikhaupadhyay/advt.git | PHP | 208 lines
19 20 mysql_query($updatequery); 21 25 $sqlptype="select * from product_type where ProductId='".$_REQUEST['id']."'"; 26 $resptype=mysql_query($sqlptype); 27 $numptype=mysql_num_rows($resptype); 31 $Query = "update product_type set ProductId = '".$_GET['id']."' , ProductsType = '".$ProductType."' , SpicyType = '".$SpicyType."' , AddDate = '".date('Y-m-d H:i:s')."' where Id='".$rowptype['Id']."'"; 32 mysql_query($Query); 33 } 35 $Query = "insert into product_type set ProductId = '".$_GET['id']."' , ProductsType = '".$ProductType."' , SpicyType = '".$SpicyType."' , AddDate = '".date('Y-m-d H:i:s')."'"; 36 mysql_query($Query); 37 } 42$selectquery="select * from products where id='".$_GET['id']."'"; 43$result=mysql_query($selectquery) or die(mysql_error()); 44$row=mysql_fetch_object($result);user.php https://github.com/carlosefonseca/ER-client-webapp.git | PHP | 215 lines
48 49 $result = mysql_query($q); 50 if(!$result || (mysql_num_rows($result) != 1)){searchFriend.php http://projetwebdubail.googlecode.com/svn/trunk/ | PHP | 255 lines
104 105 $data=mysql_query($sql, $link); 106 158 $reqvote="SELECT COUNT(*) FROM voteutilisateur WHERE idVotant=".$_SESSION['userID']." AND idUtilisateur=".$id.";"; 159 $SQLVote=mysql_query($reqvote, $link); 160 $resultVote=mysql_result($SQLVote, 0); 246$req="SELECT COUNT(utilisateur.idUtilisateur) FROM utilisateur, estAmi WHERE estAmi.idUtilisateur=".$_SESSION['userID']." AND estAmi.idAmi=".$id." ; "; 247$sql=mysql_query($req, $link); 248$resultVote=mysql_result($sql, 0);mysql.inc git://pkgs.fedoraproject.org/mrbs | PHP | 508 lines
43 44 if (mysql_query($sql, $db_conn)) 45 { 57// a MIN or MAX aggregate function applied over no rows. 58function sql_mysql_query1 ($sql, $db_conn = null) 59{ 61 62 $r = mysql_query($sql, $db_conn); 63 if (! $r) 79// Returns 0 on error; use sql_error to get the error message. 80function sql_mysql_query ($sql, $db_conn = null) 81{ 83 84 $r = mysql_query($sql, $db_conn); 85 return $r;tara_new.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 340 lines
77 78$queZ=mysql_query($selZ) or die(mysql_error()); 79 189 190$queL=mysql_query($selL) or die(mysql_error()); 191 313 314$queL=mysql_query($selL) or die(mysql_error()); 315phorum.rb https://bitbucket.org/bitworkvn/cs_discourse.git | Ruby | 218 lines
30 31 total_count = mysql_query("SELECT count(*) count FROM #{TABLE_PREFIX}users;").first['count'] 32 33 batches(BATCH_SIZE) do |offset| 34 results = mysql_query( 35 "SELECT user_id id, username, email, real_name name, date_added created_at, 59 60 categories = mysql_query(" 61 SELECT forum_id id, name, description, active 83 84 total_count = mysql_query("SELECT count(*) count from #{TABLE_PREFIX}messages").first["count"] 85 86 batches(BATCH_SIZE) do |offset| 87 results = mysql_query(" 88 SELECT m.message_id id,mysql_query.c git://github.com/xbmc/xbmc.git | C | 371 lines
48{ 49 cmyth_mysql_query_t * query = (cmyth_mysql_query_t *)p; 50 if(query->buf != NULL) 206int 207cmyth_mysql_query_param_long(cmyth_mysql_query_t * query,long param) 208{ 221int 222cmyth_mysql_query_param_ulong(cmyth_mysql_query_t * query,unsigned long param) 223{ 280int 281cmyth_mysql_query_param_str(cmyth_mysql_query_t * query, const char *param) 282{ 350int 351cmyth_mysql_query(cmyth_mysql_query_t * query) 352{task.php http://airscore.googlecode.com/svn/trunk/ | PHP | 430 lines
37 $sql = "select T.*, TW.* from tblTask T left outer join tblTaskWaypoint TW on T.tasPk=TW.tasPk and TW.tawType='goal' where T.tasPk=$tasPk"; 38 $result = mysql_query($sql,$link) 39 or die('Task not associated correctly with a competition: ' . mysql_error()); 73 $query = "select traPk from tblComTaskTrack where tasPk=$tasPk"; 74 $result = mysql_query($query,$link); 75 $tracks = array(); 98$query = "select comPk from tblTask where tasPk=$tasPk"; 99$result = mysql_query($query) or die('Task not associated with a competition: ' . mysql_error()); 100$comPk = mysql_result($result,0,0); 121 $query = "insert into tblTaskAirspace (tasPk, airPk) values ($tasPk, $airPk)"; 122 $result = mysql_query($query) or die('Failed to connect airspace to task ' . mysql_error()); 123} 130 $query = "delete from tblTaskAirspace where taPk=$taPk"; 131 $result = mysql_query($query) or die('Failed to delete airspace association ' . mysql_error()); 132 }novoUsuario.php https://bitbucket.org/leopublic/dataweb.git | PHP | 242 lines
32 $sql = $sql." from USUARIO as a, PERFIL as b where a.NU_PERFIL = b.NU_PERFIL and a.NU_USUARIO = $id "; 33 $resultado = mysql_query($sql); 34 if(mysql_errno() != 0) {index.php http://clients-oriented-ftp.googlecode.com/svn/trunk/ | PHP | 308 lines
20 foreach ($query as $i => $value) { 21 $result = mysql_query($query[$i]); 22 if (mysql_error()) {GuestBook.php https://bitbucket.org/onlinechessportal/onlinechessgameportal | PHP | 215 lines
76 $insert = "INSERT INTO guestBook VALUES ('','$time','$gb_name','$gb_email','$gb_message')"; 77 if (mysql_query($insert)) { 78 $entries = mysql_query("SELECT `gb_timestamp`,gb_name,gb_email,gb_message FROM guestbook ORDER BY `gb_timestamp` DESC ");index.php https://gitlab.com/zanzilan/bgpanel.git | PHP | 427 lines
47$unixLastMin = time() - 1 * 60; 48$onlineClients = mysql_query( "SELECT `clientid`, `username` FROM `".DBPREFIX."client` WHERE `lastactivity` >= '".$unixLastMin."'" ); //We select all clients active in the last minute (based on unix timestamp) 49$onlineAdmins = mysql_query( "SELECT `adminid`, `username` FROM `".DBPREFIX."admin` WHERE `lastactivity` >= '".$unixLastMin."'" ); //Same 4 admins 53//Servers : 54$servers = mysql_query( "SELECT * FROM `".DBPREFIX."server` WHERE `status` = 'Active' && `panelstatus` = 'Started' ORDER BY `name`" ); 55 57//Boxes : 58$boxes = mysql_query( "SELECT `boxid`, `name`, `cache` FROM `".DBPREFIX."box` ORDER BY `name`" ); 59$cron = query_fetch_assoc( "SELECT `value` FROM `".DBPREFIX."config` WHERE `setting` = 'lastcronrun' LIMIT 1" ); 62//Last 15 Actions : 63$logs = mysql_query( "SELECT * FROM `".DBPREFIX."log` ORDER BY `logid` DESC LIMIT 15" ); 64themes.php http://novaboard.googlecode.com/svn/trunk/ | PHP | 487 lines
103 104mysql_query("UPDATE {$db_prefix}settings SET theme_order='$order', theme_limit='$limit', theme_method='$method'"); 105 217 218mysql_query("DELETE FROM {$db_prefix}themes WHERE theme_name ='$theme_name'"); 219 219 220mysql_query("INSERT INTO {$db_prefix}themes (theme_name, installed) VALUES ('$theme_name', '1')"); 221 273 274mysql_query("DELETE FROM {$db_prefix}themes WHERE theme_name ='$theme_name'"); 275class.plugin.php https://bitbucket.org/icarito/pmc | PHP | 255 lines
28 29 $ins = mysql_query("INSERT INTO plugins (name,description) VALUES ('$name','$description')"); 30 if ($ins) 57 $plugin = (int) $plugin; 58 $del = mysql_query("DELETE FROM plugins WHERE ID = $plugin"); 59 $this->delAllPluginEvents($plugin); 79 $plugin = (int) $plugin; 80 $upd = mysql_query("UPDATE plugins SET state = 1 WHERE ID = $id"); 81 } 91 $plugin = (int) $plugin; 92 $upd = mysql_query("UPDATE plugins SET state = 0 WHERE ID = $id"); 93 } 104 105 $sel = mysql_query("SELECT ID FROM plugins WHERE name = '$pluginname'"); 106 $chk = mysql_fetch_row($sel);diff.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 419 lines
55 $sql="SELECT distinct ISP from iplist"; 56 $result = mysql_query($sql); 57 if (isset($_POST['submit']) || isset($_POST['sort1']) ||isset($_POST['sort2'])) { 60 $sql1 = "SELECT distinct ISP from iplist where ISP <> '$subisp'"; 61 $result1 = mysql_query($sql1); 62 while($record = mysql_fetch_array($result1)) { 81 $sql="SELECT distinct province from iplist order by province"; 82 $result = mysql_query($sql); 83 while($record = mysql_fetch_array($result)) { 105 $sql="select distinct bestregion from stat order by bestregion"; 106 $result = mysql_query($sql); 107 if (isset($_POST['submit']) || isset($_POST['sort1']) ||isset($_POST['sort2'])) { 110 $sql1="select distinct bestregion from stat where bestregion <> '$subtest1' order by bestregion"; 111 $result1 = mysql_query($sql1); 112 while($record = mysql_fetch_array($result1)) {buscar_producto.php https://code.google.com/p/zapatillas-4-dsw1/ | PHP | 269 lines
35$query_Color = "SELECT * FROM Color"; 36$Color = mysql_query($query_Color, $db_zapatos) or die(mysql_error()); 37$row_Color = mysql_fetch_assoc($Color); 40$query_Talla = "SELECT * FROM Talla"; 41$Talla = mysql_query($query_Talla, $db_zapatos) or die(mysql_error()); 42$row_Talla = mysql_fetch_assoc($Talla); 45$query_Modelo = "SELECT mod_id, mod_descripcion FROM Modelo"; 46$Modelo = mysql_query($query_Modelo, $db_zapatos) or die(mysql_error()); 47$row_Modelo = mysql_fetch_assoc($Modelo); 50$query_PerfilCliente = "SELECT perfc_id, perfc_descripcion FROM Perfil_Cliente"; 51$PerfilCliente = mysql_query($query_PerfilCliente, $db_zapatos) or die(mysql_error()); 52$row_PerfilCliente = mysql_fetch_assoc($PerfilCliente); 55$query_Tipo = "SELECT * FROM Tipo"; 56$Tipo = mysql_query($query_Tipo, $db_zapatos) or die(mysql_error()); 57$row_Tipo = mysql_fetch_assoc($Tipo);payment_info.php https://github.com/azeckoski/az-php-sandbox.git | PHP | 394 lines
39 $sql = "update conferences set activated='Y' where id='".$_REQUEST['activate']."'"; 40 $result = mysql_query($sql) or die("Update query failed ($sql): " . mysql_error()); 41 } else if ($_REQUEST['deactivate']) { 42 $sql = "update conferences set activated='N' where id='".$_REQUEST['deactivate']."'"; 43 $result = mysql_query($sql) or die("Update query failed ($sql): " . mysql_error()); 44 } 79$count_sql = "select count(*) " . $from_sql . $sqlsearch; 80$result = mysql_query($count_sql) or die('Count query failed: ' . mysql_error()); 81$row = mysql_fetch_array($result); 126//print "SQL=$sql<br/>"; 127$result = mysql_query($sql) or die("Fetch query failed ($sql): " . mysql_error()); 128$items_displayed = mysql_num_rows($result); 243 $count_sql = "SELECT count(*) FROM conferences where activated = 'Y' and confId = '$CONF_ID'"; 244 $count_result = mysql_query($count_sql) or die("Count failed ($count_sql): " . mysql_error()); 245 $row = mysql_fetch_array($count_result);reporte_genera_reporte.php https://bitbucket.org/redesvas/rceldas.git | PHP | 357 lines
53 $sql="SELECT * FROM ".$_db.".PROCESOS_STATUS WHERE PROCESO='GENERA_REPORTE' "; 54 $res = mysql_query($sql, $_link); 55 67 $sql="SELECT * FROM ".$_db.".PROCESOS_STATUS_DETALLE WHERE ID_PROCESO = 6 "; 68 $result = mysql_query($sql, $_link); 69 79 $sql_st="UPDATE ".$_db.".PROCESOS_STATUS SET STATUS = 'RUNNING' , OBS='' WHERE PROCESO='GENERA_REPORTE' "; 80 mysql_query($sql_st, $_link); 81 } 85 $sql_st="UPDATE ".$_db.".PROCESOS_STATUS SET STATUS = 'RUNNING' , OBS='' WHERE PROCESO='GENERA_REPORTE' "; 86 mysql_query($sql_st, $_link); 87 } 91 $sql_st="UPDATE ".$_db.".PROCESOS_STATUS SET STATUS = 'RUNNING' , OBS='' WHERE PROCESO='GENERA_REPORTE' "; 92 mysql_query($sql_st, $_link); 93 }database.php https://bitbucket.org/sspssp/akk-berlin.git | PHP | 578 lines
102 103 $out=mysql_query( $query , $this->db ) or die('something went wrong'); 104 126 127 mysql_query( $query , $this->db ) or die('somethnig went wrong'); 128 143 144 mysql_query( $query , $this->db ) or die('somethnig went wrong'); 145 163 164 mysql_query( $query , $this->db ) or die('somethnig went wrong'); 165 185 186 mysql_query( $query , $this->db ) or die('somethnig went wrong'); 187inc.openup.php http://dj-r-old-admin.googlecode.com/svn/trunk/ | PHP | 251 lines
39 40 $res_openup=mysql_query($sql_openup,$db); 41 while($ligne_openup=mysql_fetch_object($res_openup)) 113 ORDER BY date_out DESC, etat_num"; 114 $res_events=mysql_query($sql_events,$db); 115 $total_loc_out=0;room_edit.php https://bitbucket.org/deba666/accitsoftware.git | PHP | 144 lines
3 { 4 if(mysql_query("UPDATE `room` SET `ROOM_CODE`='".$_POST['room_code']."', `ROOM_DESC`='".$_POST['room_name']."', `ROOM_CAPACITY`='".$_POST['capacity']."', `LOCATION_NO`='".$_POST['location']."', `STATUS`='".$_POST['is_active']."' WHERE `ROOM_NO`=".$_GET['rid'])) 5 $_SESSION['s_msg']="<strong>Well done!</strong> room successfully updated";rezervare_sejur_succes.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 269 lines
47$sel_bnr="SELECT * FROM curs_valutar "; 48$que_bnr=mysql_query($sel_bnr) or die(mysql_error()); 49$row_bnr=mysql_fetch_array($que_bnr);MySQLStorage.php https://bitbucket.org/maconeto/proman.git | PHP | 354 lines
144 { 145 if (!mysql_query( 146 "CREATE DATABASE IF NOT EXISTS `{$this->dbName}`", 154 155 $create = mysql_query( 156 "CREATE TABLE IF NOT EXISTS `{$this->dbName}`.`{$this->dbTable}` ( 251 $this->connect(); 252 $result = mysql_query( 253 "SELECT * FROM `{$this->dbName}`.`{$this->dbTable}`", 285 //Remove the pclass if it exists. 286 mysql_query( 287 "DELETE FROM `{$this->dbName}`.`{$this->dbTable}` 292 //Insert it again. 293 $result = mysql_query( 294 "INSERT INTO `{$this->dbName}`.`{$this->dbTable}`class_db_mysql.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 267 lines
31 $this->errorsFound = 1; 32 // Need to use mysql_querys here, to prevent loops!! 33 $query = 'INSERT INTO '. $config['database']['prefix'] .'log SET date = NOW(), userid = '. (int)$auth['userid'] .', type = 3, description = "'. strip_tags($error) .'", sort_tag = "SQL-Fehler"'; 34 if ($this->mysqli) mysqli_query($this->link_id, $query); 35 else mysql_query($query, $this->link_id); 36 91 if ($this->mysqli) @mysqli_query($this->link_id, "/*!40101 SET NAMES utf8_general_ci */;"); 92 else @mysql_query("/*!40101 SET NAMES utf8_general_ci */;", $this->link_id); 93 $this->success = true; 100 if ($this->mysqli) @mysqli_query($this->link_id, "/*!40101 SET NAMES utf8_general_ci */;"); 101 else @mysql_query("/*!40101 SET NAMES utf8_general_ci */;", $this->link_id); 102 } 138 } else { 139 $this->query_id = mysql_query($query, $this->link_id); 140 $this->sql_error = mysql_error($this->link_id);master.php https://gitlab.com/suman0359/physiohealthrs.com.git | PHP | 175 lines
24 <?php 25 $sql = mysql_query("SELECT * FROM tbl_news_blog WHERE blog_publication_status=1 "); 26 while ($search = mysql_fetch_array($sql)) { ?> 118 119 $sql = mysql_query("SELECT * FROM tbl_menu where menu_dropdown='$menu' and menu_status=1 order by menu_serial asc"); 120 while ($dropdown = mysql_fetch_array($sql)) {enroll_credit_bank_charge.php https://bitbucket.org/deba666/accitsoftware.git | PHP | 250 lines
23{ 24 mysql_query("update `due_history` set `DELETE_DATE`='".date('Y-m-d')."' where `IND_NO`='".$_POST['IND_NO'][$i]."'");//update due history table after make psayment 25} 25} 26 mysql_query("update `due` set `AMOUNT`='".$due_amount."' where `IND_NO`='".$_POST['IND_NO'][$i]."'"); 27 $_SESSION['s_msg']="<strong>Fine!</strong>Payment Credited Successfully"; 113 $i++; 114 $add1a=mysql_query("SELECT * from due where `IND_NO`=".$std_row23['IND_NO']); 115 while($row2a = mysql_fetch_array($add1a))add.php https://github.com/anodyne/sms.git | PHP | 366 lines
49 50 $result = mysql_query($query); 51 66 $getPosType = "SELECT positionType FROM sms_positions WHERE positionid = $position LIMIT 1"; 67 $getPosTypeResult = mysql_query($getPosType); 68 $positionType = mysql_fetch_row($getPosTypeResult); 78 $getGroupLevels = "SELECT * FROM sms_accesslevels WHERE id = $accessID LIMIT 1"; 79 $getGroupLevelsResult = mysql_query($getGroupLevels); 80 $groups = mysql_fetch_array($getGroupLevelsResult); 110 111 $result = mysql_query($query); 112 286 $ranks.= "AND rank.rankDisplay = 'y' GROUP BY rank.rankid ORDER BY rank.rankClass, rank.rankOrder ASC"; 287 $ranksResult = mysql_query( $ranks ); 288getCities.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 129 lines
17 echo "obj.options[obj.options.length] = new Option('-Please Select City-','');\n"; 18 $resultset = mysql_query("SELECT * FROM `ebpls_city_municipality`where upper='$prov'") or die(mysql_error()."dd"); 19 while($datarow = @mysql_fetch_array($resultset)) 38 echo "obj.options[obj.options.length] = new Option('-Please Select District-','');\n"; 39 $resultset = mysql_query("SELECT * FROM ebpls_district where upper='$prov'") or die(mysql_error()."dd"); 40 while($datarow = @mysql_fetch_array($resultset)) 70 echo "obj.options[obj.options.length] = new Option('-Please Select Barangay-','');\n"; 71 $resultset = mysql_query("SELECT * FROM ebpls_barangay where upper='$prov'") or die(mysql_error()."dd"); 72 while($datarow = @mysql_fetch_array($resultset)) 89 echo "obj.options[obj.options.length] = new Option('-Please Select Zone-','');\n"; 90 $resultset = mysql_query("SELECT * FROM ebpls_zone where upper='$prov'") or die(mysql_error()."dd"); 91 while($datarow = @mysql_fetch_array($resultset)) 103 echo "obj.options[obj.options.length] = new Option('-Please Select Barangay-','');\n"; 104 $resultset = mysql_query("SELECT * FROM ebpls_barangay where upper='$_GET[business_district_code]'") or die(mysql_error()."dd"); 105 while($datarow = @mysql_fetch_array($resultset))posts_controller.php https://github.com/jcalado/planetuga.git | PHP | 327 lines
186 // List all feeds 187 $sql = mysql_query("SELECT * FROM feeds ORDER BY id;"); 188 $numberfeeds = mysql_num_rows($sql); 231 // Check if it already exists using the permalink 232 $check = mysql_query("SELECT * FROM posts WHERE permalink = '$permalink'") or die(mysql_error()); 233 if (mysql_num_rows($check) == "0") { 236 $insert = "INSERT INTO posts (feed_id,user_id,title,slug,permalink,created_at,category,content) VALUES (\"$feed_id\",\"$user_id\",\"$title\",\"$slug\",'$permalink','$created_at','$category','$content')"; 237 mysql_query($insert) or die(mysql_error()); 238mysql.dbi.lib.php git://github.com/jyr/MNPP.git | PHP | 451 lines
171 if ($options == ($options | PMA_DBI_QUERY_STORE)) { 172 $r = mysql_query($query, $link); 173 } elseif ($options == ($options | PMA_DBI_QUERY_UNBUFFERED)) { 175 } else { 176 $r = mysql_query($query, $link); 177 }ebpls_orderpayment.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 292 lines
10 11$bgy = mysql_query("select * from ebpls_barangay where barangay_code='$brgy_name'"); 12$bgy = mysql_fetch_assoc($bgy); 86 87 $result=mysql_query("select lguname, lguprovince, lguoffice from ebpls_buss_preference") 88 or die(mysql_error()); 89 $resulta=mysql_fetch_row($result); 90$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resulta[0]'"); 91$getlgu = @mysql_fetch_row($getlgu); 91$getlgu = @mysql_fetch_row($getlgu); 92$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resulta[1]'"); 93$getprov = @mysql_fetch_row($getprov); 123 124 $result = mysql_query ("select concat(b.owner_first_name, ' ', b.owner_middle_name, ' ', b.owner_last_name) as fulln, 125 concat(b.owner_street, ' ', i.barangay_desc, ' ',j.city_municipality_desc, ' ', k.province_desc, ' ',admin.php https://code.google.com/p/nuked-klan/ | PHP | 266 lines
40 41 $sql = mysql_query("SELECT id, pseudo, send, mail, clan, game FROM " . DEFY_TABLE . " ORDER BY id DESC"); 42 $count = mysql_num_rows($sql); 45 46 $sql2 = mysql_query("SELECT name FROM " . GAMES_TABLE . " WHERE id='" . $game . "'"); 47 list($game_name) = mysql_fetch_array($sql2); 86 87 $sql = mysql_query("SELECT pseudo, clan, mail, icq, irc, url, pays, date, heure, serveur, game, type, map, comment FROM " . DEFY_TABLE . " WHERE id = '" . $did . "'"); 88 list($pseudo, $clan, $mail, $icq, $irc, $url, $country, $date, $heure, $serveur, $game, $type, $map, $comment) = mysql_fetch_array($sql); 90 91 $sql2 = mysql_query("SELECT name FROM " . GAMES_TABLE . " WHERE id = '" . $game . "'"); 92 list($game_name) = mysql_fetch_array($sql2); 115 116 $sql = mysql_query("SELECT pseudo FROM " . DEFY_TABLE . " WHERE id = '" . $did . "'"); 117 list($pseudo) = mysql_fetch_array($sql);@dbs.php https://bitbucket.org/comarius/buzznet.git | PHP | 549 lines
164 165 // Perform the query via std mysql_query function.. 166 $this->result = @mysql_query($query,$this->dbh);mysql.php https://hg.codeplex.com/cp3046team16bj | PHP | 413 lines
138 $sql = ' SHOW TABLES FROM ' . $table_name; 139 $results = mysql_query($sql, $this->connectionId) or $this->HandleException(); 140 178 $query = "DESCRIBE $TableName"; 179 $result = mysql_query($query) or $this->HandleException(); 180 246 247 $result = mysql_query($aStatement) or $this->HandleException(); 248 355 $query = "DESCRIBE $TableName"; 356 $result = mysql_query($query) or $this->HandleException(); 357load_db.cpp http://projecteqemu.googlecode.com/svn/trunk/ | C++ | 277 lines
26 "ORDER BY gridid,number", zone); 27 if(mysql_query(m, query) != 0) { 28 printf("Unable to query: %s\n", mysql_error(m)); 116 "WHERE zone='%s'", zone); 117 if(mysql_query(m, query) != 0) { 118 printf("Unable to query: %s\n", mysql_error(m)); 151 "WHERE zone='%s'", zone); 152 if(mysql_query(m, query) != 0) { 153 printf("Unable to query: %s\n", mysql_error(m)); 188 "WHERE zone='%s'", zone); 189 if(mysql_query(m, query) != 0) { 190 printf("Unable to query: %s\n", mysql_error(m)); 229 " WHERE zone='%s'", zone); 230 if(mysql_query(m, query) != 0) { 231// printf("Unable to query: %s\n", mysql_error(m));upload2.php https://github.com/delete66/sikevux-s-tracker.git | PHP | 93 lines
32//==== offer dropdown for offer mod 33$res = mysql_query("SELECT id, name, allowed FROM offers WHERE userid = $CURUSER[id] ORDER BY name ASC") or sqlerr(__FILE__, __LINE__); 34if (mysql_num_rows($res) > 0) {Mysql.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 499 lines
87 // Set the cached object 88 self::$query_cache[$hash] = new Mysql_Result(mysql_query($sql, $this->link), $this->link, $this->db_config['object'], $sql); 89 } 94 95 return new Mysql_Result(mysql_query($sql, $this->link), $this->link, $this->db_config['object'], $sql); 96 } 324 325 if ($query = mysql_query('SHOW COLUMNS FROM '.$this->escape_table($table), $this->link)) 326 {history-functions.php https://squirrelmail.svn.sourceforge.net/svnroot/squirrelmail | PHP | 312 lines
146 147 $results=@mysql_query("SELECT sdate, SUM(translated) AS translated, SUM(total) AS total " . 148 " FROM essential WHERE rev='$rev' AND team<>'templates' " . 200 201 $results=@mysql_query("SELECT sdate, SUM(translated) AS translated, SUM(total) AS total " . 202 " FROM essential WHERE rev='$rev' AND team='$teamcode' " .setdata.php https://bitbucket.org/dmdonnelly/developer-test.git | PHP | 207 lines
76 77 $result1 = mysql_query("DROP TABLE IF EXISTS `venue`"); 78 if (!$result1) { 82 83 $result2 = mysql_query( 84 "CREATE TABLE IF NOT EXISTS `venue` ( 93 94 $result3 = mysql_query("DROP TABLE IF EXISTS `venue_booking`"); 95 if (!$result3) { 99 100 $result4 = mysql_query( 101 "CREATE TABLE IF NOT EXISTS `venue_booking` ( 118 $sql_query = "SELECT * FROM " . $db_venue; 119 $result = mysql_query($sql_query); 120 $num_venue = mysql_num_rows($result);Session2.php https://bitbucket.org/Dzoki/travianx.git | PHP | 187 lines
38 } 39 $banned = mysql_query("SELECT reason, end FROM " . TB_PREFIX . "banlist WHERE active = 1 and time-" . time() . "<1 and uid = '" . $this->uid . "';"); 40 if(mysql_num_rows($banned)) { 68 if(!isset($_SESSION['wid'])) { 69 $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'vdata` WHERE `owner` = ' . $database->getUserField($_SESSION['username'], "id", 1) . ' LIMIT 1'); 70 $data = mysql_fetch_assoc($query); 73 if($_SESSION['wid'] == '') { 74 $query = mysql_query('SELECT * FROM `' . TB_PREFIX . 'vdata` WHERE `owner` = ' . $database->getUserField($_SESSION['username'], "id", 1) . ' LIMIT 1'); 75 $data = mysql_fetch_assoc($query); 183 184/*mysql_query("UPDATE " . TB_PREFIX . 185 "units SET u1 = '0', u2 = '0', u3 = '0', u4 = '0', u5 = '0', u6 = '0', u7 = '0', u8 = '0', u9 = '0', u10 = '0', u11 = '0', u12 = '0', u13 = '0', u14 = '0', u15 = '0', u16 = '0', u17 = '0', u18 = '0', u19 = '0', u20 = '0', u21 = '0', u22 = '0', u23 = '0', u24 = '0', u25 = '0', u26 = '0', u27 = '0', u28 = '0', u29 = '0', u30 = '0', u31 = '0', u32 = '0', u33 = '0', u34 = '0', u35 = '0', u36 = '0', u37 = '0', u38 = '0', u39 = '0', u40 = '0', u41 = '0', u42 = '0', u43 = '0', u44 = '0', u45 = '0', u46 = '0', u47 = '0', u48 = '0', u49 = '0', u50 = '0' WHERE u1>400000000 or u2>400000000 or u3>400000000 or u4>400000000 or u5>400000000 or u6>400000000 or u7>400000000 or u8>400000000 or u9>400000000 or u10>400000000 or u11>400000000 or u12>400000000 or u13>400000000 or u14>400000000 or u15>400000000 or u16>400000000 or u17>400000000 or u18>400000000 or u19>400000000 or u20>400000000 or u21>400000000 or u22>400000000 or u23>400000000 or u24>400000000 or u25>400000000 or u26>400000000 or u27>400000000 or u28>400000000 or u29>400000000 or u30>400000000 or u31>400000000 or u32>400000000 or u33>400000000 or u34>400000000 or u35>400000000 or u36>400000000 or u37>400000000 or u38>400000000 or u39>400000000 or u40>400000000 or u41>400000000 or u42>400000000 or u43>400000000 or u44>400000000 or u45>400000000 or u46>400000000 or u47>400000000 or u48>400000000 or u49>400000000 or u50>400000000");mysql.php https://gitlab.com/cherian/xmec.git | PHP | 317 lines
90 // mysql_select_db($db->database, $db->connect_id); // If you are having trouble with other apps uncomment this line. 91 $this->result=@mysql_query($query, $db->connect_id); 92 return $this->result;CariKelompokTaniUser.php https://bitbucket.org/ArgoWibowo/dutatani.git | PHP | 191 lines
50 mysql_select_db("iais_ukdw") or die("Database tidak ditemukan"); 51 $query= mysql_query("SELECT * FROM master_petani where ID_User = '$id_user';"); 52 $brsnama = mysql_fetch_array($query)functions.php https://bitbucket.org/asada03/camino.git | PHP | 266 lines
42 $q = "select password from ".DB_PREFIX."users where username = '$username' limit 1"; 43 $result = mysql_query($q,$conn); 44 if(!$result || (mysql_numrows($result) < 1)){ 173 $q = "select username from ".DB_PREFIX."users where email = '$email' limit 1"; 174 $result = mysql_query($q,$conn); 175 if (mysql_numrows($result) > 0) { 191 $q = "select username from ".DB_PREFIX."users where username = '$username' limit 1"; 192 $result = mysql_query($q,$conn); 193 return (mysql_numrows($result) > 0);quanlyphim.php http://quan-li-cua-hang-bang-dia.googlecode.com/svn/trunk/ | PHP | 152 lines
34 { 35 $kq=mysql_query("select * from phim", $link); 36 $tongsotrang=ceil(mysql_num_rows($kq)/$sodong); 62 $s="select * from phim limit ".$x.",".$sodong; 63 $k=mysql_query($s,$link); 64 $b=0; 74 <?php 75 $h=mysql_query("select tentheloaiphim from theloaiphim where matheloaiphim='".$dong["matheloaiphim"]."' ",$link); 76 while($d=mysql_fetch_array($h)) 83 <?php 84 $h1=mysql_query("select tendvphim from dienvienphim where madvphim='".$dong["madvphim"]."' ",$link); 85 while($d1=mysql_fetch_array($h1)) 92 <?php 93 $h2=mysql_query("select tennuocsx from nuocsanxuat where manuocsx='".$dong["manuocsx"]."' ",$link); 94 while($d2=mysql_fetch_array($h2))DB.php https://github.com/zackster/antfarm.git | PHP | 182 lines
16 $query = sprintf("SELECT disable_email_notifications FROM users WHERE id=%d", $uid); 17 $res = mysql_query($query); 18 $row = mysql_fetch_assoc($res); 24 $query = sprintf("INSERT INTO experience (uid,act,value) VALUES (%d,'%s',%d)", $uid,mysql_real_escape_string($act),$exp_value); 25 mysql_query($query); 26 return; 30 $query = sprintf("set @cnt :=0"); 31 mysql_query($query); 32 $query = sprintf("select @cnt := @cnt+1 as rank,dt.* FROM (SELECT users.username,sum(experience.value) as score from experience,users where users.id=experience.uid group by uid order by score desc limit 50) as dt"); 33 34 $res = mysql_query($query); 35 $ret = array(); 44 $scoreboard_query = sprintf("select count(distinct uid) as scoreboard_size from experience"); 45 $scoreboard_res = mysql_query($scoreboard_query); 46 $scoreboard_row = mysql_fetch_assoc($scoreboard_res);pdnsbackend.cc git://pkgs.fedoraproject.org/pdns | C++ | 485 lines
80 81 if (mysql_query(&d_database, inQuery.c_str()) != 0) { 82 throw AhuException("mysql_query failed"); 101 102 if (mysql_query(&d_database, inStatement.c_str()) != 0) { 103 throw AhuException(string("mysql_query failed")+string(mysql_error(&d_database)));addjp.php https://github.com/anodyne/sms.git | PHP | 347 lines
97 98 $result = mysql_query($query); 99 110 $updateTimestamp = "UPDATE sms_crew SET lastPost = UNIX_TIMESTAMP() WHERE crewid = $author LIMIT 1"; 111 $updateTimestampResult = mysql_query( $updateTimestamp ); 112 } 133 $userFetch.= "WHERE crew.crewid = $emailAuthor AND crew.rankid = rank.rankid LIMIT 1"; 134 $userFetchResult = mysql_query( $userFetch ); 135 223 $sql.= "ORDER BY crew.rankid ASC"; 224 $result = mysql_query( $sql ); 225 257 $missionTitle = "SELECT missionid, missionTitle FROM sms_missions WHERE missionStatus = 'current' LIMIT 1"; 258 $missionTitleResult = mysql_query( $missionTitle ); 259 $missionCount = mysql_num_rows( $missionTitleResult );Sections.php https://code.google.com/p/nuked-klan/ | PHP | 161 lines
63 64 $sql = mysql_query("SELECT secid, secname FROM " . SECTIONS_CAT_TABLE . " WHERE parentid = 0 ORDER BY position, secname"); 65 while (list($secid, $titre) = mysql_fetch_array($sql)) 75 76 $sql2 = mysql_query("SELECT secid, secname FROM " . SECTIONS_CAT_TABLE . " WHERE parentid = '" . $secid . "' ORDER BY position, secname"); 77 while (list($s_cid, $s_titre) = mysql_fetch_array($sql2)) 148 149 $upd = mysql_query("INSERT INTO " . SECTIONS_TABLE . " ( `artid` , `secid` , `title` , `content` , `autor` , `autor_id`, `counter` , `date` ) VALUES ( '' , '" . $data['secid'] . "' , '" . $data['title'] . "' , '" . $data['texte'] . "' , '" . $autor . "' , '" . $autor_id . "' , '' , '" . $date. "' )"); 150 $sql2 = mysql_query("SELECT artid FROM " . SECTIONS_TABLE . " WHERE title = '" . $data['title'] . "' AND date='".$date."'");insert_moduli.php https://code.google.com/p/bilugcms/ | PHP | 174 lines
64 $str=" SELECT titolo, titvideo, modulo, posizione, attivo, zona, ordine, titvideo_en, titvideo_fr, titvideo_de, titvideo_es, titvideo_pt FROM moduli where ID = $id LIMIT 1"; 65 $risultato=mysql_query($str); 66 if (mysql_num_rows($risultato)>0) 146 $str1=" SELECT titolo,ordine FROM moduli order by ordine"; 147 $risultato1=mysql_query($str1); 148 if (mysql_num_rows($risultato1)>0) 161 $str1=" SELECT max(ordine) FROM moduli"; 162 $risultato1=mysql_query($str1); 163 $var = mysql_fetch_row($risultato1);mysqlstorage.class.php https://bitbucket.org/programmerlab/ourteam.co.in.git | PHP | 336 lines
126 127 if (!mysql_query( 128 "CREATE DATABASE IF NOT EXISTS `{$this->dbName}`", 136 137 $create = mysql_query( 138 "CREATE TABLE IF NOT EXISTS `{$this->dbName}`.`{$this->dbTable}` ( 233 $this->connect(); 234 $result = mysql_query( 235 "SELECT * FROM `{$this->dbName}`.`{$this->dbTable}`", 267 //Remove the pclass if it exists. 268 mysql_query( 269 "DELETE FROM `{$this->dbName}`.`{$this->dbTable}` 274 //Insert it again. 275 $result = mysql_query( 276 "INSERT INTO `{$this->dbName}`.`{$this->dbTable}`studentfeed_lookup_questions.php https://code.google.com/p/classroom-presenter/ | PHP | 346 lines
32 33 $voteresults = mysql_query($votequery, $db_conn); 34 if (!$voteresults) 96 } 97 $results = mysql_query($query, $db_conn); 98 if (!$results) 134 // Run the query and fetch the results 135 $results = mysql_query($query, $db_conn); 136 if (!$results) 176 // Run the query and fetch the results 177 $results = mysql_query($query, $db_conn); 178 if (!$results) 212 // Run the query and fetch the results 213 $results = mysql_query($query, $db_conn); 214 if (!$results)privatemessages.php http://mxprojects.googlecode.com/svn/trunk/ | PHP | 280 lines
91 //fire it off 92 $result = mysql_query("UPDATE ".TABLE_PREFIX."_private SET ".$userType."Status = ".$statusToUpdate." WHERE messageID = ".$id); 93 100 if($statusToUpdate == PM_DELETE_MESSAGE){ 101 $result = mysql_query("DELETE FROM ".TABLE_PREFIX."_private 102 WHERE messageID = ".$id." 160 // Build query to fetch the PMs 161 $result = mysql_query("SELECT SQL_CALC_FOUND_ROWS p.*, u.username 162 FROM ".TABLE_PREFIX."_users u, ".TABLE_PREFIX."_private p 172 //get the total PMs 173 $totalResult = mysql_query("SELECT FOUND_ROWS() AS totalMessages"); 174 if(!$totalResult){ 223 //get the userID of the person we are sending this to (and a current count of the PMs they have) 224 $result = mysql_query("SELECT COUNT(p.recipientID) AS currentMessages 225 FROM ".TABLE_PREFIX."_private pinc.stats.php http://dj-r-old-admin.googlecode.com/svn/trunk/ | PHP | 190 lines
20$sql_select_interval="SELECT PERIOD_DIFF(".substr($today_format_mysql,0,4).substr($today_format_mysql,5,2).",200402) AS nb_de_mois;"; // arguments au format YYMM ou YYYYMM 21$req_interval= mysql_query($sql_select_interval) or die('Erreur SQL !<br>'.$sql_select_interval.mysql_error()); 22if($data_interval= mysql_fetch_assoc($req_interval)) 40$sql_select="SELECT SUM(somme) AS ca FROM cpt_journal WHERE no_compte_credit='621' "; 41$req= mysql_query($sql_select) or die('Erreur SQL !<br>'.$sql_select.mysql_error()); 42$data= mysql_fetch_assoc($req); 44$sql_select_2="SELECT SUM(somme) AS ca_en_cours FROM cpt_journal WHERE no_compte_credit='621' AND date>'2007-03-01 00:00:00' "; //modifier date ici 45$req_2= mysql_query($sql_select_2) or die('Erreur SQL !<br>'.$sql_select_2.mysql_error()); 46$data3= mysql_fetch_assoc($req_2); 48$sql_select2="SELECT count(*) AS nb_client_total FROM `contacts` WHERE type_client='1' AND date_ajout BETWEEN '2004-03-01' AND NOW()"; 49$req2= mysql_query($sql_select2) or die('Erreur SQL !<br>'.$sql_select2.mysql_error()); 50$data2= mysql_fetch_assoc($req2); 52$sql_select3="SELECT count(*) AS nb_client_en_cours FROM `contacts` WHERE type_client='1' AND date_ajout BETWEEN '2007-03-01' AND NOW()"; //modifier date ici 53$req3= mysql_query($sql_select3) or die('Erreur SQL !<br>'.$sql_select3.mysql_error()); 54$data4= mysql_fetch_assoc($req3);luamysql.cpp http://luasp.googlecode.com/svn/trunk/ | C++ | 402 lines
46 int lua_mysql_insert_id(lua_State* L); 47 int lua_mysql_query(lua_State* L); 48 71 {"insert_id",libmysql::lua_mysql_insert_id}, 72 {"query",libmysql::lua_mysql_query}, 73 // rowset functions 87 {"insert_id",libmysql::lua_mysql_insert_id}, 88 {"query",libmysql::lua_mysql_query}, 89 {0,0} 245 246int libmysql::lua_mysql_query(lua_State* L) 247{SlowPub_webservicesE.php http://slowpub-development.googlecode.com/svn/trunk/ | PHP | 512 lines
73 $query = "SELECT * FROM reg_menu WHERE type = 'soup_salad_appy'"; 74 $result = mysql_query($query); 75 $numberOfFields = mysql_num_rows($result); 83 $query = "SELECT * FROM reg_menu WHERE type = 'main_forno'"; 84 $result = mysql_query($query); 85 $numberOfFields = mysql_num_rows($result); 93 $query = "SELECT * FROM reg_menu WHERE type = 'sandwich_pasta'"; 94 $result = mysql_query($query); 95 $numberOfFields = mysql_num_rows($result); 142 $query = "SELECT * FROM daily_menu"; 143 $result = mysql_query($query); 144 $numberOfFields = mysql_num_rows($result); 185 $query = "SELECT 'offsaleText' FROM details"; 186 $result = mysql_query($query); 187 $row = mysql_fetch_array($result);sync_functions.php https://bitbucket.org/kostyantyn_kyyashko/kino-teatr.ua.git | PHP | 343 lines
4 $sql = "SELECT mc.id, mc.name AS name, mcl.title AS name_ukr FROM grifix_main_cinemas mc LEFT JOIN grifix_main_cinemas_lng mcl ON (mc.id = mcl.record_id AND mcl.lang_id = 3)"; 5 $res = mysql_query($sql); 6 $arr = array(); 14 $sql = "SELECT mch.id AS hall_id, mch.cinema_id, mch.name, mchl.title AS name_ukr FROM grifix_main_cinemas_halls mch LEFT JOIN grifix_main_cinemas_halls_lng mchl ON (mch.id = mchl.record_id AND mchl.lang_id = 3)"; 15 $res = mysql_query($sql); 16 $arr = array(); 100 $sql = "SELECT gmf.title_orig, gmf.name AS title, gmf.year, gmf.id, gmfl.title AS title_ukr, gmfr.title AS title_rus FROM grifix_main_films gmf LEFT JOIN grifix_main_films_lng gmfl ON (gmf.id = gmfl.record_id AND gmfl.lang_id = 3) LEFT JOIN grifix_main_films_lng gmfr ON (gmf.id = gmfr.record_id AND gmfr.lang_id = 1)"; 101 $res = mysql_query($sql); 102 $arr = array(); 144 $sites_url = 'http://server.megakino.com.ua/gate/sites'; 145 mysql_query("TRUNCATE temp_auto_films_cmd"); 146 $sites_url .= '?sessionid='.$session_id; 187// $sql = "INSERT INTO `grifix_main_shows_eventmap`(`show_id`, `event_id`, `site_id`, `response`) VALUES ($show_id,$event_id,'$site_id','$map_response')"; 188// mysql_query($sql); 189// }Db.inc.php https://github.com/Kodomo/Dazzler.git | PHP | 205 lines
65 else{ 66 mysql_query("SET NAMES 'utf8';",$this->Identificador); 67 } 150 $NumeroDeConsultas++; 151 $this->ResultadoConsulta = @mysql_query($Query,$this->Identificador); 152 $this->UltimoId = @mysql_insert_id($this->Identificador);public-auto-spare-part.php https://gitlab.com/Chhorvan/autoexpresscambodia_mobile.git | PHP | 276 lines
71 $sql_count_str=$sql_search; 72 $sql_count = @mysql_query($sql_count_str); 73 $this->total_num_row= @mysql_num_rows($sql_count); 84 //echo $sql_search; 85 if( !$sql = @mysql_query($sql_search) ){ 86 require_once BASE_CLASS . 'class-log.php'; 122 123 if( !$sql = @mysql_query($sql_search) ){ 124 require_once BASE_CLASS . 'class-log.php'; 156 157 if( !$sql = @mysql_query($sql_search) ){ 158 require_once BASE_CLASS . 'class-log.php'; 194 195 if( !$sql = @mysql_query("SELECT * FROM `page` WHERE `page_slug`='$this->slug' AND `page_group`='$this->group' LIMIT 1;") ) 196 {agree_arc_det.php https://github.com/aryonp/Magnolia.git | PHP | 167 lines
16 "WHERE u.id = '$agr_id' "; 17$agree = @mysql_query($q_agree) or die(mysql_error()); 18$showAgree = mysql_fetch_array($agree); 32 "WHERE a.id = '$agr_id' "; 33$agree_data_SQL = @mysql_query($agree_data_query) or die(mysql_error()); 34$array = mysql_fetch_array($agree_data_SQL); 50 $update_file_query = "UPDATE agreement SET code_date = '$file_date', code_val = '$file_validated', code_notes = '$file_note' WHERE id = '$agr_id';"; 51 @mysql_query($update_file_query) or die(mysql_error()); 52 log_hist("",$agr_id); 143 "WHERE ul.id <= '5' AND u.del = '0' AND u.hidden = '0' AND u.active = '1' ;"; 144 $val_name_SQL = mysql_query($val_name_query); 145 while($val_name_array = mysql_fetch_array($val_name_SQL)) {MySql.php https://github.com/amanai/next24.git | PHP | 374 lines
42 /** 43 * Wrapper for mysql_query, to extend it with logging abilities 44 * 270 if ($link !== null) 271 return mysql_query($sql, $link); 272 else 272 else 273 return mysql_query($sql); 274 }functions.php https://bitbucket.org/shopworksnl/wrike.git | PHP | 433 lines
107 if(is_object($object)){ 108 mysql_query("INSERT INTO wrike SET wrike_task_id='".$object->task->id."', zendesk_id='".$extraParams['zendesk_id']."'") or die(mysql_error()); 109 } 178 global $consumer; 179 $q = mysql_query("SELECT * FROM wrike WHERE zendesk_id='".$extraParams['zendesk_id']."'"); 180 $r = mysql_fetch_assoc($q);mani_mysql.cpp http://maniadminplugin.googlecode.com/svn/trunk/ | C++ | 385 lines
223 224 if (mysql_query( my_data, temp_string ) != 0) 225 { 270 271 if (mysql_query( my_data, temp_string ) != 0) 272 {eBPLS.economic.class.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 340 lines
286 { 287 $tx = mysql_query("select * from $tble where economic_area_id = '$origid' "); 288 $tx = mysql_fetch_array($tx); 290 291 $rx=mysql_query("select * from $tble where $prim_key = '$new_code' and $prim_key <> '$origid' "); 292 $this->outnumrow = mysql_num_rows($rx);assessment.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 260 lines
11//get naturecode 12$getnat = mysql_query ("select a.bus_code, b.naturedesc, a.cap_inv, a.last_yr 13 from tempbusnature a, ebpls_buss_nature b 17 18$cnt = mysql_query ("select natureid 19 from ebpls_buss_taxfeeother a, ebpls_buss_tfo c 24 25$getd1 = mysql_query ("select c.tfodesc, a.taxfeeamtfor, a.taxfeeid, b.naturedesc, a.taxfeeind, 26 a.taxfeeoption, a.taxfeemode,c.taxfeetype 45 46 $temp = mysql_query ("select a.natureid, a.taxfeeid, a.multi, 47 c.tfodesc, b.taxfeeamtfor,b.taxfeeind 62 63 $getrange = mysql_query("select rangeamount 64 from ebpls_buss_taxrange whererollback.php http://timoseven.googlecode.com/svn/trunk/ | PHP | 107 lines
15 $sql="select distinct group_name from group_ip_map;"; 16 $result = mysql_query($sql); 17 while($record = mysql_fetch_array($result)) { 72 $insertsql = "insert into `conf_file` (`group_name`,`nginx_file`,`admin_ip`) values ('".$group."','".$newcontent."','".$ip."')"; 73 mysql_query($insertsql); 74 $ipsql="select ip_addr from group_ip_map where group_name='$group'"; 74 $ipsql="select ip_addr from group_ip_map where group_name='$group'"; 75 $result=mysql_query($ipsql); 76 while($record = mysql_fetch_array($result)){libmysql.def http://maniadminplugin.googlecode.com/svn/trunk/ | Module-Definition | 155 lines
86 mysql_stmt_result_metadata 87 mysql_query 88 mysql_read_query_resulttrace2table.php https://github.com/hipe/php-analysis.git | PHP | 369 lines
78 $q = "show tables where Tables_in_".$this->database." = '$this->table_name'"; 79 $rs = mysql_query( $q ); 80 return (bool) mysql_num_rows( $rs ); 84 $q = "select count(*) from `$this->table_name`"; 85 $rs = mysql_query( $q ); 86 $row = mysql_fetch_row( $rs ); 173 protected function run_sql( $q ){ 174 $ret = mysql_query( $q ); 175 if (false===$ret){lgu_page.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 189 lines
122$sql = "Select * from ebpls_province where province_code = $get_infor[upper]"; 123$province = @mysql_query($sql); 124$get_province = @mysql_fetch_assoc($province);mem_edit_invoice_admin.php https://github.com/traceyambrose/foodcoop.git | PHP | 360 lines
11 product_id = "'.$product_id.'"'; 12 $resulti = @mysql_query($sqli,$connection) or die(mysql_error()); 13 while ( $row = mysql_fetch_array($resulti) ) 25 AND product_id = "'.$product_id.'"'; 26 $resultq = @mysql_query($sqlq,$connection) or die(mysql_error()); 27 while ( $row = mysql_fetch_array($resultq) ) 50 AND product_id = "'.$product_id.'"'; 51 $resultdelete = @mysql_query($sqld,$connection) or die(mysql_error()); 52 $message4 = '<b>Product was removed from basket.</b>'; 62 product_id = "'.$product_id.'"'; 63 $resultus = @mysql_query($sqlus,$connection) or die("Could not execute query updating stock in public product list."); 64 $sqlus2 = ' 70 product_id = "'.$product_id.'"'; 71 $resultus2 = @mysql_query($sqlus2,$connection) or die("Could not execute query updating stock in prep list."); 72 }block_event.php https://gitlab.com/donaldinou/nuked-gamer.git | PHP | 298 lines
100 101 $sql1 = mysql_query('SELECT titre, date_jour, date_mois, date_an, heure, auteur FROM ' . CALENDAR_TABLE . ' WHERE date_an = \'' . $year . '\' AND date_mois = \'' . $month . '\' AND date_jour = \'' . $event_date . '\' ORDER BY heure'); 102 $nb_event = mysql_num_rows($sql1); 104 if (defined("WARS_TABLE")){ 105 $sql2 = mysql_query('SELECT * FROM ' . WARS_TABLE . ' WHERE date_an = \'' . $year . '\' AND date_mois = \'' . $month . '\' AND date_jour = \'' . $event_date . '\' '); 106 $nb_match = mysql_num_rows($sql2); 113 if ($nuked['birthday'] != 'off'){ 114 $sql3 = mysql_query('SELECT user_id, age FROM ' . USER_DETAIL_TABLE); 115 while (list($tuid, $tage) = mysql_fetch_array($sql3)){ 127 128 $sql_test = mysql_query('SELECT pseudo FROM ' . USER_TABLE . ' WHERE id = \'' . $tuid . '\' '. $and); 129 $test = mysql_num_rows($sql_test); 141 if (defined("WARS_TABLE")){ 142 $sql = mysql_query('SELECT etat, adversaire, type, date_jour, date_mois, date_an, heure, style, tscore_team, tscore_adv FROM ' . WARS_TABLE . ' WHERE date_an = \'' . $year . '\' AND date_mois = \''. $month . '\' AND date_jour = \'' . $event_date . '\' AND heure >= \'' . $heure2 . '\' AND heure < \'' . $heure1 . '\' ORDER BY heure'); 143 while (list($etat, $adv_name, $type_match, $jour, $mois, $an, $heure, $style, $score_team, $score_adv) = mysql_fetch_array($sql)){build-editor.php https://bitbucket.org/obsidian/selador | PHP | 389 lines
50 $query = "delete from $module where id=".$_REQUEST['id']; 51 mysql_query ($query); 52 $cmd = "overview"; // Und wieder die Ãœbersicht anzeigen 182 echo $query; 183 if (!mysql_query ($query)) 184 echo "<b>Fehler beim Einfügen von $query: ".mysql_error()."</b><br>\n"; 202 $query = "select * from $module where id=".$id; 203 $res = mysql_query ($query); 204 $dbrow = mysql_fetch_array ($res); 231 $race_query = "select * from races order by raceid"; 232 $res = mysql_query ($race_query); 233 339 $query = "select id, name, race from buildings"; 340 $gebres = mysql_query ($query); 341 while ($gebrow = mysql_fetch_array ($gebres))merge_dico.inc http://twpug.googlecode.com/svn/trunk/ | PHP | 209 lines
94//As well as terms that where left for translation 95mysql_query("DELETE FROM sugar_terms WHERE lang = 'TRX' and version_id='$version_id' "); 96mysql_query("DELETE FROM sugar_lang_trx where trx = ''"); 156 $query .= implode("),(", $sql_values).")"; 157 mysql_query($query) or die("<SPAN class=msg-err>A mysql error occured : ".mysql_error()."</SPAN>"); 158} 161$lang_pack_name = $trxMnf->get("name"); 162mysql_query("UPDATE sugar_terms SET text = '$html_charset' where version_id = $version_id and lang = 'TRX' and array_id = 'app_strings' and label_id = 'LBL_CHARSET'"); 163mysql_query("UPDATE sugar_terms SET text = '$lang_pack_name' where version_id = $version_id and lang = 'TRX' and array_id = 'app_list_strings' and label_id = 'language_pack_name'"); 178 $query .= implode("),(", $sql_values).")"; 179 mysql_query($query) or die("<SPAN class=msg-err>A mysql error occured : ".mysql_error()."</SPAN>"); 180}Summary_grafik_detail_kecamatan.php https://bitbucket.org/ArgoWibowo/si_aktivitas_tani.git | PHP | 210 lines
104 mysql_select_db("iais_ukdw") or die("Database tidak ditemukan"); 105 $query= mysql_query("SELECT * FROM master_spesies_tanaman where ID_Spesies = '$id_spesies';"); 106 $brsnama = mysql_fetch_assoc($query);Utente.class.php http://antilophpe.googlecode.com/svn/ | PHP | 373 lines
276 WHERE ant_Utente.id = ".$this->getId().""; 277 $result = mysql_query($query, $this->getResourceLinkId()) or die('Query: '.$query.' Error during selection in table `ant_Utente`: '.mysql_errno($this->getResourceLinkId()).' - '.mysql_error($this->getResourceLinkId())); 278 while($user_array=mysql_fetch_array($result)){ 299 AND ant_Utente_File.tableObject='ant_Utente'"; 300 $result = mysql_query($query, $this->getResourceLinkId()) or die('Query: '.$query.' Error during selection in table `ant_Utente_File`: '.mysql_errno($this->getResourceLinkId()).' - '.mysql_error($this->getResourceLinkId())); 301 $filesList=array(); 315 WHERE ant_Utente_File.id='$fileId'"; 316 $result = mysql_query($query, $this->getResourceLinkId()) or die('Query: '.$query.' Error during selection file in table `ant_Utente_File`: '.mysql_errno($this->getResourceLinkId()).' - '.mysql_error($this->getResourceLinkId())); 317 $user_File_array=mysql_fetch_assoc($result); 329 AND ant_Utente_File.tableObject='ant_Utente'"; 330 $result = mysql_query($query, $this->getResourceLinkId()) or die('Query: '.$query.' Error during selection in table `ant_Utente_File`: '.mysql_errno($this->getResourceLinkId()).' - '.mysql_error($this->getResourceLinkId())); 331 $user_File_array=mysql_fetch_array($result); 341 FROM ant_Utente_Log"; 342 $result = mysql_query($query, $this->getResourceLinkId()) or die('Query: '.$query.' Error during select count from table `ant_Utente_Log`: '.mysql_errno($this->getResourceLinkId()).' - '.mysql_error($this->getResourceLinkId())); 343 $user_Log_array=mysql_fetch_array($result);utils.php https://gitlab.com/jiyath/pligg-cms.git | PHP | 488 lines
17 // checks to see if a table in the database exists 18 $result = mysql_query('select * from ' . $table); 19 if (!$result) { 424 // checks to see if field exists in table 425 $result = mysql_query('select * from ' . $table . ' LIMIT 1'); 426 if (!$result) { 447 // checks to see if field exists in table 448 $result = mysql_query('SHOW INDEX from ' . $table); 449 if (!$result) {klotterplank.php https://github.com/Rambutan/hamsterpaj.git | PHP | 298 lines
47 $query = makeQuery($mode, $criteria); 48 $result = mysql_query($query) or die('Ett fel har upstått:<br/>' . mysql_error()); 49 $genderlabels['P'] = 'Pojke'; 128 $query = 'SELECT COUNT(id) AS total FROM klotterplank WHERE userid = ' . $_SESSION['login']['id'] . ' AND timestamp > UNIX_TIMESTAMP() - 60'; 129 $result = mysql_query($query); 130 $data = mysql_fetch_assoc($result); 216 $query .= '("' . $_SESSION['login']['id'] . '", UNIX_TIMESTAMP(), "' . $message . '")'; 217 mysql_query($query) or die('Det uppstod ett fel när inlägget skrevs till databasen. Försök igen senare<br/>' . mysql_error()); 218 global $entries; 219 $query = 'DELETE FROM klotterplank WHERE id = ' . intval(mysql_insert_id() - $entries) . ' LIMIT 1'; 220 mysql_query($query) or die(report_sql_error($query)); 221 if ($_SESSION['login']['userlevel'] < 5) {user-show-autoinfo.php https://gitlab.com/Chhorvan/autoexpresscambodia_mobile.git | PHP | 353 lines
50 $sql_delete="DELETE from `auto_info` WHERE `id` = '$delete' AND `owner`='$owner'"; 51 @mysql_query($sql_delete); 52 header("Location: auto-info?deleteresult=success"); 65 $sql_search="SELECT * from auto_info WHERE id = '$id' AND `owner`='$owner'"; 66 $sql= @mysql_query($sql_search) ; 67 if(mysql_num_rows($sql)>0) return true; 81 $sql_search="SELECT * from auto_info WHERE id = '$get_id'"; 82 if( !$sql = @mysql_query($sql_search) ){ 83 require_once BASE_CLASS . 'class-log.php'; 189 190 if( !$sql = @mysql_query($sql_search) ){ 191 require_once BASE_CLASS . 'class-log.php'; 242 //echo $sql_insert; 243 if( !$sql = @mysql_query($sql_insert) ){ 244 require_once BASE_CLASS . 'class-log.php';install.php https://bitbucket.org/icarito/pmc | PHP | 430 lines
70 //Create MySQL Tables 71 $table1 = mysql_query("CREATE TABLE `company` ( 72 `ID` int(10) NOT NULL auto_increment, 84 85 $table2 = mysql_query("CREATE TABLE `company_assigned` ( 86 `ID` int(10) NOT NULL auto_increment, 93 94 $table3 = mysql_query("CREATE TABLE `files` ( 95 `ID` int(10) NOT NULL auto_increment, 116 117 $table4 = mysql_query("CREATE TABLE `log` ( 118 `ID` int(10) NOT NULL auto_increment, 133 134 $table5 = mysql_query("CREATE TABLE `messages` ( 135 `ID` int(10) NOT NULL auto_increment,ebpls_collection_summary.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 249 lines
101$datenext = $dateprev + 1; 102$lgu=mysql_query("select * from ebpls_buss_preference") 103 or die(mysql_error()); 106 107 $result=@mysql_query("select * from ebpls_buss_tfo where taxfeetype='$taxtype'") 108 or die(mysql_error()); 109// $resulta=mysql_fetch_array($result); 110$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resulta[lguname]'"); 111$getlgu = @mysql_fetch_row($getlgu); 111$getlgu = @mysql_fetch_row($getlgu); 112$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resulta[lguprovince]'"); 113$getprov = @mysql_fetch_row($getprov); 128$Y_Table_Position = 55; 129$resultpp=@mysql_query("select * from ebpls_buss_taxfeetype where taxfeetype='$taxtype'") 130 or die(mysql_error());applicationforms.php https://bitbucket.org/mannir/agp.git | PHP | 173 lines
9if(isset($_REQUEST['from']) && isset($_REQUEST['to']) && isset($_REQUEST['sortby'])) { $fr=$_REQUEST['from']; $to=$_REQUEST['to']; $sb=$_REQUEST['sortby']; 10 $query = mysql_query("SELECT *,(select department from _programmes where _programmes.PROGRAMME=_application.programme1 LIMIT 1) AS department FROM `_application` 11WHERE id>='$fr' AND id<='$to' ORDER BY '$sb'"); $ar = array(); while($line = mysql_fetch_array($query, MYSQL_ASSOC)){ $ar[] = $line; } 15 $o = (object) mysqli_fetch_assoc(mysqli_query($con,"SELECT max(id) as mxid FROM _application")); $mxid=$o->mxid; 16$query = mysql_query("SELECT *,(select department from _programmes where _programmes.PROGRAMME=_application.programme1 LIMIT 1) AS department FROM `_application` 17WHERE id>=1 AND id<='$mxid'"); $ar = array(); while($line = mysql_fetch_array($query, MYSQL_ASSOC)){ $ar[] = $line; }menu_tecnico.php https://bitbucket.org/joseluisroot/general.git | PHP | 210 lines
2include('../conexion/conexion_admin.php'); 3$result = mysql_query("SELECT orden_trabajo.Id, 4 cliente.Codigo,edit.php https://github.com/heidymadia/sfbackup.git | PHP | 54 lines
7$sql = "UPDATE `opportunities` SET `AccountId` = '{$_POST['AccountId']}' , `Amount` = '{$_POST['Amount']}' , `CampaignId` = '{$_POST['CampaignId']}' , `CloseDate` = '{$_POST['CloseDate']}' , `CreatedById` = '{$_POST['CreatedById']}' , `CreatedDate` = '{$_POST['CreatedDate']}' , `CurrentGenerators__c` = '{$_POST['CurrentGenerators__c']}' , `DeliveryInstallationStatus__c` = '{$_POST['DeliveryInstallationStatus__c']}' , `Description` = '{$_POST['Description']}' , `ExpectedRevenue` = '{$_POST['ExpectedRevenue']}' , `Fiscal` = '{$_POST['Fiscal']}' , `FiscalQuarter` = '{$_POST['FiscalQuarter']}' , `FiscalYear` = '{$_POST['FiscalYear']}' , `ForecastCategory` = '{$_POST['ForecastCategory']}' , `ForecastCategoryName` = '{$_POST['ForecastCategoryName']}' , `HasOpportunityLineItem` = '{$_POST['HasOpportunityLineItem']}' , `IsClosed` = '{$_POST['IsClosed']}' , `IsDeleted` = '{$_POST['IsDeleted']}' , `IsPrivate` = '{$_POST['IsPrivate']}' , `IsWon` = '{$_POST['IsWon']}' , `LastActivityDate` = '{$_POST['LastActivityDate']}' , `LastModifiedById` = '{$_POST['LastModifiedById']}' , `LastModifiedDate` = '{$_POST['LastModifiedDate']}' , `LeadSource` = '{$_POST['LeadSource']}' , `MainCompetitors__c` = '{$_POST['MainCompetitors__c']}' , `Name` = '{$_POST['Name']}' , `NextStep` = '{$_POST['NextStep']}' , `OrderNumber__c` = '{$_POST['OrderNumber__c']}' , `OwnerId` = '{$_POST['OwnerId']}' , `Pricebook2Id` = '{$_POST['Pricebook2Id']}' , `Probability` = '{$_POST['Probability']}' , `StageName` = '{$_POST['StageName']}' , `SystemModstamp` = '{$_POST['SystemModstamp']}' , `TotalOpportunityQuantity` = '{$_POST['TotalOpportunityQuantity']}' , `TrackingNumber__c` = '{$_POST['TrackingNumber__c']}' , `Type` = '{$_POST['Type']}' WHERE `id` = '$id' "; 8mysql_query($sql) or die(mysql_error()); 9echo (mysql_affected_rows()) ? "Edited row.<br />" : "Nothing changed. <br />"; 11} 12$row = mysql_fetch_array ( mysql_query("SELECT * FROM `opportunities` WHERE `id` = '$id' ")); 13?>function.mysql-query.html git://pkgs.fedoraproject.org/kdewebdev | HTML | 496 lines
3><TITLE 4>mysql_query</TITLE 5><META 75></A 76>mysql_query</H1 77><DIV 83> (PHP 3, PHP 4 )</P 84>mysql_query -- Send a MySQL query</DIV 85><DIV 93CLASS="methodname" 94>mysql_query</B 95> ( string query [, resource link_identifier [, int result_mode]])<BR 99CLASS="function" 100>mysql_query()</B 101> sends a query to the currentlytakeedit.php https://github.com/delete66/sikevux-s-tracker.git | PHP | 199 lines
67 68$select_torrent = mysql_query('SELECT * FROM torrents WHERE id = ' . sqlesc($id)) or sqlerr(__FILE__, __LINE__); 69$fetch_assoc = mysql_fetch_assoc($select_torrent) or stderr('Error', 'No torrent with this ID!'); 192$updateset[] = 'multiplicator = ' . sqlesc($multiplicator); 193mysql_query('UPDATE torrents SET ' . implode(',', $updateset) . ' WHERE id = ' . sqlesc($id)) or sqlerr(__FILE__, __LINE__); 194search.php http://mightmedia.googlecode.com/svn/trunk/ | PHP | 155 lines
47 if ($_POST['m'] == 'naujienos' || $_POST['m'] == 'vis' && isset($conf['puslapiai']['naujienos.php']['id'])) { 48 $sqlas3 = mysql_query1("SELECT * FROM `" . LENTELES_PRIESAGA . "naujienos` WHERE `pavadinimas` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' OR `naujiena` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' LIMIT 0,100") or die(klaida("Klaida", mysql_error())); 49 if (mysql_num_rows($sqlas3) > 0) { 57 if ($_POST['m'] == 'frmt' || $_POST['m'] == 'vis' && isset($conf['puslapiai']['frm.php']['id'])) { 58 $sqlas4 = mysql_query1("SELECT * FROM `" . LENTELES_PRIESAGA . "d_straipsniai` WHERE `pav` LIKE " . escape("%" . $_POST['s'] . "%") . "LIMIT 0,100") or die(klaida("Klaida", mysql_error())); 59 if (mysql_num_rows($sqlas4) > 0) { 67 if ($_POST['m'] == 'frm' || $_POST['m'] == 'vis' && isset($conf['puslapiai']['frm.php']['id'])) { 68 $sqlas5 = mysql_query1("SELECT * FROM `" . LENTELES_PRIESAGA . "d_zinute` WHERE `zinute` LIKE " . escape("%" . $_POST['s'] . "%") . "LIMIT 0,100") or die(klaida("Klaida", mysql_error())); 69 if (mysql_num_rows($sqlas5) > 0) { 78 if ($_POST['m'] == 'str' || $_POST['m'] == 'vis' && isset($conf['puslapiai']['straipsnis.php']['id'])) { 79 $sqlas6 = mysql_query1("SELECT * FROM `" . LENTELES_PRIESAGA . "straipsniai` WHERE `t_text` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' or `f_text` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' or `pav` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' LIMIT 0,100") or die(klaida("Klaida", mysql_error())); 80 if (mysql_num_rows($sqlas6) > 0) { 89 if ($_POST['m'] == 'siunt' || $_POST['m'] == 'vis' && isset($conf['puslapiai']['siustis.php']['id'])) { 90 $sqlas7 = mysql_query1("SELECT * FROM `" . LENTELES_PRIESAGA . "siuntiniai` WHERE `pavadinimas` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' or `apie` LIKE " . escape("%" . $_POST['s'] . "%") . " AND `rodoma`='TAIP' LIMIT 0,100") or die(klaida("Klaida", mysql_error())); 91 if (mysql_num_rows($sqlas7) > 0) {detaillegal.php https://bitbucket.org/Iowane_Tamani/feejeetrav.git | PHP | 400 lines
7}else{ 8//$fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `members` WHERE username='".$_SESSION['username']."'")); 9}useradmin.php https://gitlab.com/jack/senegad.git | PHP | 439 lines
69 70 $result = mysql_query($sql) or die(mysql_error()); 71 $row = mysql_fetch_row($result); 210 211 $result = mysql_query($sql) or die(mysql_error()); 212 $row = mysql_fetch_row($result); 219 $sql .= "userlevel='$ulevel', email='$email'"; 220 mysql_query($sql) or die(mysql_error()); 221 239 $sql .= "lname='$lname', userlevel='$ulevel', email='$email' WHERE username='$uname'"; 240 mysql_query($sql) or die(mysql_error()); 241 256 $sql = "DELETE FROM " . DB_TABLE_PREFIX . "users WHERE uid='$id'"; 257 mysql_query($sql) or die(mysql_error()); 258 }ebpls_motor_permit.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 346 lines
12 13 $result=mysql_query("select lguname, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error()); 14 $resultsa=mysql_fetch_row($result); 14 $resultsa=mysql_fetch_row($result); 15$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resultsa[0]'"); 16$getlgu = @mysql_fetch_row($getlgu); 16$getlgu = @mysql_fetch_row($getlgu); 17$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resultsa[1]'"); 18$getprov = @mysql_fetch_row($getprov); 49 50 $result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name), 51 b.motorized_motor_model, b.motorized_motor_no, b.motorized_chassis_no, b.motorized_plate_no, b.motorized_body_no, 61 62 $result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name), 63 b.motorized_motor_model, b.motorized_motor_no, b.motorized_chassis_no, b.motorized_plate_no, b.motorized_body_no,ebpls_fish_permit.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 298 lines
9 10 $result=mysql_query("select lguname, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error()); 11 $resulta=mysql_fetch_row($result); 11 $resulta=mysql_fetch_row($result); 12$getlgu = @mysql_query("select city_municipality_desc from ebpls_city_municipality where city_municipality_code = '$resulta[0]'"); 13$getlgu = @mysql_fetch_row($getlgu); 13$getlgu = @mysql_fetch_row($getlgu); 14$getprov = @mysql_query("select province_desc from ebpls_province where province_code = '$resulta[1]'"); 15$getprov = @mysql_fetch_row($getprov); 30if ($reportpermit == '1') { 31$result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name), 32 concat(a.owner_street, ', ', d.zone_desc, ', ', e.barangay_desc, ', ', f.district_desc, ', ', g.city_municipality_desc, ', ', 37} else { 38 $result = mysql_query("select concat(a.owner_first_name, ' ', a.owner_middle_name, ' ', a.owner_last_name), 39 concat(a.owner_street, ', ', d.zone_desc, ', ', e.barangay_desc, ', ', f.district_desc, ', ', g.city_municipality_desc, ', ',confirmfinalbill.php https://bitbucket.org/vincentbii/amurt.git | PHP | 200 lines
21 $patqry="SELECT e.*,p.* FROM care_encounter AS e, care_person AS p WHERE e.encounter_nr=$patientno AND e.pid=p.pid"; 22 //$resultpatqry=mysql_query($patqry); 23 if($resultpatqry=$db->Execute($patqry)){ 29/* $finalqry="SELECT bill_amount,bill_outstanding FROM care_billing_bill WHERE bill_encounter_nr=$patientno ORDER BY bill_bill_no"; 30 $resultfinalqry=mysql_query($finalqry); 31 $cntbill=mysql_num_rows($resultfinalqry);koberitaacara.php https://bitbucket.org/justmyfreak/sisfokampus | PHP | 206 lines
31 if($level=='Karyawan Jurusan'){ 32 $jur=mysql_query("SELECT a.Kode , b.Nama_Indonesia FROM karyawan_jurusan a , jurusan b where a.Kode=b.Kode AND a.ID=$unip"); 33 } 34 else if($level=='Mahasiswa'){ 35 $jur=mysql_query("SELECT a.KodeJurusan as Kode , b.Nama_Indonesia FROM mhsw a , jurusan b where a.KodeJurusan=b.Kode AND a.nim=$unip"); 36 } 37else if($level=='Dosen'){ 38 $jur=mysql_query("SELECT a.KodeJurusan as Kode , b.Nama_Indonesia FROM dosen a , jurusan b where a.KodeJurusan=b.Kode AND a.id=$unip"); 39 } 40 else if($level=='Kajur'){ 41 $jur=mysql_query("SELECT a.Kode , b.Nama_Indonesia FROM kajur a , jurusan b where a.Kode=b.Kode AND a.ID=$unip"); 42 } 46 47 $fak=mysql_query("SELECT a.KodeFakultas , b.Nama_Indonesia FROM mhsw a , fakultas b where a.KodeFakultas=b.Kode AND a.KodeJurusan=$kode limit 1"); 48 $fakeks=mysql_fetch_array($fak);EditKecamatan.php https://bitbucket.org/ArgoWibowo/si_petani.git | PHP | 219 lines
35 mysql_select_db("iais_ukdw") or die("Database tidak ditemukan"); 36 $query= mysql_query("SELECT * FROM master_petani where ID_User = '$id_user';"); 37 $brsnama = mysql_fetch_array($query) 169 mysql_select_db("iais_ukdw") or die("Database tidak ditemukan"); 170 $query2= mysql_query('SELECT * FROM kabupaten;'); 171 if (mysql_num_rows($query2) != 0){ 192 mysql_select_db("iais_ukdw") or die("Database tidak ditemukan"); 193 $query1= mysql_query('SELECT * FROM provinsi;'); 194 if (mysql_num_rows($query1) != 0){staffbox.php https://github.com/delete66/sikevux-s-tracker.git | PHP | 385 lines
29 30$res = mysql_query("SELECT count(id) FROM staffmessages") or die(mysql_error()); 31$row = mysql_fetch_array($res); 61 62$res = mysql_query("SELECT staffmessages.id, staffmessages.added, staffmessages.subject, staffmessages.answered, staffmessages.answeredby, staffmessages.sender, staffmessages.answer, users.username FROM staffmessages INNER JOIN users on staffmessages.sender = users.id ORDER BY id desc $limit"); 63 67{ 68$res3 = mysql_query("SELECT username FROM users WHERE id=$arr[answeredby]"); 69$arr3 = mysql_fetch_assoc($res3); 110 111$ress4 = mysql_query("SELECT id, subject, sender, added, msg, answeredby, answered FROM staffmessages WHERE id=$pmid"); 112$arr4 = mysql_fetch_assoc($ress4); 115 116$rast = mysql_query("SELECT username FROM users WHERE id=$answeredby"); 117$arr5 = mysql_fetch_assoc($rast);lstof_duedates-inc.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 303 lines
9 //exit; 10 $xRecord = mysql_query("UPDATE ebpls_buss_penalty1 SET revdate=Now(), mdue='$iMonthlyDueDates' ",$dbLink); 11 32 33 $xRecord = mysql_query("UPDATE ebpls_buss_penalty1 SET revdate=Now(), qtrdue1='$qtr1iMonthlyDueDates', qtrdue2='$qtr2iMonthlyDueDates', qtrdue3='$qtr3iMonthlyDueDates', qtrdue4='$qtr4iMonthlyDueDates' ",$dbLink); 34 52 } else { 53 $xRecord = mysql_query("UPDATE ebpls_buss_penalty1 SET revdate=Now(), semdue1='$sem1iMonthlyDueDates', semdue2='$sem2iMonthlyDueDates'",$dbLink); 54 62 63$seleRecord = mysql_query("SELECT * FROM ebpls_buss_penalty1 ",$dbLink); 64//$SeleRecord=th_query($seleRecord);ebpls_professional_tax.php http://ebpls.googlecode.com/svn/trunk/ | PHP | 345 lines
8 9 $result=mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error()); 10 $resulta=mysql_fetch_row($result); 24 25 $result=mysql_query("select a.business_permit_code, concat(c.owner_first_name, ' ', c.owner_middle_name, ' ', 26 c.owner_last_name), b.business_name, e.bus_nature, b.business_street, e.cap_inv, e.last_yr, d.total_amount_paid, 151 152// $result=mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error()); 153// $resulta=mysql_fetch_row($result); 212 213 $result=mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error()); 214 $resulta=mysql_fetch_row($result); 228 /* 229 $result=mysql_query("select '0000', '0.00', '0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00','0.00' from ebpls_business_enterprise") 230 or die(mysql_error());deleteorganization2.php http://ndepics-redcross.googlecode.com/svn/trunk/ | PHP | 72 lines
30 LIMIT 1"; 31$result = mysql_query($query) or die ("Deletion Query failed (organization)"); 32 36 WHERE organization_id = ".$organization_id; 37$result = mysql_query($query) or die ("Deletion Query 2 failed (works_for)"); 38 42 WHERE organization_id = ".$organization_id; 43$result = mysql_query($query) or die ("Deletion Query 3 failed (resrouce_listing)"); 44 48 WHERE organization_id = ".$organization_id; 49$result = mysql_query($query) or die ("Deletion Query 4 failed (SoU)"); 50 54 WHERE organization_id = ".$organization_id; 55$result = mysql_query($query) or die ("Deletion Query 5 failed (facility_survey) IGNORE THIS"); 56fonctionsClients.php http://auberge-de-jeunesse-de-rimouski.googlecode.com/svn/trunk/ | PHP | 251 lines
19 connectDb(); 20 $requete = mysql_query("SELECT id_client from Client WHERE id_client='".mysql_real_escape_string($_SESSION['idClient'])."'"); 21 $ligne = mysql_fetch_row($requete); 37 connectDb(); 38 $requete = mysql_query("SELECT nom_cl FROM Client WHERE id_client='".mysql_real_escape_string($ipNoClient)."'"); 39 $ligne = mysql_fetch_row($requete); 53 connectDb(); 54 $requete = mysql_query("SELECT prenom_cl FROM Client WHERE id_client='".mysql_real_escape_string($ipNoClient)."'"); 55 $ligne = mysql_fetch_row($requete); 69 connectDb(); 70 $requete = mysql_query("SELECT tarif FROM Tarif_lit t, Facture f WHERE t.id_tarif = f.id_tarif AND f.id_facture='".mysql_real_escape_string($ipNoFacture)."'"); 71 $ligne = mysql_fetch_row($requete); 85 connectDb(); 86 $reqNoFacture = mysql_query("SELECT id_facture FROM facture WHERE id_reservation='".mysql_real_escape_string($ipNoReservation)."'"); 87 $ligneNoFacture = mysql_fetch_row($reqNoFacture);process_registration.php git://github.com/aichallenge/aichallenge.git | PHP | 312 lines
15 $query = "SELECT * FROM user_status_code WHERE status_id = ".(int)$code; 16 $result = mysql_query($query); 17 return (boolean)mysql_num_rows($result); 24 $query = "SELECT * FROM organization WHERE org_id=".(int)$code; 25 $result = mysql_query($query); 26 return (boolean)mysql_num_rows($result); 33 $query = "SELECT count(*) from country where country_id=". $id; 34 $result = mysql_query($query); 35 $row = mysql_fetch_assoc($result); 53 $query = "SELECT org_id FROM organization WHERE name='".$org_name."'"; 54 $result = mysql_query($query); 55 if ( mysql_num_rows($result) > 0 ) { 58 $query = "INSERT INTO organization (`name`) VALUES('".$org_name."')"; 59 $result = mysql_query($query); 60 return mysql_insert_id();tematica_localitate_vechi.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 323 lines
38 $sel="select denumire, descriere_seo, titlu_seo, cuvinte_cheie_seo, luni_plecari, data_plecare from localitati where id_localitate = '".$id_localitate."' "; 39 $que=mysql_query($sel) or die(mysql_error()); 40 $row=mysql_fetch_array($que); 66$selSEO="SELECT * FROM seo WHERE id_tip = '".$id_tip."' AND id_oras = '".$id_localitate."' "; 67$queSEO=mysql_query($selSEO) or die(mysql_error()); 68$rowSEO=mysql_fetch_array($queSEO);Db_Mysql.php http://slightphp.googlecode.com/svn/trunk/ | PHP | 471 lines
389 if(!empty($this->charset)){ 390 mysql_query("SET NAMES ".$this->charset); 391 } 400 } 401 $result = mysql_query($sql,Db_Mysql::$globals[$this->key]); 402 if(!$result){cazare_zona.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 175 lines
2$selTara="select denumire, steag from tari where id_tara = '".$id_tari."' "; 3$queTara=mysql_query($selTara) or die(mysql_error()); 4$rowTara=mysql_fetch_array($queTara); 24 25$que3=mysql_query($sel3) or die(mysql_error()); 26if(mysql_num_rows($que3)>'0') { 164 165$que4=mysql_query($sel4) or die(mysql_error()); 166if(mysql_num_rows($que4)>'0') {main.php https://code.google.com/p/bilugcms/ | PHP | 121 lines
23 $stringa="SELECT ID,sez,voce FROM menu order by sez"; 24 $risulta=mysql_query($stringa); 25 if (mysql_num_rows($risulta)>0) 31 $str1="SELECT voce,link,stat FROM menuvoci where IDmenu='$control[0]' order by ordine"; 32 $risultato1=mysql_query($str1); 33 if (mysql_num_rows($risultato1)>0)insert_datirss.php https://code.google.com/p/bilugcms/ | PHP | 83 lines
34$str=" SELECT ID,titolo,descrizione,copyright,image,vimage FROM datirss "; 35$risultato=mysql_query($str); 36if (mysql_num_rows($risultato)>0)dlm_usuarios.php https://bitbucket.org/weddcam/develop_weddcam | PHP | 256 lines
30 31 $result=mysql_query($dml) or die("error3-altausuario".mysql_error()); 32 if (!$result) 55 56 $result=mysql_query($dml) or die("error3-altausuario".mysql_error()); 57 if (!$result) 79 80 $result=mysql_query($dml) or die("error-actualizando-usuario".mysql_error()); 81 if (!$result) 98 99 $result=mysql_query($dml) or die("error-actualizando-perfil".mysql_error()); 100 if (!$result) 114 115 $result=mysql_query("DELETE from wc_usuarios WHERE id_usuario='".$usuario."'") or die("error-borrar-usr".mysql_error()); 116 if (!$result)service_age.php https://bitbucket.org/southsidehealth/southsidehealth | PHP | 93 lines
5$query = "SELECT * FROM services WHERE 1"; 6$result = mysql_query($query); 7if (!$result) { 13 echo "Updating age as " . $age . " for service id " . $row['id'] . "\n"; 14 $update_result = mysql_query($query); 15 if (!$update_result) { 20$query = "SELECT SUM(age) as total_age, COUNT(*) as total_no_of_service from services WHERE 1"; 21$result = mysql_query($query); 22if (!$result) { 34$query = "SELECT COUNT(*) as total_no_of_sites from sites WHERE 1"; 35$result = mysql_query($query); 36if (!$result) { 44$query = "SELECT COUNT(*) as total_no_of_locations from locations WHERE 1"; 45$result = mysql_query($query); 46if (!$result) {cadastroProtocolo.php http://controlprot.googlecode.com/svn/trunk/ | PHP | 285 lines
57 where A.codProtocolo ='".$_SESSION['codProtocolo']."'"; 58 $resultado = mysql_query($sql) or die ("erro sql".mysql_error()); 59 $total = mysql_num_rows($resultado); 101 $sql2 = "select * from protocolo order by codProtocolo desc limit 1 ";//busca o ultimo cod que est? no banco 102 $resultado2 = mysql_query($sql2) or die ("erro sqlGravarCabecalho".mysql_error()); 103 $dado2 = mysql_fetch_assoc($resultado2); 107$sql = "INSERT INTO protocolo (codProtocolo,dataCriacao,status,codUsuario,codEmpresa,quantidadeContratos) VALUES ('$codProtocolo',now(),'A','".$_SESSION['codUsuarioIndex']."','".$_SESSION['codEmpresaIndex']."','0')"; 108 $resultadosql = mysql_query($sql) or die ("erro sql GravarCabecalho 2".mysql_error()); 109} 142 143 $resultado_ver = mysql_query($sql_ver); 144 $linha_ver = mysql_num_rows($resultado_ver); 169 VALUES ('".$_SESSION['cpfCnpjCliente']."','".$_SESSION['nome']."','N','".$_SESSION['codProtocolo']."','".$_SESSION['obs']."')"; 170 $resultadosql = mysql_query($sql) or die ("erro sql gravarItemProtocolo".mysql_error()); 171 }makepayment.php https://bitbucket.org/rubbystar/carimod.git | PHP | 206 lines
10 11$result=mysql_query("SELECT user from chatusers WHERE id='$_COOKIE[id]' LIMIT 1"); 12 124 125$result=mysql_query("SELECT user,money from chatusers WHERE id='$_COOKIE[id]' LIMIT 1"); 126 138 echo $sql="Update chatusers set money=$money where user='$username'"; 139 $res=mysql_query($sql); 140 mysql_query("insert into payments (ammount, details) values ('".$_REQUEST['amt']."', '$username')"); 148 149$result=mysql_query("SELECT user,money from chatusers WHERE id='$_COOKIE[id]' LIMIT 1"); 150 162 $sql="Update chatusers set money=$money where user='$username'"; 163 $res=mysql_query($sql); 164 mysql_query("insert into payments (ammount, details) values ('".$_REQUEST['amt']."', '$username')");dbtests.pp git://pkgs.fedoraproject.org/fpc | Pascal | 490 lines
116 Verbose(V_DEBUG,'Running query:'+Qry); 117 Result:=mysql_query(@Connection,PChar(qry))=0; 118 If Not Result then 128 Verbose(V_DEBUG,'Running silent query:'+Qry); 129 Result:=mysql_query(@Connection,PChar(qry))=0; 130 If Not Result thenmanage_apps.php http://decs.googlecode.com/svn/trunk/ | PHP | 251 lines
22 23$result = mysql_query("SELECT * FROM platform"); 24$Nplatform = mysql_num_rows($result); 41 42 $result = mysql_query("SELECT * FROM app"); 43 $Nrow=mysql_num_rows($result); 53 $commands .= "<P><pre>$cmd</pre>\n"; 54 mysql_query($cmd); 55 continue; // next row, this one is gone 64 $commands .= "<P><pre>$cmd</pre>\n"; 65 mysql_query($cmd); 66 } 74 $commands .= "<P><pre>$cmd</pre>\n"; 75 mysql_query($cmd); 76 }ventas_restaurant_anular_venta.php https://gitlab.com/HeinerAEs/controlERP.git | PHP | 258 lines
30 mysql_select_db($database_fastERP, $fastERP); 31 $table = mysql_query($query, $fastERP) or die(mysql_error()); 32 $row_table = mysql_fetch_assoc($table); 47 ventas_det.ventas_id = $ventas_id" ; 48 $ventas_det = mysql_query($query_ventas_det, $fastERP) or die(mysql_error()); 49 $row_ventas_det = mysql_fetch_assoc($ventas_det); 77 mysql_select_db($database_fastERP, $fastERP); 78 $ventas = mysql_query($query_ventas, $fastERP) or die(mysql_error()); 79 87 mysql_select_db($database_fastERP, $fastERP); 88 $ventas = mysql_query($query_ventas, $fastERP) or die(mysql_error()); 89 119 mysql_select_db($database_fastERP, $fastERP); 120 $table = mysql_query($query, $fastERP) or die(mysql_error()); 121 $row_table = mysql_fetch_assoc($table);malta.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 160 lines
21LIMIT 0,1 "; 22$que_plecare = mysql_query($sel_plecare) or die(mysql_error()); 23$row_plecare = mysql_fetch_array($que_plecare); 37LIMIT 0,1 "; 38$que_request = mysql_query($sel_request) or die(mysql_error()); 39$row_request = mysql_fetch_array($que_request); 109 WHERE tip_camera_corespondent.den_camera = '".$den_camera[$key]."' "; 110 $que_roomtype = mysql_query($sel_roomtype) or die(mysql_error()); 111 $row_roomtype = mysql_fetch_array($que_roomtype);sort_hourly.php https://github.com/lsd/prosper202.git | PHP | 237 lines
16 $user_sql = "SELECT user_pref_breakdown, user_pref_show, user_cpc_or_cpv FROM 202_users_pref WHERE user_id=".$mysql['user_id']; 17 $user_result = _mysql_query($user_sql, $dbGlobalLink); //($user_sql); 18 $user_row = mysql_fetch_assoc($user_result); 136 $breakdown_sql = "SELECT * FROM 202_sort_breakdowns WHERE user_id='".$mysql['user_id']."' " . $mysql['order']; 137 $breakdown_result = mysql_query($breakdown_sql) or record_mysql_error($breakdown_sql); ?> 138filtru_categorie_hotel_nou.php https://bitbucket.org/ocaziituristice/ocaziituristice.ro.git | PHP | 109 lines
72 //echo $sel_filtru; 73 $rez_filtru = mysql_query( $sel_filtru ) or die( mysql_error() ); 74 $stele_filtru = '';class-options.php https://github.com/hsrai/GNDEC-SMS-Service.git | PHP | 265 lines
60 61 $this->global_options = mysql_fetch_array(mysql_query("SELECT * FROM " . TABLE_OPTIONS . " LIMIT 1", $db_link)) 62 or die(reportScriptError("Unable to retrieve global options.")); 92 93 $this->user_options = mysql_fetch_array(mysql_query("SELECT * FROM " . TABLE_USERS . " WHERE username='" . $_SESSION['username'] . "' LIMIT 1", $db_link)) 94 or die(reportScriptError("Unable to retrieve user options.")); 166 167 mysql_query($sql, $db_link) 168 or die(reportSQLError($lang['ERR_OPTIONS_NO_SAVE'])); 204 WHERE username='" . $_SESSION['username'] . "'"; 205 mysql_query($sql, $db_link) 206 or die(reportSQLError($lang['ERR_OPTIONS_NO_SAVE'])); 230 WHERE username='" . $_SESSION['username'] . "'"; 231 mysql_query($sql, $db_link) 232 or die(reportSQLError($lang['ERR_OPTIONS_NO_SAVE']));GetArt.php http://thegamesdb.googlecode.com/svn/trunk/ | PHP | 224 lines
53 ## Select all fanart rows for the requested game id 54 $ssResult = mysql_query(" SELECT filename FROM banners WHERE keyvalue = $gameID AND keytype = 'screenshot' ORDER BY filename ASC "); 55 94 ## Select all fanart rows for the requested game id 95 $faResult = mysql_query(" SELECT filename FROM banners WHERE keyvalue = $gameID AND keytype = 'fanart' ORDER BY filename ASC "); 96 130 ## Select all boxart rows for the requested game id 131 $baResult = mysql_query(" SELECT filename FROM banners WHERE keyvalue = $gameID AND keytype = 'boxart' ORDER BY filename ASC "); 132 157 ## Select all boxart rows for the requested game id 158 $banResult = mysql_query(" SELECT filename FROM banners WHERE keyvalue = $gameID AND keytype = 'series' ORDER BY filename ASC "); 159 177 ## Select all boxart rows for the requested game id 178 $clResult = mysql_query(" SELECT filename, resolution FROM banners WHERE keyvalue = $gameID AND keytype = 'clearlogo' LIMIT 1 "); 179menu_edit.php https://github.com/anodyne/sms.git | PHP | 241 lines
37 $get = "SELECT * FROM sms_menu_items WHERE menuid = $id LIMIT 1"; 38 $getR = mysql_query( $get ); 39 $pendingArray = mysql_fetch_assoc( $getR );plugin_audit.h.pp git://pkgs.fedoraproject.org/mysql | Puppet | 241 lines
192void thd_get_xid(const void* thd, MYSQL_XID *xid); 193void mysql_query_cache_invalidate4(void* thd, 194 const char *key, unsigned int key_length,mysql.php git://github.com/jakubkulhan/shopaholic.git | PHP | 518 lines
122 if (!$ok) { 123 $ok = @mysql_query("SET NAMES '$config[charset]'", $this->connection); // intentionally @ 124 if (!$ok) { 136 if (isset($config['sqlmode'])) { 137 if (!@mysql_query("SET sql_mode='$config[sqlmode]'", $this->connection)) { // intentionally @ 138 throw new DibiDriverException(mysql_error($this->connection), mysql_errno($this->connection)); 166 if ($this->buffered) { 167 $this->resultSet = @mysql_query($sql, $this->connection); // intentionally @ 168 } else {index.php http://ourproject.googlecode.com/svn/trunk/ | PHP | 363 lines
135 if(mysql_get_server_info() > '4.1') { 136 mysql_query("CREATE DATABASE `$dbname` DEFAULT CHARACTER SET gbk COLLATE gbk_chinese_ci", $conn); 137 $dbsql=@mysql_select_db($dbname); 143 144 mysql_query("set names 'GBK'"); 145 153 $sql=str_replace("\r\n","",$v); 154 mysql_query($sql)or die(mysql_error()); 155 } 161 $sql=str_replace("\r\n","",$v); 162 mysql_query($sql) or die(mysql_error()); 163 } 166 $table_config=$tablepre."admin_config"; 167 mysql_query("insert into $table_user values (null,'1','$username','$password','$name')"); 168 mysql_query("update $table_config set `config`='$weburl' where `name`='sy_weburl'");Database - orig.php https://gitlab.com/maxauvy/XG_Project_v3.git | PHP | 338 lines
117 $this->_last_query = $sql; 118 $result = @mysql_query ( $sql , $this->_connection ); 119 $this->_confirm_query ( $result ); 135 $this->_last_query = $sql; 136 $result = @mysql_query ( $sql , $this->_connection ); 137 $this->_confirm_query ( $result );phpclasses.php https://github.com/gypsyfarm/gypsyfarm.git | PHP | 215 lines
81 82 $result = mysql_query($query, $db_conn); 83 $num_results = mysql_num_rows($result); 109 110 $result = mysql_query($query, $db_conn); 111 $num_results = mysql_num_rows($result); 200 201 $result = mysql_query($query, $db_conn); 202 if (!$result){functions.inc.php https://gitlab.com/bechemm/opencaching.pl.git | PHP | 310 lines
2 3// called if mysql_query faild, sends email to sysadmin 4function sql_failed($sql) 152 153 $result = mysql_query($filtered_sql, $dblink); 154 if ($result === false) 297 { 298 mysql_query("SET NAMES 'utf8'", $dblink); 299articulos_ventas.php https://gitlab.com/BGCX261/zonda-sistema-gestion-web-svn-to-git.git | PHP | 101 lines
88 89 $Registros = mysql_num_rows(mysql_query($query)); 90export.php https://bitbucket.org/geoffwong/airscore.git | PHP | 372 lines
82print $sql; 83$result = mysql_query($sql, $link) or die("can't select comp details"); 84$row = mysql_fetch_array($result, MYSQL_ASSOC); 96$sql = "select comPk from hgfa_ladder.tblCompetition where comName='$cname' and comDateFrom='$cfrom'"; 97$result = mysql_query($sql, $link) or die("can't select comp details" . mysql_error() . "\n"); 98$HcomPk = 0; 107 $sql = "insert into hgfa_ladder.tblCompetition (comName,comLocation,comDateFrom,comDateTo,comMeetDirName,sanValue) values ('$cname','$cloc','$cfrom','$cto','$cdirname','$csanction')"; 108 $result = mysql_query($sql, $link) or die("can't insert new competition: " . mysql_error() . "\n"); 109 $HcomPk = mysql_insert_id(); 113 $sql = "update hgfa_ladder.tblCompetition set comLocation='$cloc', comDateTo='$cto',comMeetDirName='$cdirname',sanValue='$csanction' where comPk=$HcomPk"; 114 $result = mysql_query($sql, $link) or die("can't update competition" . mysql_error() . "\n"); 115} 123$sql = "select * from xcdb.tblFormula where forPk=$forPk"; 124$result = mysql_query($sql,$link) or die("Unable to find formula: " . mysql_error() . "\n"); 125$row = mysql_fetch_array($result, MYSQL_ASSOC);files.public.list.tmpl.php http://phpwcms.googlecode.com/svn/trunk/ | PHP | 181 lines
43 44 mysql_query("UPDATE ".DB_PREPEND."phpwcms_user SET usr_var_publicfile="._dbEscape(serialize($_SESSION["pklapp"]))." WHERE usr_id=".$_SESSION["wcs_user_id"], $db); 45 51$sql = "SELECT COUNT(f_id) FROM ".DB_PREPEND."phpwcms_file WHERE f_public=1 AND f_aktiv=1 AND f_trash=0 LIMIT 1;"; 52if($result = mysql_query($sql, $db) or die ("error while counting user files")) { 53 if($row = mysql_fetch_row($result)) { 69 70 if($result = mysql_query($sql, $db) or die ("error while browsing user's public files")) { 71 $user_counter=0; 105 " AND f_public=1 AND f_aktiv=1 AND f_kid=1 AND f_trash=0 ORDER BY f_name;"; 106 if($file_result = mysql_query($file_sql, $db) or die ("error while listing files")) { 107 $file_durchlauf = 0;