Jump to content

idig

New Members
  • Posts

    3
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

idig's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi appreciate any help. i have a main array and a 2ndary array to select from. once i have selected for example uk from the main array and london from the 2ndary array, i submit and have a resultant array called for eg 'location' now this array when echo'd gives numbers and not the strings i.e uk and london. what do i need to do to get the strings out? thanks clive
  2. hi any help appreciated. i have a mysql database table with 3 fields - province, province_id & country_id.the table contains 4 records. i want to get the data from the database and put into an array. i would then later want to read the data from the array. this is what i used to create the array: $provinces = array ("province" => array ("province_id" => $row['province_id'],"province" => $row['province'],"country_id" => $row['country_id'])); i then create a drop-down menu which is in the same while loop as that creating the array: $value = $provinces["province"]["province"]; echo '<option value="',$value,'">',$value,'</option>\n'; the drop down menu displays fine - listing the 4 provinces but if i do a count of the array it only lists a count of 1. what am i doing wrong and how can i make sure that all the records from the mysql database are included in the array even if i keep adding records to the mysql table. then how do i extract the data from the array - especially how do i do a search for a particular record within the array? thanks in advance clive
  3. hi please help i created a search and tested it in the recordset where it worked. when trying to run as a preview in browser i get this error: PHP Parse error: syntax error, unexpected '=', expecting ',' or ')' in c:\Inetpub\wwwroot\stay\sharedAccomOfferedResults.php on line 8 this is the code in the searchPage (sharedAccomOfferedResults.php): ***********the code****************** line 6 *******$varsuburb_rsSearchSharedOffered = "porterville"; line 7 *******if (isset(#formFieldName#)) { line 8 ******* $varsuburb_rsSearchSharedOffered = (get_magic_quotes_gpc()) ? #formFieldName# : addslashes(#formFieldName#); line 9 *******} line 10 ******mysql_select_db($database_connProp, $connProp); this code was generated by dreamweaver - appreciate any help to get the search to work properly. thanks in advance clive www.idig.za.net
×
×
  • 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.