- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
16 Posted Topics
![]() | Re: That all seems like a very long way of doing it. Just take your Epoch timestamp and assign it certain values, such as date("m", $myTime); to return number with leading zero, eg; 09 (September). <?php $myTime = 1380111299; echo "The time right now is ".date("H:i d/m/Y", $myTime)."."; //outputs "The time … ![]() |
Hi all, First tutorial submission. The standardised strtotime() function really grinds my gears. I hate messing about with dates in different formats... so I mullered this little function up. It works perfectly - probably easier ways to do it, I don't know... I just include this function in my functions … ![]() | |
Hi all, I'm wondering if anyone can answer me just one simple question. Does it matter that the environment, including the setup, OS, MySQL and PHP versions are completely different between a Production Server and a Development Server for developing web-based software depending entirely on databases, php and the usual … | |
Hi all, I have a video on a page on our company website, it's live but not accessible without the URL, it's not displayed on the website yet. Anyhoo, what I'd like to do, is progressively download it, as soon as you turn up to the website, is there any … | |
Hi all, I'm having difficulty with a function I've written. What it does, is creates a standardised list of Options Value's in a Selector for HTML. The value of the MySQL query is then used as the value, but for some reason, I'm getting an error in the code. If … | |
Re: Set your GLOBALS in a constants.inc.php file, or something similar. So; $db_server would be: (for example) 127.0.0.1 $db_user would be: (for example) root $db_pass would be: (for example) password Use this as a function to connect to your databases in your code. function dbConnect() { @mysql_connect($GLOBALS['db_server'], $GLOBALS['db_user'], $GLOBALS['db_pass']) or trigger_error("Could … | |
Hi all, Looking for some help with a piece of code in a jQuery slider. The problem is that it is refusing to do anything in IE, whether by clicks or automatically slide - as it does in Chrome/Firefox. The slider is on the home page; [url]http://www.darenthmjs.com/[/url] The code is … | |
Hi all, It's been a while since I've had to post for some help! :P I have a question; I'm fairly decent with network setups, but my boss just mentioned something that I'm unfamiliar with. What we would like, is a sort of hotdesking feature, throughout the office. We have … | |
Hi all! I have a DIV (#content) and in that DIV I have about 4 or 5 <p>'s on the page. I'd like to give just one class of that <p> some jQuery to rotate 45 degrees. Could anyone point me in the right direction? I've searched everywhere I can … | |
Hi All, Just a quick one, My code (Below) works in Internet Explorer, but not in Chrome, Safari or Mozilla Firefox. Not sure why, but would it be possible for someone to point me in the right direction? Thanks! Code attached; [CODE=Javascript]<script language="javascript"> function formAction(flag) { switch (flag){ case "create": … | |
Hi guys, I'm wondering if anyone can help. I have surryussface flu and I just can't seem to concentrate at all. I need to be able to select a colour from a list like the attached image. I've managed to code it right up to the part where it can … | |
Re: jGrowl is a nice little pop-up displayer. It's normally used for pop-up messages, but you can easily use it to fade in a huge div layer. It comes complete and all you have to do is put the content within the div. You can embed HTML inside the 'popup' and … | |
Hi guys! I'm back with more problems! I've tried everything... I just can't seem to get it to work. :( Okay, a short explanation of what the goal is. I have 5 buttons, and a list of records which are pulled from the database. Import CSV Create Edit Delete View … ![]() | |
Re: Hmm that's tricky! Try something like this... [CODE=HTML] <!-- In the head --> <script type="text/javascript" language="JavaScript"> function sendmail() { document.mailform.performaction.value="sendMail"; document.mailform.submit(); } </script> <!--Html around here--> <div id="contactForm" class="container"> <form action="handle_form.php" method="post"> <fieldset><legend>Enter your information below:</legend> <table> <tr> <td><p>Name: </td> <td><input type="text" name="name" size="30" max length:"40" /></p></td> </tr> <tr> <td><p>Phone: … | |
Hi everyone, My second time back to Daniweb looking for assistance with PHP. :) Okay, here's my PHP, and I'll explain what it does. [CODE]dbConnect(); if ($userclient == '2438') { dbOpenDatabase($GLOBALS['res_2438_contacts']); } else { dbOpenDatabase($GLOBALS['db_contacts']); } /************************************************ * THE IMPORTANT BITS - CHANGE BELOW * ************************************************/ //Product ID for Safety … | |
Hi everyone, I'm in a spot of bother. Attached is an image which should help better show what I'm about to ask for assistance with. :) [url]http://img96.imageshack.us/img96/7624/sqlm.jpg[/url] What I have, is 2 tables that associate each other with 'packholder' In the table shown, you can see Packholder - 1, 2, … |
The End.