Search results

  1. A

    mysql result into php array?

    hello, i'm retrieving member ids from an sql table, and i would like them to be placed into the array (1 => 'to', 2 => 'to', 3 => 'to') where 1, 2 and 3 are the member ids, and 'to' always says 'to' i know how to add the ids into an array like this (1, 2, 3) but the '=>' confuses me. any help...
  2. A

    SQL query in php, professional help please?

    So basically, I want the variable $contest below to equal the total entries retured for Contest in the sql query array. $sSQL = "SELECT *, (SELECT username FROM tableMembers WHERE memberId=tableContestComments.memberId) AS Member, (SELECT trackId FROM tableTracks WHERE...
  3. A

    php if statement, multiple values?

    Hi, I'm looking for the most effective way to do the following: if ($variable != value or value or value or value) { do this } please give me some tips, thanks awesome answer robin thanks!
  4. A

    php script for random include?

    Hi, I dont know much about php programming, but I want to write a line of code that will include a random file in a folder. for example there are the following files: /files/1file.php /files/2file.php /files/3file.php now when the script loads i would like it to choose a random php file to...
Back
Top