skym
Members-
Posts
253 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Everything posted by skym
-
I would think to try first something like:<div onmouseover="this.style.height='100px';">...</div>
-
There would also be <div align="center"> ... </div> Not sure if it's deprecated this too... Probably it is.
-
Check the quotes.To avoid the problems like this, you better use separate functions instead of inline javascript, like: <script>function chenge() {document.getElementById('changing').innerHTML = '<img src="images/ad_sundaysermon.jpg">';}</script><img src="images/testbut2.png" onmouseover="change();">
-
He said he did that, the problem now is "DB Error: syntax error".I gave my answer above.
-
Couldn't find the SQL syntax error?$insert = "INSERT INTO users ( username, password, regdate, email, location, show_email, last_login, act_num) VALUES ( '".$_POST['uname']."', '".$_POST['passwd']."', '$regdate', '".$_POST['email']."', '".$_POST['location']."', '".$_POST['show_email']."', 'Never', '$number')";
-
So actually there was a query error initially, the 'person' table did not exist.Using 'or die(mysql_error());' would have shown this error. Use mysql_error() also with mysql_select(), or anything that can return an error from the mysql server.In phpmyadmin the last SQL executed queries are always shown, you can take the executed query and put it in PHP.
-
Probably a query error.$result = mysql_query("select * from person") or die("Query error: ".mysql_error());
-
Coudln't find an answer...Only that setting display:block to img will resolve the problem.
-
I think he's talking about Chris Pederick's toolbar http://chrispederick.com/work/webdeveloper/
-
<td colspan="8" rowspan="7" valign="top" background="protected/images/WW6_17.gif"><div align="center"><br><br><font color="#FFFFFF"><?php include("regform.php") ?><br> The <td>, <div> and <font> tags are not closed.
-
result=document.frm.result.value => document.frm.result.value=result
-
http://www.w3schools.com/htmldom/dom_obj_history.aspFor empty 'history', check the length for the History object:<html><head><script>function goBack(){if (history.length != 0) { history.back(); } else { location.href='http://www.google.com'; }}</script></head><body><a href="#" onclick="goBack(); return false;">BACK</a></body></html>
-
Options All -Indexesin .htaccess file.
-
They are different../folder/folder2/file.jpg points to a folder relative to the currect folder,/folder/folder2/file.jpg is relative to the web server root folder.
-
I am not experimented at all with DOM, but, input objects are linked to the form object, for example when I want to access an input field I use document.formname.inputname. In your case, the 'myfile' input object is not linked to the 'myform' form object. Probably it should bevar myfile = myform.createElement("input");
-
If you use PHP check their site: http://www.php.net/manual/en/features.file-upload.php
-
http://php.net/fopen
-
There should be only one POSTDATA, the 'id', from what I understand.Is there any $id = $_POST['id] at the top? If there isn't, the script will work only with 'register globals' on.Also, because it is user input, you should use:$sql = "SELECT title, artist, album, release_year, genre, language, date_added, added_by, english_lyrics, translation FROM songs WHERE song_id = '".mysql_real_escape_string($_POST['id'])."'";
-
reportingsjr is right, it should be:<textarea name="engexcerpt" rows="6" cols="50"><?php echo htmlspecialchars(stripslashes($excerpt)); ?></textarea>
-
document.all[anc].style.fontWeight = 'bold';http://www.w3schools.com/htmldom/dom_obj_style.asp
-
Avoid the save and copy of the downloaded content
skym replied to padmapraveen_vasili's topic in JavaScript
I don't think it's possible, and there's no point for it either. Choosing Open means to download the file in the download folder set for the browser and open it when it is finished. So the file is still downloaded, 'save' just prompts the user to specify the destination folder.Practicaly anything that is shown on the screen can be stolen, any images or texts. -
Javascript won't do, but I found something interesting to try, as you said, a server-side script (PHP): http://datacompression.info/MP3.shtmlScroll down to Non-Commercial Libraries and check getID3(). Not only for MP3 files... I did not test it yet though.