Jump to content

nitesh

Members
  • Content Count

    49
  • Joined

  • Last visited

Community Reputation

4 Neutral

About nitesh

  • Rank
    Newbie
  1. nitesh

    Profile page

    Hiyou are only quering not fetching value from the database do something like this after quering $user = mysql_query("SELECT name FROM users WHERE id='$id'");$result = mysql_fetch_assoc($user);echo "<p>Username:" . $result['name'] . "<br>";echo "Email:" . $result['email'] . "<br>";
  2. yes you are right i have done mistake it's 3 colum name = ig_paragraph
  3. Hi every oneIam creating a word-press plugin everything is working fine plug is automatic creating database table but when iam fetching data it's not working plug in database detailstable name igdatabase1 colum name = ig_id2 colum name = ig_head3 colum name = ig_head iam using the below php code to output the data form my plugin not showing in my page <?php $mylink = $wpdb->get_row("SELECT * FROM $wpdb->igdatabase WHERE ig_id = 1");echo $mylink->ig_paragraph ;?> aiam using the below the same php code with wordpress databse is working absolutly fine<?php $mylink
  4. hi everone iam trying to insert form two value in wordpress database but it's now working function test_insertdata() { global $wpdb; $welcome_name = 'imgheadd'; $welcome_text = 'imgpathd'; $table_name = $wpdb->prefix . "table_name"; $wpdb->insert( $table_name, array('imghead' => $welcome_name,'imgpath' => $welcome_text)); };this is form<input name="imgheadd" type="text" id="imgheadd" style="width: 300px;" value=""/><input name="imgpathd" type="text" id="imgpathd" style="width: 300px;" value=""/>
  5. Hi everyone i want to use eclipse as my php editor but didn't find the download link for eclipse php ide below is download link http://www.eclipse.org/downloads/ can anyone suggest me the correct link from where i can download eclipse IDE for php.
  6. nitesh

    tinymce problem

    nope strip_tags not working still showing the same html in database.
  7. nitesh

    tinymce problem

    when i bold text in tinymce and submit for example when i submit w3cschool and submit then it saves data like this <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head></head><body><p><strong>w3cschool</strong></p></body></html>
  8. nitesh

    tinymce problem

    When iam trying to bold text from tinymce it automatically saves html in my database how i can prevent this.
  9. How i can set the id of the new position.
  10. The new position is changing but i don't know how to shuffle the position between the old and the new position.i can change the position for example old position 1=home page to new position 4= contact 2= about us to 2= about us 3= service to 3= service 4= contact to 1= contactold position (1)to new position (4)is working but i don't know how to change position from 4 to 1.Or if iam not right can there is another way to shuffle the value of position.Pls help
  11. It means when i submit the form i need two id
  12. Hi everybody i want to fetch the second row from my database iam only getting the first row value like this below is my query and and result <?php $query3 = "SELECT * FROM pages"; $rsResult3 = dbQuery($query3); $arrData3 = dbFetchRow($rsResult3); ?> <pre> <?php print_r($arrData3);?> </pre>Array( [0] => 1 [1] => Home [2] => Lorem Ipsum is simply dummy text of the printing and typesetting [3] => Active}this is mysql 1st row value but how i can fetch particular row values.Thanks in advanced.
  13. Yes i want to reorder the page position but i didn't understand how to fetch the id of the changing position page.if iam reordering the position between 4(about) and 5(contact) how i can fetch the id of the changing page.Thanks
×
×
  • Create New...