Dab tsi yog kev siv Mysql_fetch_assoc hauv PHP?
Dab tsi yog kev siv Mysql_fetch_assoc hauv PHP?

Video: Dab tsi yog kev siv Mysql_fetch_assoc hauv PHP?

Video: Dab tsi yog kev siv Mysql_fetch_assoc hauv PHP?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Kaum ib hlis
Anonim

Lus txhais thiab Kev siv

Cov mysql_fetch_assoc () muaj nuj nqi xa rov qab ib kab ntawm cov ntaub ntawv teev tseg raws li kev sib koom ua ke. Qhov kev ua haujlwm no tau txais ib kab los ntawm mysql_query() muaj nuj nqi thiab xa rov qab ib qho kev ua tiav, lossisFALSE ntawm kev ua tsis tiav lossis thaum tsis muaj kab ntxiv.

Ntawm no, kev siv Mysqli_fetch_assoc yog dab tsi?

Cov mysqli_fetch_assoc () muaj nuj nqi siv xa rov qab ib qho associative array sawv cev rau kab tom ntej hauv theresult teeb rau qhov tshwm sim uas sawv cev los ntawm qhov tshwm sim parameter, qhov twg txhua tus yuam sij hauv cov array sawv cev rau lub npe ntawm ib qho ntawm cov kab ke ntawm qhov tshwm sim.

Qhov thib ob, Mysqli_fetch_array yog dab tsi? Cov mysqli_fetch_array () muaj nuj nqi fetches issult kab raws li ib tug associative array, ib tug zauv array, orboth.

Ntawm no, qhov txawv ntawm Mysql_fetch_array thiab Mysql_fetch_assoc yog dab tsi?

mysql_fetch_assoc . Qhov kev ua haujlwm xa rov qab cov kab sib txuas ntawm cov hlua uas sib haum rau cov kab uas tau txais, lossis FALSE yog tias tsis muaj kab ntxiv. Lub associativity array qhia txog tus nqi tseem ceeb khub, qhov tseem ceeb qhia txog txhua lub npe thiab tus nqi qhia txog tus nqi kab.

Mysqli_connect_error () yog dab tsi?

Txhais thiab siv The mysqli_connect_error() muaj nuj nqi rov qab theerror piav qhia los ntawm qhov kawg kev sib txuas yuam kev, ifany.

Pom zoo: