Jump to content

lc21

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

lc21's Achievements

Member

Member (2/5)

0

Reputation

  1. With the fix is it now valid html?
  2. In the event of a variable being encorporated into the code is the above method accepated for having the hyperlink url in a variable?
  3. Thanks for the reply are both methods ok to use or is there a prefered standard?
  4. Hi is it standard when using PHP to use single quotes aroud the center attribute, I am aware that it can be done in other ways but I am just wondering if there is a standard or is the following method ok? <?php echo "<p align='center'></p>"; ?>
  5. I am not sure how t hat would work with the code I posted above as the results are being displayed in a table so how would each file name get in the variable?
  6. hi, I am currently displaying data from a database as follows, however I would like to be able to add another column to the table which displays a button so a user can download a file that is related to that record, however there is not always a file available which is indicated in the database as either yes or no. If it is yes i would like the download link to be displayed in the new column as a button or left blank if no file has been uploaded. I was just wondering how this could be done? thank you <?php while($display=mysql_fetch_array($query)) { echo "<tr><td>".$display['problemId']."</td><td>".$display['name']."</td></tr>"; } ?> [/coded]
  7. Thanks I am having a hard time learning all the syntax I always end up getting my " " or ' ' mixed up.
  8. In the value aspect of this line of code what would be displayed is it the first element of the array and if so how do you display the other elements? Thank you
  9. Hi, sorry for a novice question but in PHP how do you populate a list dynamically? for example I have the following in a table but I can't get them into the list after the query is performed. <form action=""> <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat">Fiat</option> <option value="audi">Audi</option> </select>
  10. lc21

    Primary key

    Hey guys does the primary key always start and '1' and if yes is this also true for Oracle? Thanks.
  11. Just tried the code below and it seems to work, thanks. if (empty($problemId) || !is_numeric($problemId))
  12. It didn't work which is a shame, can you recommend any other options?
  13. Hi guys, I currently have the following code which checks for a NULL value but I also need to ensure that the value is not an integer I was just wondering how to check for this? if($Id == NULL || //need to check for non integer value)
  14. Excellent advice thanks guys.
×
×
  • 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.