figa Posted March 15, 2008 Report Posted March 15, 2008 Ir jautājums daudzos skriptos esmu redzējis funkciju confirm_query, kam viņa ir domāta?
bubu Posted March 15, 2008 Report 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.
figa Posted March 15, 2008 Author Report 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; } } ?>
Vebers Posted March 15, 2008 Report 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 }
bubu Posted March 15, 2008 Report Posted March 15, 2008 Ne jau funkcijas izsaukumu jāskatās. Bet gan funkcijas kodu.
Recommended Posts