Jump to content

fierdor

Members
  • Posts

    66
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

fierdor's Achievements

Member

Member (2/5)

0

Reputation

  1. Hey I am using XAMPP on Windows. I basically want to access a database running on a remote MySQL server. I have provided the IP of the remote machine. I have also edited the httpd-conf file on the remote machine. I am able to access the remote machine's phpmyadmin.. Like If i enter 172.xx.xx.xx/phpmyadmin I get the console However my application is not able to fetch any data from the database..I get this error.. Host 'xxxx' is not allowed to connect to this MySQL server in database.php on line 2 Could not connect to databaseHost 'xxxx' is not allowed to connect to this MySQL server What other permissions do i have to change?
  2. Yes that did it! Just added a position:relative Thanks a lot! Learnt a new thing..I didnt know that!
  3. I have a horizontal menu with background images for the anchor elements. On hover I am changing my background image which is slightly more than the size of the image in the static state.. So I want this image to be on top... However the code does not seem to work.. My hover image appears but the extra part remains hidden behind the adjacent anchor's image.. #navmenu ul li a{ background-image:url(../images/1.gif); background-repeat:no-repeat; text-decoration:none; outline:none; color:#000; float:left; margin-right:-18px; width:100px; display:block; text-align:center; padding:6px 11px; display: inline; font-size:12px; text-indent:-8px; } #navmenu ul li a:hover{ background-image:url(../images/2.gif); color:#fff; z-index:6000; } <div id="navmenu"> <ul> <li><a href="index.php">1</a></li> <li><a href="#">2</a></li> <li><a href="#">3</a></li> <li><a href="#">4</a> <li><a href="#">5</a> </ul> </div> Is it like z-index wont apply to hover state?
  4. Okay thanks! But I have not used mod_rewrite before...I was going through some tutorials... Is it possible for a single file though? I am being plain lazy here..but could you post a snippet or something
  5. I am using PHP to generate RSS feeds with MySQL...So basically even my RSS page has a .php extension as I am echoing out my RSS... Will it make any difference as compared to a standard .xml file..?? Or should i use some libraries and write a separate .xml file with PHP?
  6. Thank you! That was an interesting read...He's stated 4 alternative solutions... However i dont think my row count is going to increase beyond ,say 50 or 100... So I assume the performance benefit will not be so noticeable,right? But that said, I will keep this in mind for future projects..In fact that entire presentation seems to be quite useful..
  7. I stumbled upon a solution while googling: $random_row = mysql_fetch_row(mysql_query("select * from YOUR_TABLE order by rand() limit 1")); But anyways is it possible to generate a sequence field programatically?
  8. Yeah...basically I am using it to randomise a selection in PHP: My pseudocode: 1. Count the entries 2. rand(1,count)--Randomise a selection between 1 and the count 3. Select the content corresponding to that row number.. Hence in this algo it is necessary that my serial numbers be in sequence so that I can select the content... I am game if there is some other algo which will make my life simple.
  9. I need to have a sequential field in one of my SQL tables such that even if i add or delete a row the other numbers should automatically adjust and make a sequence.. Autoincrement is one option but it wont work if I delete a certain row in the table... Is it possible to have such a field?
  10. I want it to look like the way it does in Firefox.. Two disjointed boxes..No overlapping..
  11. Is there any other way I can get these mails coming to this list archived to my database? Any suggestion for a workaround? I was thinking: 1) Check the mails of a person subscribed to this list 2) Wherever the 'to' field has 'alias' just store those emails Is it a good solution? I am not able to get any resources on how mailing lists are maintained on a MS Exchange server.. Ideas,anyone??
  12. Ok I tried that...The problem persists..My code now looks like this: <html> <head> <style> #wrapper { width:856px; background-color: #ffffff; height:700px; margin:auto; } #child1 { width:360px; height:250px; color:#000; text-align:center; } #parent{ width:400px; height:250px; margin-left:50px; border:1px solid #06f; } #child2 { width:400px; border:1px solid #06f; } </style> </head> <body> <div id="wrapper"> <div id="parent"> <h4>Parent</h4> <div id="child1"> Child 1 </div> <div id="child2"> <h4>Child 2</h4> </div> </div> </div> </body>
  13. I am able to get a list of mails of my inbox... But my question is that there is a mailing list with an alias...How do I access mails sent to that alias? Like my URL is something like: http://exchang.server.com/exchange/username/Inbox So where are the mailing lists stored like this? And also there wont be any authentication for a mailing list right?
  14. No I have..See near child 1.. I have indented the code here: <html> <head> <style> #wrapper { width:856px; background-color: #ffffff; height:700px; margin:auto; } #child1 { position:relative; width:360px; height:250px; left:-20px; color:#000; text-align:center; } #parent{ width:400px; height:250px; float:left; position:relative; left:50px; border:1px solid #06f; } #child2 { float:left; width:400px; position:relative; border:1px solid #06f; } </style> </head> <body> <div id="wrapper"> <div id="parent"> <h4>Parent</h4> <div id="child1"> Child 1 </div> <div id="child2"> <h4>Child 2</h4> </div> </div> </div> </body>
×
×
  • 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.