php - How to change the location of the id -


स्रोत:

  else if ($ key == 'title') {if ( Strlen ($ value- & gt; advObj ['title']) 15) $ advTitle = substr ($ value- & gt; advObj ['शीर्षक'], 0, 15)। "..."; Else $ advTitle = $ value- & gt; advObj ['title']; गूंज '& lt; a href = "index.php? P = newApp और amp; id = & amp; obj = cpn'। $ मूल्य- & gt; advObj ['id']।" "& Gt; '$ value- & gt; advObj [ 'आईडी']। ' - '। $ AdvTitle।' & Lt; / a & gt; '; }  

क्लिक करने पर परिणाम:

index.php? P = newApp और id = & amp; obj = cpn1038

< P> और मुझे इसकी आवश्यकता है:

index.php? P = newApp और id = 1038 & obj = cpn

मैं यह कैसे करूँ

इसका प्रयोग करें:

  else if ($ key == 'शीर्षक') (यदि (strlen ($ value- & gt; advObj ['title']) & gt; 15) $ advTitle = substr ($ value- & gt; advObj ['शीर्षक'], 0, 15)। " । "; Else $ advTitle = $ value- & gt; advObj ['title']; एको '& lt; a href = "index.php? P = newApp और amp; id ='। $ Value- & gt; एडओबजे ['आईडी']। '& Amp; obj = cpn' & gt; '$ advTitle।' & Lt; / एक & gt; '; }  

Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -