Jump to content

fugix

Members
  • Posts

    1,483
  • Joined

  • Last visited

Posts posted by fugix

  1. this line

    Echo "<a href='viewprofile.php?username={$info['username']}'><img src='http://datenight.netne.net/images/".$info['img'] ."' width='30' height='30''></a>".$info['from_user']." ".$info['message'];
    

     

    should be

    echo "<a href='viewprofile.php?username={$info['username']}'><img src='http://datenight.netne.net/images/".$info['img'] ."' width='30' height='30''></a>".$info['from_user']." ".$info['message'] . ";
    

     

    you forgot to end you concatenation on the end

     

  2. i will do a couple so you can understand how to do this..

    $sql = "UPDATE companies, iQuestions SET
                                     companies.companyname = '${name}',
                                     companies.companytag = '${tag}',
                                     companies.companywebsite = '${website}',
                                     companies.industry = '${industry}',
                                     companies.stage = '${stage}',
                                     companies.country = '${country}',
                                     companies.state = '${state}',
                                     companies.city = '${city}',
                                     iQuestions.capitalavailable = '{$capitalavailable}'
                                  WHERE companies.companytag = '${ctag}'";

     

    hope this helps

     

  3. this

    <input name="name" type="text" class="form1" value="About Us" maxlength="20" id="name" /><br /><br />

     

    corresponds to this

    $name=$_POST['name'];

     

    because you have an input with the same name...on the first scripts that you showed me...the only input that you have on that page is the submit button...so that is the only value that will fill the $_POST array...

     

  4. yes I editted my answer as I saw this after I posted...but to get that the $num value...it isnt actually passed from the form...you would set up another query like the one that you did in the first script..and use the $row['num'] value to make your second query

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.