SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member urbanedge08's Avatar
    Join Date
    Jul 2008
    Location
    Vancouver, BC Canada
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is there an error in this code it won't call the database information

    Is there an error in this code? It won't call the table information from the database to the form. I've checked the other links and it all seems to be fine. I'm not sure what else it could be???


    <?php
    foreach($aCiudades as $value){ ?> <option value ="<?=$value['ciu_id']?>">
    <?=$value['ciu_nombre'] ?></option>
    <? } ?>
    </select>
    </td><td>&nbsp;</td><td>
    <select name="alu_tzo_id" class="campitos">
    <option value="">Please Select </option>
    <? foreach($aTimeZones as $value){ ?>
    <option value="<?=$value['tzo_id'] ?>"><?=$value['tzo_nombre'] ?></option>
    <? } ?>

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well, what's happening? Are $aCiudades and $aTimeZones populated with the information you expect?

  3. #3
    SitePoint Member urbanedge08's Avatar
    Join Date
    Jul 2008
    Location
    Vancouver, BC Canada
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No nothing is happening. The form shows up with select but no info from the tables.

  4. #4
    SitePoint Guru
    Join Date
    Oct 2006
    Location
    Queensland, Australia
    Posts
    852
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use something like var_dump or print_r on those two variables ($aTimeZones and $aCiudades) and see what they output. All this requires is basic troubleshooting.

  5. #5
    rajug.replace('Raju Gautam'); bronze trophy Raju Gautam's Avatar
    Join Date
    Oct 2006
    Location
    Kathmandu, Nepal
    Posts
    4,013
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Better post your code where the variables $aCiudades and $aTimeZones are being populated.
    Mistakes are proof that you are trying.....
    ------------------------------------------------------------------------
    PSD to HTML - SlicingArt.com | Personal Blog | ZCE - PHP 5


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •