No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
21 Posted Topics
Without seeing how your database is set up (the design of your various fields), it seems like you may only have the 'universitas' and 'jarusan' fields to accept a different data type or you just have it set up as varchar(1). Either way, it would probably do you good to …
Here's my understanding of what's happening: The [icode]mysql_query[/icode] function is returning [icode]false[/icode] because there were no rows ([URL="http://us2.php.net/manual/en/function.mysql-query.php"]see PHP manual for mysql_query return values[/URL]). Then, the [icode]mysql_num_rows[/icode] function is taking the value [icode]false[/icode], which is not a resource (what it's expecting), and therefore is throwing an error. A simple thing …
I've experienced an error message similar to this when dealing with the file system. At the time I had the problem, the solution came in the form of checking the folder permissions to be sure the proper write access existed.
I monkeyed around with your code for a little while, and I can see two problems with your implementation. 1. If your JS code above is truly all that's in the file 'ajax.js', then you never created an XMLHttpRequest object. 2. Once you've loaded the page, PHP will never have …
If this is a CAPTCHA, it seems that it would require some sort of actual domain in order to show the image. I had a testing server (on my personal computer) set up using reCAPTCHA and I made a fake domain that my testing server could read (e.g., example.test)--it was …
It's not completely obvious to me what's going on here, as I don't know the meaning behind [icode]$extime[/icode] and [icode]$tictime[/icode]. The one thing that stands out to me, though (simply because it parallels the problem you're describing), is this line: [code=PHP] $tictime = time() + (3600 * 6); [/code] It …
It looks like your hosting provider has disabled the necessary option to allow this function to work, which is [icode]allow_url_fopen[/icode] (read about this option in the PHP manual [URL="http://us3.php.net/manual/en/filesystem.configuration.php#ini.allow-url-fopen"]here[/URL]). If you want to read the contents of a remote file, try using the PHP curl library; there's an example page …
This could be a PHP or Javascript question, depending on how your application works. If you're using PHP, you'd have to have a page which sends the information to the example page you gave above (as POST or GET data), or you could set the form [icode]action[/icode] to be empty …
I think you'll find that the example [URL="http://www.tizag.com/mysqlTutorial/mysql-date.php"]at this page[/URL] will shed light on the problem. Just from a glance, and not being set up to test it, I'd say to change [icode]date_submit='$dsub'[/icode] to [icode]date_submit=CURDATE()[/icode].
Just from the code that you've posted, I'd say that your error has to do with variable naming. In your "copyrightChecker.php" file, you don't define the constant [icode]COPYRIGHT_NOT_VALID[/icode] or [icode]COPYRIGHT_IS_VALID[/icode]. The way you're using those two identifiers, PHP is expecting defined constants, not strings. The easiest thing to do to …
Here's what I do to remedy the problem. I found it after a good bit of Google searching. I think this is all you have to do, since you likely have your work set up as a project and Netbeans should have traversed all files available to your project. At …
If the 'BCC' field is anything like the "To" field, you would probably format it like this: [icode]$BCC = "[email protected], [email][email protected][/email]";[/icode] Using PHP to take the results of the query, you could do something like this to get the BCC recipients into the format I mentioned: [code=PHP] $bcc_email = mysql_fetch_assoc($result); …
I sometimes have difficulty with using the 'isset' function. You might try using 'if( ! empty($_POST['SUBMIT']) )' instead.
I'm not sure if this is the solution, but you might change this line: [icode]this.location.href = "telefoni.html";[/icode] to this [icode]this.location.href = "<$mt:BlogURL$>telefoni.html";[/icode]. Also, you may have a logic error going on. When you first load the page, you have the image 'FirstActiveButton.jpg' loaded; when you click on that image, you …
It looks like you have an unneeded dollar sign in your 'if' condition. Try changing [icode]if ($_POST["$submit"])[/icode] to this [icode]if ($_POST["submit"])[/icode]. Just my 2 cents.
Simple thing, but it looks like you didn't terminate your ternary operator with a semicolon.
I just double-checked the PHP syntax for if/else statements. It seems like you would benefit from using curly braces here, like so: [code=PHP] if (mail($recipient, $subject, $msg)) { echo nl2br("<b>Message Sent:</b> To: $recipient Subject: $subject Message: $msg"); } else { echo "Message failed to send"; } [/code] You may also …
This is simply a matter of missing curly braces. Your script works as expected once they are all in there. Following Fest3er's advice will get you far.
There's a good reference [URL="http://vegdave.wordpress.com/2007/05/19/import-a-csv-file-to-mysql-via-phpmyadmin/"]in this post[/URL] of how to do this, if you are using phpMyAdmin. Here are a few steps: 1) Save the spreadsheet as a CSV file from Excel 2) Make sure you have a table set up in MySQL, having the fields you need and presented …
I'm not very experienced with .htaccess files, but there is something I found after a little Googling that's simpler than your method. I think it assumes that PHP is set up as an Apache module (which is often the case). You could try this: [code] <FilesMatch "\.(htm|html)$"> SetHandler application/x-httpd-php </FilesMatch> …
Your 'container1' div is outside of the 'body' tag, so it may be a browser standards issue; try moving that div inside of the 'body' tag. Firefox is much more standards compliant than IE, possibly resulting in the Firefox-specific behavior you're seeing.
The End.
jcacquiescent27