- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
33 Posted Topics
i ran a search in the php documentation. i dont know if this will help, but its worth checking out. [url]http://us2.php.net/manual/en/function.newt-refresh.php[/url]
are you using server side scripting for the upload?
try this: [CODE=html] <div id="div1" style="background:#003399; height:152px; width:175px; position:absolute; left: 595px; top: 181px;">div 1</div> <div id='div2' style="background:#99FF00; height:500; width:500; position:absolute; left: 44px; top: 143px;">div 2</div> <input type="button" onclick="javascript:matchHeight('div1','div2');" value="match height" /> <script type="text/javascript"> function matchHeight(id1,id2) { var el1=document.getElementById(id1); var el2=document.getElementById(id2); el2.style.height = el1.style.height; } </script> [/CODE]
does anybody know a mysql query that i can use in my php document that will return the number of rows their are in a table? thanks, i cant find it in the MySQL mannual
firefox 2's error console works quite nicely. it will tell you a syntax error is on line 1 every now again, forcing you to search. i would have to agree with ShawnCplus however on the whole deal. but for quick check, the built in fire fox error checker helps.
first, no, you cant have any html inside of the php tags unless it is in an echo/print . i would put the form and submit buttom outside of the tags. second, before you try to loop through databaase results, you have to connect to the database and retrieve results. …
[url]http://php.net[/url] there is a search box that will search all of the functions available, documentation, and more in php.
i have searched the web for awhile on this... i wrote a script that will format certain words as the user types [INDENT](ex. when the user types MTrak the text is replaced with <b>MTrak</b>)[/INDENT] i need to know how to view the formatting in a text box, not the tags. …
to inilize an action when a div is clicked, it needs to have the "onclick" parameter set. ex. [CODE=html]<div class="longtext" id="div0"> <span class="chin L"> begin 九</span></div> <div class="section" id="div1" onclick="javascript:getText(this.id,'div0');"> <p class="chin"> 乾 元</p> english text </div> [/CODE]
[QUOTE=The Dude]Please be aware if you click on the video it is VERY GRAPHIC - the most disturbing,graphic video ever[/QUOTE] could this be the next 2 girls one cup!?!?!??!?! dibs on first youtube live skinning reaction video! jk, live skinning animals is horrible. do on to others as you would …
what i want to do is this: [CODE] function foo(param1, param 2){ [INDENT]this.bar=function(){ [INDENT]this.intervalID=setInterval(this.fbar,5000);[/INDENT] } this.fbar=function(){ [INDENT]//(do stuff with the properties of "this" alert(this.intervalID);[/INDENT] } [/INDENT] }[/CODE] but setInterval will not carry over the properties of "this". when this happens: [CODE] var apple=new foo(5,27); apple.bar(); [/CODE] i need apple.fbar(); to …
it is a div with 100% width that drops down using a setInterval loop. it is probably put in place by server side scripts
so when the user goes to that folder, they see a blank page instead of a directory of all of your files. ex. [url]http://johndm.com/images/index.JPG[/url]
"Php and Mysql Web Development" third edition by Luke Welling and Laura Thomson. ISBN 0-672-32672-8 quite possible the best resource on everything php and mysql. it covers this about session control: what is session control understanding session functionality -cookies -setting cookies with php -using cookies with sessions -storing the session …
i have looked at many regex charts and tutorials but i still cant get preg_match_all do what i need it to do. i need to return this example: [INDENT]param1,$config{}[/INDENT] from this string [INDENT] $new_config{param1,$config{}} [/INDENT] note: none of the data in the string has anything to do with php the …
is there a way to create a function that uses values from the statement inside of brackets. ex. [CODE=php] myFunction(){ //data here } [/CODE] if not, what i am trying to do is get a html tag and check/modify without having it inside of a variable or echo tag. for …
[code=php]//do you login script here //after user is logged in $username= $_SESSION['username']; //after connecting to mysql $query = "SELECT * FROM students WHERE username= '".$username."'"; $result = mysql_query($query); $row = mysql_fetch_array($result, MYSQL_ASSOC); //row is array with all details. here are some examples echo $row['name']; echo $row['email']; //or print all-> foreach($row …
a quick google search finds this: [url]http://www.phpclasses.org/browse/package/2859.html[/url] [QUOTE] This class can be used to perform several types of operations with matrices. It can perform the operations like sum, reduction, multiplication, division, covariance matrix, mean matrix, inverse and determinant.[/QUOTE]
here is how to do it in javascript: [CODE=html] <!-- your image --> <img src="YOUR_THUM_IMAGE_PATH" onclick="javascript:fillDiv('YOUR_BIG_IMAGE_PATH','div1');" /> <div id="div1" style="width:100; border:thick; display:inline;">click the image to make new image appear here</div> <script type="text/javascript"> function fillDiv(imgurl, div){ document.getElementById(div).innerHTML="<img src='"+imgurl+"' />"; } </script>[/CODE]
here is the script: [CODE=html] <select id="jump"> <option value="http://localhost/page2.html" onclick="javascript:window.location = this.value;">page2</option> <option value="http://localhost/page1.html" onclick="javascript:window.location = this.value;">page1</option> <option value="http://localhost/page3.html" onclick="javascript:window.location = this.value;">page3</option> </select> <script type="text/javascript"> var slect=document.getElementById('jump'); if(slect.value!==location.href){ slect.value = location.href; } </script>[/CODE]
what kind of board are you using? can you use javascript in it? if you can insert javascript on the page, do this... [CODE=html]<script type="text/javascript"> function changeMaxLength() { var maxlen = '50';//change this to what maxlength you want var node=document,classname='forminput'; var a = []; var i; var re = new …
if you menu is positioned absolutely or relatively positioned, i can see this happening do you have a link, i am not completely sure what is happening
using ajax to call a php fuction: [INDENT]put this where you want resutls: [CODE=html]<div id="results" style="display:inline; width:100px; height:20px;"></div>[/CODE] include this ajax library in the page you want the results to display on. [INDENT][url]http://www.codeproject.com/KB/ajax/SAL/sal_src.zip[/url][/INDENT] [CODE=html]<script type="javascript" src="path_to_ajax_lib"></script>[/CODE] create php page with your function in it and do this: [CODE=php] <?php function …
is this what you are looking for? [CODE] <script type="javascript" > //replace formname with with the name of your form and inputname with the //name of the input field you want to select document.formname.inputname.focus(); document.formname.inputname.select(); </script>[/CODE]
if you want to have the script email the results, it would probably be easier and safer to use a server side script like PHP . i could be wrong but, i dont even think javascript will send emails.
how could i call a javascript function through an url like> [CODE]http://localhost/?functionname.params[/CODE] i get how to do a link but i need to know if it is possible through an url. if it is not posible with just javascript, php scripts will do thanks!
<input type="button" onclick="javascript: Test(mystring)" name="clickMe" value="Update Now!" />
this is fixing to drive me off a cliff!!! i got a static ip asigned to my modem. i have a linksys router hooked directly to my modem. I have a linux server hooked directly to my linksys router. How do i get the static ip to go to my …
i wrote this script and i cant get any ouput from it. [code] $time = $_POST['time']; $budget = $_POST['budget']; $visual = $_POST['visual']; $update = $_POST['update']; $custom = 0; $stream = 0; $easyup = 0; $selfup = 0; $upserve = 0; if($time == "deadline"){ $custom = $custom + 1; } if($time …
i need a script that would tell the server to fwrite every other request, not every time. anybody got an idea?
ive never had this error before, could any one help me sort this out? here is the effected section of my script. thanks for any help [php] </span></p> <p> </p> </blockquote></td> </tr> </table> </body> </html> <?php //script end ?>[/php] ive also tryed... [html] </span></p> <p> </p> </blockquote></td> </tr> </table> </body> </html>[/html]
i am trying to export the results from a form into the script of another php in form of variables : ex. form proccess script (globalvar.php) [quote] $dbtype = $_POST['dbtype']; $dbhost = $_POST['dbhost']; $dbname = $_POST['dbname']; $dbpass = $_POST['dbpass']; $dbport = $_POST['dbport']; $dbtable = $_POST['dbtable'];[/quote] new php (varheader.php) [quote] $dbtype …
ive got a [B]Parse error[/B]: syntax error, unexpected T_VARIABLE on this line: [code]$dboutput = "//database vars \n" "$dbtype = '".$dbtype."'; \n" "$dbhost = '".$dbhost."'; \n""$dbtype = '".$dbtype."'; \n""$dbname = '".$dbname."'; \n""$dbport = '".$dbport."'; \n""\n" "$database = array($dbtype, $dbhost, $dbname, $dbpass, $dbport);";[/code] any idea of whats wrong with it?
The End.