450 Posted Topics
Re: Looks like this should work. [URL="http://www.php-mysql-tutorial.com/perform-mysql-backup-php.php"]http://www.php-mysql-tutorial.com/perform-mysql-backup-php.php[/URL] | |
Re: This should do it. [URL="http://javascript.about.com/library/blbrsdet.htm"]http://javascript.about.com/library/blbrsdet.htm[/URL] | |
Re: My opinion: real php programmers don't use frameworks, they build their own through time. Anytime I need a new widget, I build a class and add it to my library. | |
Re: put in more die functions. [CODE=php] <?php // Include connection to your database $con = mysql_connect("localhost","root","") or die(mysql_error());; mysql_select_db("RUNNERS", $con) or die(mysql_error()); $name = $_POST['first']; $query = "SELECT * FROM runners WHERE id =".$name; $result = mysql_query($query) or die(mysql_error());?> <table class="sortable"> <!-- Table Header --> <thead> <tr> <th>ID #</th> <th>First … | |
Re: if you are using mysql, there should be plenty of examples here: [URL="http://us.php.net/manual/en/function.mysql-connect.php"]http://us.php.net/manual/en/function.mysql-connect.php[/URL] | |
Re: I hope you are validating that password. $username = "blahblah"; $password = "blah' or '2' = '2" if not, I could log in with just that. | |
| |
Re: [QUOTE=madjax;654317]Hi Not sure if I am in the right place to ask this question,but here goes If a customer goes on my site to buy something via my paypal button and it comes up.....You do not have permissions to make this API call.... where is my problem,what have I not … | |
Re: This should answer your question [URL="http://us3.php.net/manual/en/function.fread.php"]http://us3.php.net/manual/en/function.fread.php[/URL] | |
Re: I usually use tineMCE, which looks like it does exactly the same thing. If you want to do that I can help you with that, but chances are they have enough documentation and examples that you won't need my help. | |
Re: the array looks right to me, I do know that the keyword "var" is used to declare variables in classes. This doesn't look like a class so delete those "var"s. | |
Re: [CODE=php] <? $pages = array(); for($i = 0; $i < 20; $i++) { $page = $i; if($page < 10) { $page = "0" . $page; } $pages[] = $page; } ?> <select name="selPage" id="selPage"> <? foreach($pages as $page) { ?> <option<? if(strpos($_SERVER['HTTP_REFERER'], $page . ".htm") !== false) { echo ' … | |
Re: Professionally? I would say my first IT job. I had been in the process of redeveloping a manufacturer to end user E-commerce site with several manufacturers, each one being different and having their own scheme. The site was originally done in asp, then OS Commerce(if you've never had to work … | |
Re: With no knowledge, someone's going to end up with the short end of the stick. Which is what happened to me, but I think I'm better off because of it. | |
Re: first, get the "Web Developer" add on for firefox, then go to [URL="http://www.i-spy360.com/spins/spin6/Spin360.html"]http://www.i-spy360.com/spins/spin6/Spin360.html[/URL] and use the "Web Developer" option called "View Javascript" under the information tab. Then you can see how they do it. ignore the google analytics portion it actually looks relatively simple. | |
Re: The only way that I know of to fire a php file is to open it, generally with a browser. If you go directly to a .pdf file, I have no idea how a php script will be able to detect this action. You could create a php file and … | |
Re: are you talking about something like a wysiwyg editor? | |
Re: You can use html tables and colspan and rowspan define the number cells. width doesn't work. | |
Re: think it means that your script ended abruptly. PHP is probably expecting you to do something on the bottom of the script. Maybe missing a "}". | |
Re: Javascript(or ajax) stops processing once the user navigates away from the page, always. The backend script will continue on the server but the javascript that outputs the header to the user once the ajax responds back will stop. I suggest openning it in a new window, and using some type … | |
Re: In the same page? So you're looking for an ajax solution? | |
Re: [CODE=javascript] document.getElementById("element id").innerHTML += "table data"; [/CODE] are you using "=" instead of "+="? | |
Re: On line 22 just do this [CODE=php] $result = mysql_query($query2) or die(mysql_error()); [/CODE] and the error should tell you exactly what's wrong. | |
Re: its just a hidden div [icode]<div style="display:none" id="divlogin"><!-- login content here --></div>[/icode] you can change the display value with [code=javascript] document.getElementById("divlogin").style.display="none"; and document.getElementById("divlogin").style.display="block"; or document.getElementById("divlogin").style.display="inline"; [/code] | |
Re: There are numerous ways you can do it. You can have one variable specifically for the previous value. So just before you assign a new value to the textbox, assign the current value that is in the textbox to your history variable, then insert the new value into the textbox. … | |
Re: Try this and if the answer still isn't apparent, post the results. [CODE=php] <?php $rank_check = 1; $page_title = "Training Center"; include "header.inc.php"; echo $openHTML; print "<p align='center'><b>Training Center</b></p>"; If ($_POST['attack_selected'] == 'yes'){ $res1 = mysql_query("SELECT * FROM user_pets2 WHERE id='".$_POST['pet_id']."' AND owner = '$userid' AND adoption = '0' AND … | |
Re: replace 'echo "fail";' with print_r(error_get_last()); | |
Re: [QUOTE=eagled2;651458][code] UPDATE profile SET group = '2' WHERE uid = '2' [/code][/QUOTE] group is a keyword, use `group` | |
Re: [QUOTE=snoopy85;651552]What I was thinking at first was I wouldn't want too many records in a single table and having different months' table for each purchases and sales table would make it much neaty.[/QUOTE] Guess that just depends on your personal definition of neat. But take it from someone who creates … | |
Re: Try eliminating one problem at a time. create a page with just this code in it and refresh it several times, if it resets to zero then you have a problem, if not, I'm pretty sure that it is not a problem with the session. [CODE=php] <? session_start(); if(!isset($_SESSION['sesstest']) || … | |
Re: see if this works added value to disabled checkbox added check if disabled isset and = disabled added if db disabled "checked='checked' " [CODE=php] <?php session_start(); include 'config.php'; include 'opendb.php'; include("login.php"); echo '<link rel="stylesheet" type="text/css" href="profile.css">'; echo '<center><div id="page"><img src="images/profhead.gif" width="955" height="90" /></center>'; if($logged_in){ loggedgroup(); if($_SESSION[grptype] == 'Admin' or $_SESSION[grptype] … | |
Re: Don't know how reliable it is but [URL="http://www.dcs.uwaterloo.ca/~anderson/JavaScript/ex_load_unload.html"]http://www.dcs.uwaterloo.ca/~anderson/JavaScript/ex_load_unload.html[/URL] | |
Re: I'm sure I could, sending my contact info to your personal mail box. | |
Re: this is funny Your the only one on the list. [URL="http://www.google.com/search?hl=en&q=telnet+%22-ERR+protocol+error+16%22&btnG=Google+Search"]http://www.google.com/search?hl=en&q=telnet+%22-ERR+protocol+error+16%22&btnG=Google+Search[/URL] I'll keep my eyes open. [QUOTE=nschessnerd;650647]or something...[/QUOTE] is "-ERR protocol error 16" the exact error? | |
Re: [QUOTE=sbuggle;650720]I need detailed examples of how to create a pdf from jsp[/QUOTE] This is the javascript forum, not Java. | |
Re: Try other ftp applications. If those also take a long time, try another pc or contact your server admin to see if the problem can be duplicated. If the problem can be duplicated in other locations then it must be on the server's end, or something [B]very[/B] strange is going … | |
Re: if your talking about the function time() and a unix timestamp 1 = 1 second | |
Re: Here is an example of a where clause and how to use it [URL="http://www.w3schools.com/php/php_mysql_where.asp"]http://www.w3schools.com/php/php_mysql_where.asp[/URL] | |
When posting, I recommend making the code tag a drop down just like the smiley. The code tag drop down would then require the user to select a specific type of language.:) | |
Re: Since "_" is an invalid character for a domain, does that mean that you will never have an underscore in the any of the form entity names? if so, you could try this [CODE=php] foreach($_POST as $key=>$value) { $_POST[str_replace("_", ".", $key)] = $value; } print_r($_POST); echo "<br />" . $_POST['.co.uk']; … | |
Re: Depends on what you are doing. What are you doing? Can you post some of the code? | |
Re: Think I made just one adjustment and it works now. [CODE=javascript] <html> <head> <title>swapimage</title> </head> <script> var arr=["img/wysiwyg_buttons/bold.gif","img/wysiwyg_buttons/italic.gif","img/wysiwyg_buttons/strike.gif"]; i=0; function swap() { document.images[0].src=arr[i]; i++; if(i==3) i=0; setTimeOut("swap()",5000); } </script> <body bgcolor="white"> <marquee behaviour="alternate" direction="left" onClick="swap();"><img src="img/wysiwyg_buttons/link.gif" > </marquee> </marquee> </body> </html> [/CODE] After I moved the onclick event, it worked … | |
Re: This is how you get the length of a string. [code=javascript] var stringlen = stringvarname.length; [/code] BTW: its all html when it hits the browser | |
Re: I guess if you really wanted a solution, you'd use [code] tags. Do you get an error on the third page after submitting from the second. Had you tried a [ICODE]print_r($_POST);[/ICODE] just to see what is being posted? | |
Re: [QUOTE=xaippo_script;645832][CODE] <label for="nameField">Enter your name: <input type="text" size="28" id="nameField"> </label> <input type="submit" value="Sumbit"/> <br /> <div></div> </form> [/CODE][/QUOTE] OK, the first thing that comes to mind, and let me know if I'm just missing something, but where's your opening form tag? | |
Re: What I would do is use sessions in the scripts that the ajax calls are referencing. When you refresh your current page, those sessions will then reflect the last file, or set of files(depending on how complicated your ajax application is) and you can populate your javascript with the php … | |
Re: Don't know if this helps but this would be the correct way to do it in php: [CODE=php] $query = "SELECT odb_members.id, odb_members.user_lvl, odb_members.name_first, odb_members.name_middle, odb_members.name_last, odb_members.addr_state FROM odb_members WHERE odb_members.user_lvl = 1 AND odb_members.addr_state='" . mysql_real_escape_string($_SESSION['sessvar1'], $dbconn) . "'";[/CODE] |
The End.