- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 10
- Posts with Upvotes
- 9
- Upvoting Members
- 8
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 2
Stan Kilgore is a man who was lucky enough not only to marry his best friend, but to have married a true geek girl.
- Interests
- Anime is my kryptonite, Diet Mountain Dew is my heroin, and cigarettes are the greatest thing that ever…
- PC Specs
- Atari 800XL w/ BLOAD Cassette Drive and Dual-Button Touchpad running AtariBasic. Them were the days...
128 Posted Topics
Re: If you are planning on creating the PDF files on your end, you can always check out [URL="http://code.google.com/p/dompdf/"]this code[/URL] to see if it is what you need for your site application. ![]() | |
Re: [QUOTE=wrivera;1137394]there is none, PHP is a server side language you will need to echo out the image tag as you would write it using html[/QUOTE] Now that's not entirely true, wrivera. There's always this tag: [CODE] <?php // Insert an image ?> <img src="imagename.jpg"> <?php // End image insertion ?> … | |
Re: Original poster hasn't posted in this thread since Sep 4th, 2009. Also, [URL="http://www.daniweb.com/forums/member541794.html"]Avasulthiris[/URL] stated [URL="http://www.daniweb.com/forums/post966525.html#post966525"]here[/URL] that the project HAD to be finished by Sep 4th, 2009. I don't think it is going to get marked "Resolved", and I'm pretty sure he isn't coming back to this thread anymore. :) Just … | |
If you ever go to [URL="http://www.hostip.info/"]http://www.hostip.info/[/URL], you will find a Community Geotarget IP Project. The great thing about it is that it is free to use. :) Now, this is just a snippet of code to begin working in the world of GeoIPs. There's a lot more info to be … | |
Re: Two suggestions: First, place a space between the closing quote and the word ORDER: [CODE=php] $commsql = "SELECT name FROM comments WHERE blog_id = " . $row['id'] . "ORDER BY dateposted;"; [/CODE] Also, if this does not fix the problem, then you might want to make sure that $commresult isn't … | |
Re: First, please use code tags like this: [CODE]$sql="SELECT GEN1MW,GEN1PF FROM generators where TIMESTOMPX LIKE '%$search%'";[/CODE] Also, answer in the code box. | |
Re: [URL="http://www.activestate.com/komodo-edit"]http://www.activestate.com/komodo-edit[/URL] | |
Re: [CODE]$mydate = date('Y-m-d');[/CODE] Hope this helps. | |
Re: #1 - Please use code tags for code. #2 - Please post relevant details, like how it is NOT working. I am not going through that wall of text without knowing what I am looking for in general. #3 - You are not only moving the site from one server … | |
Re: [CODE=php] <?php $membership_fee = 5; $activity_payment = 5; $total = $membership_fee+$activity_payment; echo "Total: ", $total; ?> [/CODE] Without better details, this covers what you asked. | |
Re: Yep, divyakrishnan has the right idea. To quote the great [URL="http://php.net/manual/en/function.fopen.php"]php.net[/URL] site: [QUOTE=php.net]If the open fails, an error of level E_WARNING is generated.[/QUOTE] You COULD just turn on the E_WARNING flag, but it is much better to use E_ALL. It helps you to remind you about declarations, deprecated code, etc. … | |
Re: You do realize that though you can open and read FROM .rar files, you can't actually create them? [URL="http://rarlab.com/"]WinRar's main site[/URL]. If you're looking to open user-uploaded rar and zip files (the thought which scares the living hell out of me) then you will probably want to just stick with … | |
Re: This question should be moved to the Software Development area under the appropriate section, depending on what the .ocx file is written for. If you are just looking for general information, you can start here: [URL="http://support.microsoft.com/kb/146219"]http://support.microsoft.com/kb/146219[/URL] | |
Re: What is the size of the image you are currently using as the background image? | |
Re: Not sure if this really helps, but just taking a jab at the logic... If line 66 turns out to be true, then line 79 below it can NEVER be true, neither can line 82. Not sure exactly HOW your API works, but you might try looking into your logic … | |
Re: Here's another way, without changing anything in the sql file: [CODE] <?php // Name of the file $filename = '*****.sql'; // MySQL host $mysql_host = '*****'; // MySQL username $mysql_username = '*****'; // MySQL password $mysql_password = '*****'; // Database name $mysql_database = '*****'; ////////////////////////////////////////////////////////////////////////////////////////////// // Connect to MySQL server … | |
Re: Nowhere in the code do you actually account for the armor. You get its rating for the character, but do not actually apply it at all anywhere in the code. Hope this helps. | |
Re: the var "pwd" is being used for both the password of the user during registration as well as password for the database. Hope this helps, my 2¢. ![]() | |
Re: Web hosts nowadays "police" copyrighted materials because they are sent "cease and desist" letters from lawyers or copyright holders. There's not but maybe a few foreign hosts that wouldn't pay attention to those letters. No host wants to lose their business over one customer. If what you have to stream … | |
Re: Are you talking about an actual IRC bot, or for another application, or a web page? The application determines the implementation. | |
Re: It's not a function, but a reserved variable in php. Basically, when you set the method of your form output as "get" instead of "post", you can use this variable to retrieve the form contents. If your html contained: [CODE=html] ... <form action="process.php" method="get"> <input type="text" name="email" /> <input type="submit" … ![]() | |
Re: Let's try going about this a little differently. If you have a good idea of where the php files are located that you will use, why not add their directories to the include path? You can follow [URL="http://php.net/manual/en/function.set-include-path.php"]this link[/URL] to see how you can add folders to the default path … | |
Re: Considering the example provided, I have to ask first, what type of database are you utilizing? | |
Re: No luck on my end. Is there a reason that you cannot use a newer version? Newer versions exist, and are highly recommended. Here's the updated link: [URL="http://rpm.pbone.net/index.php3?stat=26&dist=52&size=282254&name=php-soap-5.3.6-1.el5.remi.x86_64.rpm"]http://rpm.pbone.net/index.php3?stat=26&dist=52&size=282254&name=php-soap-5.3.6-1.el5.remi.x86_64.rpm[/URL] Hope this helps. | |
Re: Try removing the default sender (sendmail_from) in your php.ini. That has helped my friends in the past. | |
Re: Have you tried [URL="http://us3.php.net/manual/en/function.addslashes.php"]addslashes()[/URL]? | |
Re: Change line 9 of the above code to: [CODE=php] echo "ERROR: $errno - $errstr"; [/CODE] ...and tell me what this error message says. Hope this helps. | |
Re: This is just quick code, UNTESTED, but I think that this will get you in the direction that you are looking to go: thispage.php [CODE=php] <?php // Assuming you have set up the connection, let's play the get game if(isset($_GET['listtype'])) { $type = $_GET['selection']; } else { $type = "all"; … ![]() | |
Re: Instead of checking, couldn't you just use REPLACE instead of INSERT in the MySQL command? If the insert was a duplicate, then it would delete and replace the old, basically re-copying itself. If it was unique, then it would just insert the data, at least that is how I understand … | |
Re: Which WAMP package are you using? | |
Re: From what I read from the documentation, it looks like you have to add the rows in the sheet one at a time. Hence, from your code: [CODE=php] $xls = new Excel_XML('UTF-8', false, 'My Test Sheet'); $xls->addArray($data); $xls->generateXML('my-test'); [/CODE] You could, as a SIMPLISTIC example: [CODE=php] $xls = new Excel_XML('UTF-8', … | |
Re: You could simply create a function in the ajax that, when a user clicks "Log Off", sends a general message to the chat daemon letting users know that xxxx has logged off and updates their online status via php call. Sorry for no code, but I have absolutely NO idea … | |
![]() | Re: Have you tried changing the $_REQUEST to $_POST? I am not sure if it would make a difference or not in this case, but it may not hurt to try... |
Re: I don't really think so... What are you trying to convert a web page into? | |
Re: Well, there is a way to place the array into the database so that the array can be retrieved. First, use checkboxes in your form, like so: [CODE=html] <p>Apple <input type="checkbox" name="fruit[]" value="apple" /></p> <p>Grape <input type="checkbox" name="fruit[]" value="grape" /></p> <p>Peach <input type="checkbox" name="fruit[]" value="peach" /></p> <p>Rock <input type="checkbox" name="fruit[]" … | |
Re: Sure thing. Easy as pie, as well. First, go into the code of your index.php file in the wp-admin folder. Change this line of code... [CODE=php] $parent_file = 'index.php'; [/CODE] ...to whatever you want the new filename to be, such as xbhghr.php. Then save the file as that name. upload … | |
Re: Well, to make sure the information is secure, I recommend setting the [I]secure[/I] flag to true during the [B]setcookie[/B] call. The [I]secure[/I] makes it so that the information in the cookie can only be sent if there is an SSL connection present. Hope this helps. | |
Re: It also goes without saying to make sure you "sterilize" user input if it is to be used to direct the user to a "password protected" area. Also, I tend to include a header in my code in "admin" areas that check to see if the right person is in … | |
Re: This is JUST a guess, but I think that the MySQL error is telling you that you can't do two things at once here. You're asking the command to get the COUNT(*) total of ALL records (hence the asterisk) and then wanting the values of 'land', which apparently HAs to … | |
Re: This needs to be posted in the [Javascript](http://www.daniweb.com/web-development/javascript-dhtml-ajax/117) forum. > Hi there > > I have used a script available on the internet for a multiple drop down box ( Country/State/City ). Once the selection is updated I would like 3 different set of result to show in box : … | |
Re: You haven't really provided enough information to get started. Are you using Wordpress? Joomla? Custom Code? What version, etc... Sorry for this answer, but my crystal ball is in the shop. ;) | |
This code is for a stand-alone file, named "thumbnail.php" or something similar. Once uploaded to your server, it can be called from inside an IMG tag. There are four options for this script without modifying anything. [LIST=1] [*]First, you can resize the image to a percentage of the original, as … | |
Re: How are you embedding the video into the page? If you are using Flash, there are ways to trigger events to update form values once a video has come to its end. | |
Re: Well, you could try this to catch the error instead of letting it be silent: [CODE] <?php mysql_connect("localhost","root","root") or die (mysql_error); mysql_select_db("test") or die (mysql_error); $ProductName = $_POST['ProductName']; $Price = $_POST['Price']; $Quantity = $_POST['Quantity']; $Description = $_POST['Description']; $query = "insert into ProductTable(ProductName,Price,Quantity,Description) value ('$ProductName','$Prioce','$Quantity','$Description')"; mysql_query($query) or die('\"'.$query.'\" Query failed: ' … ![]() | |
Re: Well, there's also the option of having a forked php daemon with a unique id stored for each "conversation". I did this once with php for the daemon and flash for the interface. It creates a socket connection, and that's about as direct as you can get. | |
Re: Code example do "Dynamic input" please. | |
Re: Obviously, this code snippet is inside of a loop which is retrieving the information from the database. Here's an idea. Try setting a counter and creating a new table row containing repeating headers. That way, every 30 rows or so, you'll have new headers so that when you scroll down, … ![]() | |
Re: You should be able to use jQuery to achieve this. You can find more information on jQuery here: [URL="http://jquery.com/"]http://jquery.com/[/URL] ![]() |
The End.