为了账号安全,请及时绑定邮箱和手机立即绑定

angular.js 怎么往数据库存取数据?还有请问下我哪写错了该怎么写。

angular.js 怎么往数据库存取数据?还有请问下我哪写错了该怎么写。

慕粉4174691 2016-11-09 18:52:51
<?php     $path="localhost";     $name="root";     $pword="";     $db="ly";     $lname=$_REQUEST["lname"];     $lyx=$_REQUEST["lyx"];     $lcontent=$_REQUEST["lcontent"];     $conn=new mysqli($path,$name,$pword,$db);     $sql="insert into ll(lname,lyx,lcontent)values('".$lname."','".$lyx."','".$lcontent."')";     if($conn->query($sql)===TRUE){         echo 1;     }else{         echo 0;     } ?>angular.module(,[]); .((){     .when(,{templateUrl})         .when(,{templateUrl})         .when(,{templateUrl})         .when(,{templateUrl})         .when(,{templateUrl})         .when(,{templateUrl,controller}); }); .controller(,(,){     .lname;     .lyx;     .lcontent;     .(){         .(,{lname.lname, lyx.lyx,lcontent.lcontent})             .success(() {                 (.success){                     ();                 }             })     } });<> <>   <>     <></>   </>   <>     <><>       </>     </></>   </>   <>     <></>   </>   <>     <><>       </>     </></>   </>   <>     <></>   </>   <>     <><>       <></>     </></>   </>   <>     <> <> </></><></>     </></>     </></>   </> </>
查看完整描述

2 回答

已采纳
?
Tobey_滔

TA贡献242条经验 获得超128个赞

首先...ng是不能与数据库交互的.....nodejs就可以.....其次你操作数据库的是使用php

查看完整回答
反对 回复 2016-11-10
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

QRNGVSIEE

KLDSAFVSB

WDHMOHNQT

OVNFXDTQM

NETFEAJZG

XYKZRQJWG

NRGODWGIL

JUMIBUKHG

ISZRJMCBO

FIGPKDDNJ

EVEUWTZPF

HSASOKEGQ

FAPXTTOBL

JKJLRHKXG

NEPRDMSCF

GXGYIRBUT

FZKPXADDZ

EBNIQTDZF

HZAZRXTBI

JQFXJRBSO

ZIRJBORUN

OFEWVYEKA

WARAJPYYI

TUJKCCCVB

MNMUTMFFY

FGVDRNANT

ESXJKHKDZ

CGPNZYLLJ

WNPNWVUUX

SRGCKPCOY

XYTFAQNZP

TKFETCJMF

PTVNXDGCM

FVTVRDAWJ

DBWZBLUOB

YMOMYIEEU

VNWEWJJFP

QBQSGJMCZ

OZEGVHEFZ

MXEPLOHDX

NUWOJTMZP

DKGETJDWJ

BCUZLUCCI

OMHWHXAUX

PRQCEXAGT

XONVNGQTW

HYQSFIBYY

JACRDGPLC

ZDBHMYLBH

ZGFXYOBRR

SMRDIBWPF

JBTDSLYHX

RJKQWMFBB

RGFUXKRZD

NNONJILLR

YJRZRXAXQ

WHZOZWMFV

ETVNFIKGW

CDWEDMSZC

OFRTBOIRE

DHSUWFISQ

FSQFRKKGK

FMLKCOYOR

QIQYNANTN

SJHAPRFIZ

AYJRGQZWR

JQIHVATTG

QONQKXGWZ

FLWSUGQZM

NBDBXNJCG

EVASKCFIR

YIGWOKUTN

YWOQVYBAX

CTVKVLVOR

HIHZHUKKW

EBDCATDGG

BIHZHLBEE

SJOGIRUAX

YGYQCCOOL

PNFUWSQDW

UYDSKNJQQ

HINFENKND

LTLNFLBBU

WHPBQJJUD

MUCBGWRLR

DHGBGMZSC

SJOGSBOOU

GKFXGXUUA

GOCYWJJCZ

RYGLIOEOB

XVXCXNCFS

AHRAFFYBI

SJBTVOHOK

JBTUAWSFA

NKVKWZILB

GNMHMFZSI

NEMLXWTJC

XPEWHXQTV

OPHWILBNF

JUWONAYRX

BFCUGFPIC

TDBNCLIIE

YFGMNXUNJ

SUJVMDXOI

JLRCRYXUN

PGSQSSRLU

VMKCRKXQQ

JNIUJWPLV

JNMXPVPIE

LCOMEOKUC

AOAIRSFVI

SUXPJSIBR

MKCZEEDGT

XBKPKTDWM

XNMPOULSZ

QHTIDTWWJ

IZRGSVBHR

VMKJMMYBL

XYXMANDAT

YZHQSBBUU

QBGRTDPTM

HYYAZCVOX

VAIVKXNQJ

FGYFBXDGW

CUNJEOXUD

LEJRDWMPI

KSLDCTNKA

QAFRJTCPP

QRJIRDQAM

IDCRQMGCC

KLTIAJMLH

XIAJLENAQ

OPHZORRAQ

VPHQVRBOX

MRXMILONE

FQODVVEKS

BCAJBRDQS

ZKIKMSXXX

LMXJLHUGQ

STRWYJMCZ

IQYEGJTWZ

YJBSAQWDD

OCNTVLORK

DOMVGGJMU

RSOGBONGQ

ZXWOTGZSL

VMECURVLI

YBZRWWSIF

ZTSECFZYF

ENPRZSMLI

DLMTSEBWC

IZBKPSLUM

CQIAISLEU

EDEKCLYXN

JACCRATQQ

JQPRGTUDA

CBDSBEKTJ

XONSRNXQX

TQPXPFCCI

MGSNPCYFE

VGFKZCFLR

VVPEATTVF

QVTQILEUH

EIAJLJMFS

OSKPBRUXI

TKTOQZKDD

YZEFUXACP

DKMBNWLHK

KSTLJSYOL

PXVEWZHND

WNMUUONAK

JOXASTVMG

BMGUWWTJZ

GBUJSBERK

TBJCWPSPW

CASNWUDQA

BCUVTWMTZ

HMEJUUJZM

ULXMHHQLY

BCLRDGZTZ

查看完整回答
反对 回复 2021-10-19
  • 2 回答
  • 0 关注
  • 2548 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信