8,966 Posted Topics
Re: You are adding to the string $construct, even though it has not yet been initialized. If you want to get rid of the notice, add [icode]$construct = '';[/icode] before the if. | |
Re: What is in Navicat's log at the bottom of the import wizard ? Can you post all the lines that are in there ? | |
Re: Not sure what you mean. The page looks the same on IE8 and Opera 10.60 on my machine. | |
Re: Smarty is a template engine for PHP. Read the [url=http://smarty.incutio.com/?page=SmartyFrequentlyAskedQuestions]FAQ[/url] first. | |
Re: Can you show your PHP code too ? (use code tags) | |
Re: See this thread: [url]http://www.daniweb.com/forums/thread296192.html[/url] You cannot use javascript inside php like that, because one runs on the client, the other on the server. ![]() | |
Re: [code] SELECT * FROM tablename WHERE iss_date <= 2010-06-15 ORDER BY iss_date DESC LIMIT 1 [/code] | |
Re: Do you have the page online for viewing ? | |
Re: According to some threads on stackoverflow, there was at some point a detection method available, but at the skype website there is no trace of it. However, if skype is not installed, then you will get a popup that you need it. | |
Re: I would extend the function showHint to accept two more parameters: the first being the php file to call, and the second the elementId to update. That way you can keep using the same function. | |
Re: You code does nothing when no results are returned. That is why you get a blank screen. Before the for loop you should check if you have zero rows. If so, then the login is incorrect and you can return to the login screen using the header() function. There is … | |
Re: Technically I think that [url=http://www.sohtanaka.com/web-design/examples/image-rotator/]this example[/url] comes quite close. Of course you'd want the image to change on hover instead of click. The [url=http://designm.ag/tutorials/image-rotator-css-jquery/]tutorial[/url] shows you how you can do similar things. I think it will get you started nicely. | |
Re: If with text you mean content, than no. CSS is for styling only. Don't know how your site is built and what technologies you use, but some kind of templating would solve your problem. | |
Re: I've tried this, and it works. [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>test</title> <meta http-equiv="content-language" content="en" /> </head> <body> <a id="print" href="#" title="Print map">Printable version</a> <script type="text/javascript" src="jquery-1.4.2.min.js"></script> <script type="text/javascript"> var oldsrc = "1"; var newsrc = "2"; $(document).ready(function() … | |
Re: Can't you just do this ? [code] UPDATE userstats SET wondaily=NOW(), credits=credits+500 WHERE `todaysurfed`>=250 AND DATEDIFF(NOW(),`wondaily`) > 30 OR `wondaily`='0000-00-00' ORDER BY rand() LIMIT 3 [/code] | |
Re: All the .js and .css files can be viewed on that site. So, using firebug or any other tool, you should be able to determine what it does. Aside, it uses a carousel plugin for scriptaculous or prototype apparantly. | |
Re: What is not working ? Do you see an error ? Post the query as it is echoed (line 23). ![]() | |
Re: [QUOTE=nav33n;1058843] And when you say phpmydirectory, are you talking about phpmyadmin or something else ?[/QUOTE] I'm guessing you're trying to install this ? [url]http://www.phpmydirectory.com/[/url] Did you contact their support ? | |
![]() | Re: Using the htaccess file to set permissions is not possible. |
Re: [code] <?php include("connection.php"); $sql ="SELECT curso_name,curso_periodo FROM curso"; $query = mysql_query($sql); echo '<select name="primeira_opcao">'; while ($row = mysql_fetch_array($query)) { echo '<option value="' . $row['curso_name'] . '">' . $row['curso_name'] . '</option>'; } echo '</select>'; ?> [/code] | |
Re: If you want a specific option to be the selected one, you must add [icode]selected="selected"[/icode] to the option tag, not the select tag. You code would look something like this: [code] $activeSelected = ($status == 'Active') ? "select='selected'" : ''; $resignedSelected = ($status == 'Resigned') ? "select='selected'" : ''; echo … ![]() | |
Re: Hearing these responses about voting to close etc. Sounds like daniweb should migrate to StackExchange ;) | |
Re: Found this tip when displaying birthdays in this week. It's to avoid an easy trap. [url]http://www.issociate.de/board/post/166481/MySQL_Week_function.html[/url] | |
Re: [code] <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:pi4="http://www.callassoftware.com/namespace/pi4"> <xsl:output method="html"/> <xsl:template match="results/hits"> <xsl:for-each select="hit"> <xsl:value-of select="@page"/> </xsl:for-each> </xsl:template> </xsl:stylesheet> [/code] (I think) | |
Re: [url]http://www.highslide.com/ref/hs.htmlExpand[/url] From what I read you should omit contentId. If this is not the case, try the highslide forum, they are quite responsive and helpful. | |
Re: Perhaps one of these answers will help: [url]http://stackoverflow.com/questions/1717844/how-to-determine-delphi-application-version[/url] | |
Re: [url]http://php.net/manual/en/functions.arguments.php[/url] See the first user comment. The syntax means that the first parameter is a type or class called openable. | |
Re: [url]http://www.daniweb.com/forums/thread290114.html[/url] | |
Re: Appears to be correct. Without your code it will be hard to tell. Do you check for errors (mysql_error()) ? | |
Re: Perhaps you have no rights to delete a user. You can try to revoke all rights for the user, the effect would be the same. | |
![]() | Re: Last post from OmniX has the answer. Next time, start a new thread instead of bumping an old one. |
Re: Perhaps this: [url]http://phpmailer.worxware.com/index.php?pg=tip_gmail[/url] | |
Re: Apparently, according to the error, your file is missing. So something must have changed. | |
Re: Being a DMOZ editor I can confirm that the signup process is a bit weird. Just take three relevant new links for the section you want to edit and provide good descriptions for them. If they are not good enough, they will reject you, but not always mention what is … | |
Re: I think this is the PHP timeout of phpMyAdmin. So you can either change the php.ini and increase the timeout, or import the file directly into MySQL throught the command line. | |
Re: [url]http://wurfl.sourceforge.net/nphp/[/url] | |
Re: I've done PHP professionally in a former job, but am now doing ASP.NET/C#. From a programmer standpoint I like it much better, as the language is strict, no variable types and such. In my opinion the change will indirectly improve your php coding too. | |
Re: What happens if you try something simpler like: [code] $output = `ls`; echo "<pre>$output</pre>"; [/code] Still no output ? Is safe-mode enabled, or shell_exec disabled ? | |
Re: The python solution at coderholic seems to be the most viable one. It only requires python and a running X. If you manage your own server, than it could be done. However if you use a hosted server, you won't have X running. | |
Re: How to install is fully described in the ScrewTurn's wiki. | |
Re: According to the docs, ajax() has but one parameter. Yet, you are passing two. [code] $.ajax({ type: "POST", url: "check.php", data: "username=" + username + "&password=" + password, success: function(data) { $('#error').html(data); }, error: function() { alert('failure'); } }); [/code] | |
Re: You can use something like TinyMCE for your textareas. | |
| |
Re: [url]http://www.daniweb.com/forums/thread264663.html[/url] | |
Re: I don't think I would. This could backfire since they can determine when the posts were made, perhaps during working hours ... | |
Re: Of course it is possible. You need to use .text() or .html() to get to the table cell value. Comparing a selector to a value won't work. | |
Re: See the info on the following functions: [url]http://php.net/manual/en/function.opendir.php[/url] [url]http://php.net/manual/en/function.filemtime.php[/url] [url]http://php.net/unlink[/url] | |
Re: You cannot combine javascript and php like this. First, the javascript is not outputted correctly. Second, even if it was, javascript is not executed on the server (like php) but on the client. These languages have no knowledge of each other. | |
Re: display should be background This thread belongs here: [url]http://www.daniweb.com/forums/forum143.html[/url] |
The End.