Jump to content

TomJ

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

About TomJ

  • Birthday 03/14/1953

Contact Methods

  • MSN
    t.jacobs@zonnet.nl
  • Website URL
    http://
  • ICQ
    53874052
  • Yahoo
    tomj_nl

Profile Information

  • Gender
    Not Telling
  • Location
    Hoogland, the Netherlands

TomJ's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hi I have a number of tables containing links to various types of documents (docs, pdfs, xls's, ...): [code]<td width="25%"><ul>    <li ><a href="test.pdf">Test1.pdf</a></li>    <li ><a href="test.doc">Test2.doc</a></li>    <li ><a href="test.xls">Test3.xls</a></li> </ul></td>[/code] Now I want to apply consitional styling. When I use [code]a[href $=".pdf"] {     background-image: url(Images/myico_PDF.gif);     background-repeat: no-repeat;     padding-left: 10px;}[/code]I get my little pdf icon as background. But I really want to have the little icon as list-style-image, something like [code]ul li[a[href $=".pdf"]] {     list-style: outside url(/Images/myico_PDF.gif);}[/code] So, if there is a list item containing a <a> that contains a <href> ending in ".pdf", I want the list-style-image to be myico_pdf.gif. But my browser doesn't understand me. Where do I go wrong?
  2. Hello In DWMX 61, I am trying to establish a connection with my MySQL database. I had DW create it for me, and when DW checks it, it reports a working connection. However, when I want to use that connection in a script, the string that represents the connection is rendered as "Resource Id #1". Consecutive uses of the connection variable will increase the reported ID number. This is the code in the DW connector: :::::::::::::::::::::::::::::::::::: <?php # FileName="Connection_php_mysql.htm" # Type="MYSQL" # HTTP="true" $hostname_connAldfaer = "localhost"; $database_connAldfaer = "aldfaer_db"; $username_connAldfaer = "MyUsername"; $password_connAldfaer = "MyPassword"; $connAldfaer = mysql_pconnect($hostname_connAldfaer, $username_connAldfaer, $password_connAldfaer) or die(mysql_error()); echo '$hostname_connAldfaer: '. $hostname_connAldfaer.'<br>'; echo '$database_connAldfaer: '. $database_connAldfaer.'<br>'; echo '$username_connAldfaer: '. $username_connAldfaer.'<br>'; echo '$password_connAldfaer: '. $password_connAldfaer.'<br>'; echo '$connAldfaer: '.$connAldfaer; ?> :::::::::::::::::::::::::::::::::::: When viewed in a browser, it says: ::::::::::::::::::::::::::::::::::::: $hostname_connAldfaer: localhost $database_connAldfaer: aldfaer_db $username_connAldfaer: MyUsername $password_connAldfaer: MyPassword $connAldfaer: Resource id #2 ::::::::::::::::::::::::::::::::::::: I am sure I have overlooked a very simple thing, but I cannot figure out what. Afterall, I am a beginner in PHP. Anyone a suggestion? -t- Tom Jacobs
×
×
  • 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.