492 Posted Topics

Member Avatar for mjta18

Why are you asking how to convert txt files to PowerPoint (or any other for that point) files in a PHP forum?

Member Avatar for almostbob
0
139
Member Avatar for warren23

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. …

Member Avatar for Will Gresham
0
70
Member Avatar for smartness

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.

Member Avatar for mschroeder
0
345
Member Avatar for dongodwins

Well, without your code we don't know what you already have. Post it up and someone will be able to help.

Member Avatar for dongodwins
0
94
Member Avatar for Will Gresham

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 …

Member Avatar for MidiMagic
0
79
Member Avatar for JRiga

Store the data in a database, get the clients to refresh/check the database at set intervals..

Member Avatar for JRiga
0
117
Member Avatar for newbietech

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.

Member Avatar for Rhyan
0
97
Member Avatar for spokie

Do you notice anything wrong with line 41? [code=php] $yoursite = ‘[url]www.sitename.co.za’;[/url] [/code]

Member Avatar for spokie
0
826
Member Avatar for Modo

[url]http://www.tizag.com[/url] covers alot of the basic PHP/SQL functions as well as others

Member Avatar for bhavik_thegame
0
155
Member Avatar for moerpheus

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]

Member Avatar for martin5211
0
214
Member Avatar for BillyMako

[code=php] $fullProductId = explode("-", $value) $productId = $fullProductId[0] [/code] Should work

Member Avatar for Will Gresham
0
97
Member Avatar for psycho007

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]

Member Avatar for psycho007
0
132
Member Avatar for trashed

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 = …

Member Avatar for Will Gresham
0
372
Member Avatar for 123468743867143

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

Member Avatar for 123468743867143
0
141
Member Avatar for bigginge

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.

Member Avatar for bigginge
0
184
Member Avatar for Will Gresham

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 …

Member Avatar for Will Gresham
0
103
Member Avatar for sarithak

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.

Member Avatar for TopDogger
0
132
Member Avatar for bhavik_thegame

Look at the .htaccess file, it is using rewrites, they will all be listed there.

Member Avatar for bhavik_thegame
0
126
Member Avatar for benjamindemers

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]

Member Avatar for benjamindemers
0
169
Member Avatar for websurfer

$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 …

Member Avatar for Will Gresham
0
193
Member Avatar for justinmyoung

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.

Member Avatar for justinmyoung
0
173
Member Avatar for Narayanank

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?

Member Avatar for jbennet
0
106
Member Avatar for davewylie

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.

Member Avatar for Manuz
0
136
Member Avatar for danishbacker

You can't, Sub-Domains are managed by the web server. Speak to your host for information on how to set one up.

Member Avatar for danishbacker
0
226
Member Avatar for Will Gresham

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 …

Member Avatar for Will Gresham
0
107
Member Avatar for yasmena

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 …

Member Avatar for yasmena
0
191
Member Avatar for gandil

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.

Member Avatar for jt1
0
143
Member Avatar for Venom Rush

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, …

Member Avatar for danishbacker
0
70
Member Avatar for ashish100

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 …

Member Avatar for viksan
0
104
Member Avatar for nishant52

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 …

Member Avatar for somedude3488
0
230
Member Avatar for MDGM

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]

Member Avatar for MDGM
0
178
Member Avatar for mushbucket

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 …

Member Avatar for Will Gresham
0
138
Member Avatar for KingTheoden

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 …

Member Avatar for Will Gresham
0
129
Member Avatar for streetrodfanati

[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 …

Member Avatar for streetrodfanati
0
229
Member Avatar for OmniX

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 …

Member Avatar for OmniX
0
205
Member Avatar for tkmc

[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 …

Member Avatar for HazardTW
0
2K
Member Avatar for mgn2683

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?

Member Avatar for BMX322
0
110
Member Avatar for aformoftruth

If you are looking to change the content on the page dynamically (without reloading) then you should look into Javascript/AJAX for this.

Member Avatar for cwarn23
0
110
Member Avatar for timhysniu

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 …

Member Avatar for mexabet
0
84
Member Avatar for OmniX

Make sure you have the GD library installed/configured on your server to use the first example.

Member Avatar for OmniX
0
149
Member Avatar for krauz2

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 …

Member Avatar for krauz2
0
185
Member Avatar for RuneMan

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).

Member Avatar for RuneMan
0
97
Member Avatar for Katherine692008

Change the line: [code=php] echo "You are visitor " , $count ; [/code] to [code=php] echo "You are visitor " . $count ; [/code]

Member Avatar for Katherine692008
0
139
Member Avatar for jeffro25

This is HTML/JavaScript help you are looking for, try [url=http://www.daniweb.com/forums/forum117.html]here[/url]

Member Avatar for Will Gresham
0
55
Member Avatar for adrenaline_elz
Member Avatar for Will Gresham
0
75
Member Avatar for maydhyam

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 …

Member Avatar for maydhyam
0
97
Member Avatar for FlashCreations

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 …

Member Avatar for FlashCreations
0
249
Member Avatar for sharad.kohli

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 …

Member Avatar for sharad.kohli
0
102
Member Avatar for Will Gresham

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] …

Member Avatar for R0bb0b
0
270
Member Avatar for cwarn23

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.

Member Avatar for R0bb0b
0
123

The End.