492 Posted Topics
Re: Why are you asking how to convert txt files to PowerPoint (or any other for that point) files in a PHP forum? | |
Re: Arrays are fairly simple, the below example is untested and is just a simple sample to show how it works: [code] $blind_details = array( "width" => "$value", "height" => "$value$value", "material" => "", "colour" => "$value", "style" => "$value", ); [/code] You can add more or less items to suit. … | |
Re: Do you mean [icode]$_SERVER['HTTP_REFERER'][/icode]? you could get the domain which the user came to this page from from this variable, however this is not perfect, it can be spoofed and hidden quite easily. | |
Re: Well, without your code we don't know what you already have. Post it up and someone will be able to help. | |
I am having some problems with HTML and CSS, firstly with links in a li element, I have it set to display: block so that the it will highlight when the cursor is placed within the li area, but this is not working in IE 6 (I know this is … | |
Re: Store the data in a database, get the clients to refresh/check the database at set intervals.. | |
Re: I would not suggest showing E-Mail addresses at all ever on a website as these can be picked up by less than wholesome people :) But if you really want to do this, echo an add the a mailto to the code around the email address. ![]() | |
Re: Do you notice anything wrong with line 41? [code=php] $yoursite = ‘[url]www.sitename.co.za’;[/url] [/code] | |
Re: [url]http://www.tizag.com[/url] covers alot of the basic PHP/SQL functions as well as others | |
Re: Surely if you are creating your own then you will write the source code your self... Or do you mean you want an open source one? Try: [URL="http://getvanilla.com/"]Vanilla[/URL] or [URL="http://www.phpbb.com/"]phpBB[/URL] | |
Re: [code=php] $fullProductId = explode("-", $value) $productId = $fullProductId[0] [/code] Should work | |
Re: If you are inserting a new row into the table, then you want to use the Insert not Update, take a look at [URL="http://www.tizag.com/mysqlTutorial/mysqlinsert.php"]this[/URL] | |
Re: Th JavaScript code for this will be similar to: (You will need to modify this) [code] <script type="text/javascript"> function createRequestObject() { var ro; var browser = navigator.appName; if(browser == "Microsoft Internet Explorer") { ro = new ActiveXObject("Microsoft.XMLHTTP"); }else { ro = new XMLHttpRequest(); } return ro; } var http = … | |
Re: Do you mean the back button on the browser or do you have a back link on the page? With your code you should be able to go back using the url vars, but depending on how your search page works it may not work with the browsers back button | |
Re: I would assume you want to put this before for insert the data into the database, so withing the write part of the switch before the SQL query. | |
Hi All I have an Excel workbook (Excel 2002) which is accessed and modified by multiple people, there are 3 sheets within the workbook, 'Processing', 'Completed', and 'List Data'. On the processing sheet there are open jobs with drop-down validation in 2 cells which fetches options from the list data … | |
Re: I am unable to decipher exactly what youa re asking from your post, but try the [URL="http://forums.oscommerce.com/"]oscommerce forums[/URL] and [URL="http://addons.oscommerce.com/"]site[/URL], they have boards for support and since the package is open source there are many add-ons to choose from on their site. | |
Re: Look at the .htaccess file, it is using rewrites, they will all be listed there. | |
Re: Take a look at the wordwrap function in PHP: [URL="http://uk.php.net/wordwrap"]http://uk.php.net/wordwrap[/URL] [code=php] wordwrap($text, 100, "<br />\n", true); [/code] | |
Re: $row will be empty with the way you are doing this, you will need at a minimum: [code=php] $result = mysql_query ("SELECT * from blog ORDER BY blog_id DESC")or die(mysql_error()); $row = mysql_fetch_assoc ( $result )or die(mysql_error()); [/code] This way the $row will be set and can be used. This … | |
Re: What is the error it is throwing at you? If it is giving a syntax error it will give the problem and the line number. | |
Re: Be more specific.... What OS, What version of Apache What version of PHP What have you done so far Did you download the binaries or the source? | |
Re: If you do not have users logging in you [I]could[/I] use cookies to store the time/date they last accessed the site for this. | |
Re: You can't, Sub-Domains are managed by the web server. Speak to your host for information on how to set one up. | |
I have got a slight problem with the code below, I am getting entries into the Database with null values, which as far as I can see should not be possible I have both Client-side JS to validate the fields are not empty and PHP to do the same, Just … | |
Re: Is the included file just basic PHP, or does it have classes/functions in it, if the file uses functions you may need to register the variable as a global variable within each function you want to use it in. Otherwise, post up your code so we can see what you … | |
Re: The is equates to [code=php] if ($total is greater than 7) { something... } else { another thing } [/code] So when total=8 it will select the first one. | |
Re: The onload event is one which can be used in JavaScript, I am not sure exactly what you are asking although if you want to do something after the page loads, ie client side, you will need a client side language(such as JavaScript) otherwise this may be possible in PHP, … | |
Re: Not sure why you posted in PHP for this as there is no mention af anything apart from mod_rewrite s this should have been posted in the [URL="http://www.daniweb.com/forums/forum33.html"]Apache Forum[/URL] You cannot use any characters apart from alphanumerics and the special characters $ - _ . + ! * ' in … | |
Re: Please read the Community Rules, linked at the top of each page. Quoted from the 'Keep it Organized' section of the [community rules](http://www.daniweb.com/forums/faq.php?faq=daniweb_policies) >Do not post homework problems expecting a quick answer without showing any effort yourself. This especially pertains to the software development forums. For easy readability, always use … | |
Re: Can you clarify this: [quote] (e.g. john smith, NOT john or smith which is what I want.)[/quote] Do you want to look for john OR smith or are you looking for john AND smith? Also, this may help: [url]http://www.iamcal.com/publish/articles/php/search/[/url] | |
Re: Something like this would echo textboxes with the database values: [code=php] <form action="pagename.php" method="post"> <? $sql_query = mysql_query("PUT THE SELECT QUERY HERE")or die(mysql_error()); $sql_results = mysql_fetch_assoc( $sql_query )or die(mysql_error()); foreach( $sql_results as $key => $value) { echo "<input type=\"text\" value=\"$value\" name=\"$key\" /> <br />"; } ?> </form> [/code] Then to … | |
Re: I beleive what he meant was this: in your code (below with line numbers for reference) the loop is started on line 5 and ended on line 27, the <select> is started on line 12 and ended on line 24, you need to have the <select> before line 5 and … | |
Re: [QUOTE=streetrodfanati;705233] as far as "It would be better if you put your code in code tag. Easier to look through." I don't know what that means. This is how it is in the script.[/QUOTE] .... Read the rules of the forum before posting, the code tags are explained in the … | |
Re: Make a script with something like: [code=php] $table="abc"; mysql_query("TRUNCATE $table"); [/code] This removes all entries from the table and resets the auto-increment to 0. You could setup a Cron Job to run the script at set intervals. Edit: Not recommended if you are using transactions as this is not able … | |
Re: [QUOTE=tkmc;709503]Spotted the problem, instead of using the variable name i should have used the POST to get the ticket number. I replace the UPDATE with the one below and all works perfect now. [CODE=php]$updateused = "UPDATE cab_managernumbers SET cab_ticket_used = 1 where cab_eticket_number = ". $_POST["cab_eticket_number"] ."";[/CODE][/QUOTE] This may work … | |
Re: Can you post what code you have at the moment? When you say join, do you mean the LEFT JOIN, RIGHT JOIN... in SQL to get the data across multiple tables, or do you mean joining the strings from the 3 columns in PHP? | |
Re: If you are looking to change the content on the page dynamically (without reloading) then you should look into Javascript/AJAX for this. | |
Re: I have used osCommerce for any instances I need a cart on a site, it is also open source and has many, many contributions from community members to add most functions you could ever want and then a few more. However, if you dont like Zen, then you may not … | |
Re: Make sure you have the GD library installed/configured on your server to use the first example. | |
Re: You will need to take the POST value for the drop-down and use that as the E-Mail to address in the mail function, preferably, use names without an @ or domain.com and use PHP to assign an email: [code=php] switch($_POST['attn']) { case name1: $to_email = "name1@domain.com"; break; case name2: $to_email … | |
Re: You can use a While statement to do this: [code=php] while($row=mysql_fetch_array($set)) { //Processing of the returned row } [/code] This will loop through the same amount of times as rows returned and the code will be run (in this case, 3 times). | |
Re: Change the line: [code=php] echo "You are visitor " , $count ; [/code] to [code=php] echo "You are visitor " . $count ; [/code] | |
Re: This is HTML/JavaScript help you are looking for, try [url=http://www.daniweb.com/forums/forum117.html]here[/url] | |
Re: [url=http://www.daniweb.com/forums/forum4.html]VB4/5/6 Forum[/url] | |
Re: If the users have to register, that would mean that you most probably have a database, why not add an account expiration column into the table and put a date/time 1 month from the time they register. When the user logs in check this field to see if their account … | |
Re: The best way would be to obfuscate the code prior to uploading it to the server PC, by doing this there is no alterations needed to the operating system/accounts. Also, look at [url]http://www.raizlabs.com/software/phpobfuscator/[/url] since this one would probably require little change to your source code to get this working. Providing … | |
Re: This is not possible with PHP without using some other language as well, PHP is a server-side scripting language and does not control how the text is displayed, this is dealt with by the HTML/CSS/javascript. PHP can open the files and display the contents of them, but to move to … | |
Hi all Just a quick question, I have avoided the ternary operator type If statement a lot in my code, because personally I find it easier to read a statement like this: [code=php] if (empty($_POST['action'])) { $action = 'default'; } else { $action = $_POST['action']; } [/code] Rather than: [code=php] … | |
Re: You can increase the memory limit in PHP which may help with the problem, see [url]http://www.ducea.com/2008/02/14/increase-php-memory-limit/[/url] If PHP is installed on a remotely managed server, this may not be an option depending on the build options used. |
The End.