No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
11 Posted Topics
No. Most said correct. Database is in the server. Javascript works on client's machine. The only way is to have some script running on server (like php) that would retrieve data from database and pass it to javascript.
1. make sure your variables contain quotes from both sides..for example $razonsocial="somevalue". 2. try writing like this..for example [CODE]"where razonsocial=".$razonsocial;[/CODE] and if those two steps don't work, simply replace this code [CODE]mysql_query($query);[/CODE] with this one [CODE] $result=mysql_query($query); if(!$result){die("Error: ".mysql_error());} [/CODE] to see what error you have
Hi) I needed to make it possible for the user to upload many files from many directories of his pc to server. Here is the html and js code html [CODE] <div id="addPhoto" > Path and Title of the Photo. <br /><br /> <input type="file" name="flImg0" /> <input type="text" name="txtTtl0" …
I cant decide if it is appropriate to use user defined functions for every single action in a page..or it somehow may slow the work? I can alternatively make different php files instead of functions,,and they will do the same thing depending on values of some variables, but i would …
syntax error [CODE]<script type="text"/javascript" src="numbers.js"></script> [/CODE] Should be [CODE]<script type="text/javascript" src="numbers.js"></script>[/CODE]
Hey ppl. I use apach and i've got a problem that i cant fix when i write this code .. [CODE] <img src="Z:/home/localhost/www/ImageGallery/Images/mmbg3xmx3g.gif" width="100px" height="100px" name="imgPreview" /> [/CODE] no image is shown. Whats wrong? The image surely exists in the specified path. And one more problem with this is that …
hey ppl. I have many submit buttons in a form. Each of them does its thing in different php pages. But when, for example, 'add' button goes to 'add.php' it does its work but stays there) how to redirect page back? thanks
hey. I need to make file names be consisted of only numbers and letters. Like if there is an image named 'img*1L%^_ove>ly.jpg' it will become 'img1Lovely.jpg' . Only digits and letters (btw letters meaning even if not english letters). Thanks a lot. I went through php.net, failed finding sth like …
Hey. I am new to webprogramming..so sorry if this question sounds stupid:D I just wanted to make an animation but in firefox that animation just doesnt appear tho it works great in IE and opera. Do you have any idea what's wrong? I use the function setTimeout() and document.all[id].style...etc to …
[CODE]<input type="button" onclick="move()" value="go" /> <br /> <img src="btn16.gif" style="height:100px; width:100px; top:0px" id="img" /> <script> var k=0; function move(){ var t=document.getElementById("img").style.top; t=parseInt(t); t+=15; document.getElementById("img").style.top=t; if(k<10){ k++; setTimeout("move()",1); } } </script>[/CODE]
Hey. I didn't realy get what's your mistake..just corrected it my way and it works fine. Look.. [CODE] <script> function vowel(str){ var count = 0; var myStr=new String(str); myStr = myStr.toLowerCase(); for (i=0;i<myStr.length;i++){ if (myStr.charAt(i) == "a" || myStr.charAt(i) == "e" || myStr.charAt(i) == "i" || myStr.charAt(i) == "o" || …
The End.
kracko