708 Posted Topics
Re: 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 … | |
Re: what? i have no idea what you are talking about. can you explain in a LOT more detail. | |
Re: you can do it with mod_rewrite. i am not very good with it, but there are quite few tutorials on it. | |
Re: 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. | |
Re: 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 … | |
![]() | Re: 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 … |
Re: 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? | |
Re: 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 … | |
Re: 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 … | |
Re: 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. | |
Re: run a print_r on the course_array variable. make sure its being formatted correctly. | |
Re: 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. | |
Re: that happens when you forget a closing bracket. you didn't end your last else statement. | |
Re: 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 … | |
Re: I used ffmpeg to do this, but I know there are other solutions out there. | |
Re: 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 … | |
Re: 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. | |
Re: 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 ) { … | |
Re: 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. | |
Re: what browser are you using? I haven't messed with the chat script in awhile but I would love to make it work better. | |
Re: 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. | |
Re: 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 … | |
Re: 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 … | |
Re: 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 … | |
Re: try this: [code] <a href="mailto:<?php echo $row_rsBday['email'];?>"><?php echo $row_rsBday['email'];?></a> [/code] | |
Re: you can send a reference to the parent class through the constructor and set it as a local var in the class. | |
Re: 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' ); … | |
Re: 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 … | |
Re: 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] | |
Re: i think that is the site trying to parse the url. not the code. | |
Re: 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] | |
Re: 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. | |
Re: 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. | |
Re: 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. | |
Re: the [icode]onchange="this.form.submit()"[/icode] goes in the select tag. | |
Re: look into ajax. it should do what you want. | |
Re: they are all possible. the specifics depend on the type of database. | |
Re: 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. ![]() | |
Re: look into a captcha system. it does a pretty good job at keeping spam out. there is not a perfect solution, but it works. | |
Re: 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. ![]() | |
Re: 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 … | |
Re: 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 … | |
Re: 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? | |
Re: 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. | |
Re: this would be a javascript question. does this relate to php at all? please give more details. | |
Re: 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. |
The End.