708 Posted Topics

Member Avatar for OmniX

i think you would need a server side language to accomplish what you are looking for. i really don't think javascript can change this, but you never know. i did this for my current project and its very nice. being able to change the title anywhere in a script, add …

Member Avatar for somedude3488
0
75
Member Avatar for Jhon100

what? i have no idea what you are talking about. can you explain in a LOT more detail.

Member Avatar for compdoc
0
96
Member Avatar for sikka_varun

you can do it with mod_rewrite. i am not very good with it, but there are quite few tutorials on it.

Member Avatar for somedude3488
0
82
Member Avatar for spokie

can you post the code so we can see what you did wrong? if you are wanting to limit the number of results returned from a mysql query you can use the LIMIT parameter. to remove duplilcates you can use the DISTINCT param in the query as well.

Member Avatar for sikka_varun
0
100
Member Avatar for designingamy

why are comparing the preg_match to "<50". preg_match returns true or false. it will return a matches array that you can get the count of if you are trying to make sure there are not over 50 email addresses in the field, which is probably not what you are trying …

Member Avatar for designingamy
0
85
Member Avatar for Borderline

my browser is telling me that your site has been reported as distributing harmful software. you might want to check on that. otherwise, maybe try a layout without the absolute positioning. its a lot easier and will solve a lot of small problems. i suggest posting this in the html/css …

Member Avatar for somedude3488
0
132
Member Avatar for designingamy

i use sessions all the time and never had a problem. yes, it will carry to the 4th page. can you post the code, so maybe I can see if you did something wrong?

Member Avatar for designingamy
0
84
Member Avatar for franko75

i would add more debugging features, like having it echo out a specific table or the entire database. it makes it easier to make sure information was added to the database correctly, rather than having to check a table from the command line or phpMyAdmin. It has worked well. Make …

Member Avatar for somedude3488
0
114
Member Avatar for samtwilliams

this most likely means your query failed. change: [code] $query=" SELECT * FROM contacts WHERE id='$id'"; $result=mysql_query($query); [/code] to [code] $query="SELECT * FROM contacts WHERE id='$id'"; $result=mysql_query($query) or die( 'Error: ' . mysql_error() ); [/code] you had an extra space in the query which might make it fail, but I …

Member Avatar for sikka_varun
0
186
Member Avatar for designingamy

you can't have anything output to the browser before a header call, not even a "\n" line break. i store my html in a variable and echo at the end of my script to eliminate this problem.

Member Avatar for designingamy
0
82
Member Avatar for trtcom1

run a print_r on the course_array variable. make sure its being formatted correctly.

Member Avatar for trtcom1
0
168
Member Avatar for cwarn23

one way you can execute it is by making a dynamic function using create_function(). there might be a better way though. I can't think of any others.

Member Avatar for digital-ether
0
98
Member Avatar for maxbox

that happens when you forget a closing bracket. you didn't end your last else statement.

Member Avatar for maxbox
0
88
Member Avatar for Kavitha Butchi

the reason the first one didn't work was because you have to set the variable with the title you want before trying to echo it. just put the title in the head section. at the top of the page add your title code and the echo it where i needs …

Member Avatar for Kavitha Butchi
0
209
Member Avatar for websurfer
Member Avatar for digital-ether
0
337
Member Avatar for parhs

Where I work, we have designers that don't know php and seperating html and php will make the integration of the php code and the actually design a lot faster. This is very important when the website is handled by more than one person. If its just you, than its …

Member Avatar for parhs
0
149
Member Avatar for haru-chan

in your empty strings, you have a space. why is that? or is that the error. example: [code] if($m != " "){ [/code] should be: [code] if($m != ""){ [/code] if you want to see if its empty.

Member Avatar for haru-chan
0
71
Member Avatar for Bob Arctor

Use a select query, explode the values and then loop through them. [code] $sql = "SELECT `news` FROM `cBox`"; //you probably need to add a where clause to restrict that amount of data $query = mysql_query( $sql ); $total = mysql_num_rows( $query ); if ( $total > 0 ) { …

Member Avatar for Bob Arctor
0
440
Member Avatar for VernonDozier

i made an email class. try it and make sure that you have the headers formed correctly. [url]http://www.daniweb.com/forums/thread155761.html[/url] - Post #12 then we will see if something is wrong the the server config.

Member Avatar for blocblue
0
193
Member Avatar for Shanti C

what browser are you using? I haven't messed with the chat script in awhile but I would love to make it work better.

Member Avatar for shivjamesh
0
519
Member Avatar for gtamawale

what do you mean by "effective menu bar for php"? can you specify what exactly you are looking for. I am asking this, because php doesn't really have much to do with the look and layout of a menu of a site, that is xhtml.

Member Avatar for gtamawale
0
131
Member Avatar for Frosty[tnt]

i had an idea that the way you positioned the for loops was making it repeat itself way too many times. so i reversed the setup and it worked. it was kind of a guess to be honest, but an educated one at least. loops like that can really mess …

Member Avatar for Frosty[tnt]
0
129
Member Avatar for Crued

create a parents table. when a new parent signs up add their information into that table. then add a foreign key column 'parent_id' into a children table. this way, you won't have repeated records, meaning if a parent need to change something, the application won't have to update a row …

Member Avatar for Crued
0
85
Member Avatar for marcmm

Rhyan answered this the same time as I did. His post pretty much says the same thing. you need to send the searched string in the url with each pagination link (what you are doing is called pagination, just thought I would let you know). Do NOT send your query …

Member Avatar for marcmm
0
225
Member Avatar for markaman

try this: [code] <a href="mailto:<?php echo $row_rsBday['email'];?>"><?php echo $row_rsBday['email'];?></a> [/code]

Member Avatar for markaman
0
64
Member Avatar for asciid

you can send a reference to the parent class through the constructor and set it as a local var in the class.

Member Avatar for somedude3488
0
139
Member Avatar for pedramphp

you could get the file contents and then use str_replace. [code] $file = 'values.inc.php'; $fh = fopen( $file,'r' ); $data = fread( $file,filesize( $file ) ); fclose( $fh ); //or you can use file_get_contents() $str = 'define("data","myValue");'; $with = 'define("data","newValue");'; $data = str_replace( $str,$with,$data ); $fh = fopen( $file,'w' ); …

Member Avatar for digital-ether
0
121
Member Avatar for rickya100

i really cannot see how ob_start() would have anything to do with not being able to write to a file. are there any php errors you are getting? also, you are overwriting $to_write at the end of your script, so its not allowing the js to be written to the …

Member Avatar for digital-ether
0
789
Member Avatar for scottholmes

it sends raw HTTP headers. A nice [url=http://www.google.com/search?hl=en&q=header+php&aq=f&oq=]Google Search[/url] will give you all you need. remember, php.net has almost everything. also, here is more info on headers [url]http://www.faqs.org/rfcs/rfc2616[/url]

Member Avatar for punjabivirsa3
0
104
Member Avatar for spokie
Member Avatar for cali_dotcom

have javascript send the script a comma seperated list of only the checked check boxes. then change: [code] var param="c=delete&"+ajaxfields+"sid="+Math.random(); [/code] to [code] var param = "c="+ajaxfields+"&sid="+Math.random(); [/code] then in the php, get the values into an array by using [code] explode( ',',$_POST['c'] ); [/code]

Member Avatar for somedude3488
0
140
Member Avatar for cali_dotcom

can you post your code? i have done this before, put it would be pointless to make an example that won't make any sense to you since i don't know how you are setting everything up.

Member Avatar for somedude3488
0
90
Member Avatar for cassie_sanford

before i look through it, let us know if there are errors and such. Or maybe try telling us what it is that you are trying to do.

Member Avatar for somedude3488
0
112
Member Avatar for cassie_sanford
Member Avatar for punjabivirsa3
0
90
Member Avatar for lonestar23

in the demo, you have printed the xml array. can you put [icode]<pre></pre>[/icode] tags around it so its more readable? maybe after that, i can see how the array is formatted and see where you went wrong.

Member Avatar for lonestar23
0
126
Member Avatar for BillyMako
Member Avatar for Yipyo
0
4K
Member Avatar for bluerain25
Member Avatar for amyana
Member Avatar for Sricharan
Member Avatar for Trogan

they are all possible. the specifics depend on the type of database.

Member Avatar for Trogan
0
110
Member Avatar for yavge

try using the query: [code] $query = "INSERT INTO `user` (`Mail`,`Pass`,`Name`,`LName`,`Details`) VALUES ('sdfsdsfdf','sdf','wer','m4n','asa4sd')"; [/code] and if that doesn't work... add [code] or die( 'Error: ' . mysql_error() ); [/code] to the end of the mysql_query() call and run the script again. let us know if there are any errors.

Member Avatar for Rhyan
0
87
Member Avatar for bigginge

look into a captcha system. it does a pretty good job at keeping spam out. there is not a perfect solution, but it works.

Member Avatar for digital-ether
0
128
Member Avatar for mrcniceguy

do you want the photo to be viewed in original size again? i have a resizing function. i just need to know if i need to customize it to work with your app.

Member Avatar for Rhyan
0
99
Member Avatar for talkwithtarique

i built one a few months back. look here. it still has a test script up. this one was made for people who wanted a chat but didn't have access to a database. it can be modified to do anything. i currently trying to find time to add features like …

Member Avatar for digital-ether
0
82
Member Avatar for techbongo

i think i have the code you need. view post #12, it should be by me where it gives a sample code of how to use an email class i made. this script is attached to that post as well. [url]http://www.daniweb.com/forums/thread148350.html[/url] if you have any questions on how to use …

Member Avatar for techbongo
0
2K
Member Avatar for psycho007

you are going to have to loop through the array returned from the first query and build an insert query. can you post the layout of the two tables?

Member Avatar for psycho007
0
132
Member Avatar for jackakos

preg_match is usually faster. [code] preg_match("/^[0-9]{2}-[0-9]{2}-[0-9]{4}$/",$date) [/code] should work, but its not tested.

Member Avatar for jackakos
0
198
Member Avatar for Modo
Member Avatar for kings
Re: help

this would be a javascript question. does this relate to php at all? please give more details.

Member Avatar for Atli
0
113
Member Avatar for dcparham

you could use ajax. you can also use an iframe the refreshes every 10 seconds.( i don't like this method, but it works ). you can use php to fill a js array with the values you need and display them that way.

Member Avatar for Atli
0
121

The End.