figa Posted March 15, 2008 Report Share Posted March 15, 2008 Ir jautājums daudzos skriptos esmu redzējis funkciju confirm_query, kam viņa ir domāta? Link to comment Share on other sites More sharing options...
bubu Posted March 15, 2008 Report Share Posted March 15, 2008 Tā kā tā nav nekāda standarta php funkcija, tad tas ir atkarīgs no paša skripta ko tā funkcija tur dara. T.i. lasi funkcijas kodu, lai to uzzinātu. Link to comment Share on other sites More sharing options...
figa Posted March 15, 2008 Author Report Share Posted March 15, 2008 Nevaru saprast <? function get_subject_by_id($subject_id) { global $connection; $query = "select * "; $query .= "From subjects "; $query .= "Where id=" . $subject_id; $query .= " limit 1"; $result_set = mysql_query($query, $connection); confirm_query($result_set); if ($subject = mysql_fetch_array($result_set)) { return $subject; } else { return NULL; } } ?> Link to comment Share on other sites More sharing options...
Vebers Posted March 15, 2008 Report Share Posted March 15, 2008 LAi izprastu ko dara funkcija izlasi pasu funkciju t.i. kaadaa failaa ir "teksts" kas saakas ar function confirm_query($mainigais ) { //funkcijas kods } Link to comment Share on other sites More sharing options...
bubu Posted March 15, 2008 Report Share Posted March 15, 2008 Ne jau funkcijas izsaukumu jāskatās. Bet gan funkcijas kodu. Link to comment Share on other sites More sharing options...
Recommended Posts