Activity Stream
48,167 MEMBERS
62843 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Results 1 to 8 of 8
  1.     
    #1
    Banned
    Website's:
    WarezRelease.org ThatHosting.co

    Default Updating the DB

    Well here's my code:

    PHP Code: 
                        $newName $_POST['sName'];
                        
    $newUrl $_POST['sURL'];
                        
    $newRate $_POST['sRate'];
                        
    $newEmail $_POST['sEmail'];
                        
    $reason $_POST['sReason'];
                        
                        
    mysql_query("update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='"mysql_real_escape_string($sid) ."'"); 
    It's just not doing that..........?

    Any ideas?
    Chris2k Reviewed by Chris2k on . Updating the DB Well here's my code: $newName = $_POST; $newUrl = $_POST; $newRate = $_POST; $newEmail = $_POST; $reason = $_POST; mysql_query("update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='". mysql_real_escape_string($sid) ."'"); Rating: 5

  2.   Sponsored Links

  3.     
    #2
    Respected Member
    Website's:
    DL4Everything.com Soft2050.in
    Replace query code with:
    PHP Code: 
    mysql_query("update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='"mysql_real_escape_string($sid) ."'") or die ("Error: " mysql_error()); 
    It should give show the error in query

  4.     
    #3
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    added, didn't give me an error..

  5.     
    #4
    Retired NinJa
    Website's:
    loledhard.com
    add this to ur file
    error_reporting(E_ALL);
    & u might see the error which is stoping it from working



    You don't hate Justin bieber.You hate the fact you ain't Justin Bieber!

  6.     
    #5
    Respected Member
    Where is the $sid coming from you are basing your update on??

  7.     
    #6
    Banned
    Website's:
    WarezRelease.org ThatHosting.co
    $sid is from:

    PHP Code: 
                while($sInfo mysql_fetch_assoc($get)) {
                    
    $sid $sInfo['id'];            
                    
    $sname $sInfo['name'];
                    
    $srate $sInfo['rate'];
                    
    $semail $sInfo['email'];

    form data here....................


  8.     
    #7
    Member
    Website's:
    LulzCovers.com LulzTroll.com
    PHP Code: 
    mysql_query("update wcddl_sites set name='" $newName "',url='" $newUrl "',rate='" $newRate "',email='" $newEmail "' WHERE id='"mysql_real_escape_string($sid) ."'"); 
    try this
    Contact me for Traffic, SEO, WCDDL, Wordpress, IPB related Services or queries.
    Template Designing, PSD to HTML, Wordpress


  9.     
    #8
    Respected Member
    So you can see the query and try it in phpmyadmin change your code to this:
    PHP Code: 
    $newName $_POST['sName']; 
                        
    $newUrl $_POST['sURL']; 
                        
    $newRate $_POST['sRate']; 
                        
    $newEmail $_POST['sEmail']; 
                        
    $reason $_POST['sReason']; 
                        
    $q "update wcddl_sites set name='$newName',url='$newUrl',rate='$newRate',email='$newEmail' WHERE id='"mysql_real_escape_string($sid) ."'";
                        echo 
    "query is : $q";
                        
    mysql_query($q); 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Latest Post not updating for me
    By Ifirst in forum Feedback and Suggestions
    Replies: 3
    Last Post: 27th Oct 2012, 09:41 PM
  2. Updating Wordpress
    By MightyMike in forum Wordpress
    Replies: 3
    Last Post: 16th May 2012, 06:24 PM
  3. google has started updating PR
    By pompom in forum General Discussion
    Replies: 6
    Last Post: 8th Nov 2011, 04:33 PM
  4. WWW A Record isn't updating
    By BounceR in forum Webmaster Discussion
    Replies: 5
    Last Post: 16th Mar 2011, 09:50 AM
  5. Error when updating avatars
    By system32 in forum vBulletin
    Replies: 13
    Last Post: 27th Jul 2009, 09:07 PM

Tags for this Thread

BE SOCIAL