708 Posted Topics
Re: can you use php at all? i can make a script for this in a few hours in php but i am still trying to think of a way to do this in javascript. | |
Within the last 2 months or so I started to use the Opera Browser, but sometime last week I wasn't able to post a reply anymore. I click the button to submit my relpy to a thread and nothing would happen. Also at school we use a restricted version of … | |
Re: just download a forum script and install it. its not that hard. | |
Re: this might help, i never could test it. [code] <?php function ShowMyFiles() { // vars global configuration global $dbConn, $theme_path; // vars messages global $msg; // vars template global $error_msg, $status, $files, $owner, $test, $paginated; if ($err) { $error_msg = 'Custom error message'; } if(!isset($_GET['page'])){ $page = 1; } else … | |
Re: i guess i didn't read well enough but what exactly are you doing with this newsletter. are you emailing this to people, is it going on the website somewhere to be viewed. | |
Re: put the results from a query from table A into an array and get the total number of results using to count() function. take that number and subtract 1 from it. put that number here: ex. $array = $array[$number]; then use that variable in table B's query | |
Re: what i like to do is put some ajax on the main page of my website so that the php code will execute every time someone accesses your page and do the garbage collection you need. i don't know if this would work for you but i works quite well … | |
Re: you have your php code set up wrong. i tried putting to problem into words but couldn't. you have use the while statement incorrectly. i will provide the code to display the images right in alittle while. i can't right now because of my location. someone else might have a … | |
Hello everyone, I got really bored yesterday and made a php chat program during 2nd and 6th hour at school. Its very basic and I wanted to know what features should be added. This was made to talk to friends during school so I don't want to make it really … ![]() | |
![]() | Re: what do you mean change codes. do you mean they can customize your scripts and such. can you go into more detail. i can help you, i've done this before but i would like to know more. ![]() |
Re: the mysql_fetch_row returns data as a numerical array. you don't need to make it into one. if you could explain your problem in more detail, i think i can help you. | |
Re: so where exactly are you trying to connect to the godaddy mysql server from? i have had this problem before and solved it, but i guess i am not following what you said. | |
![]() | Re: i just made one for a guy using php, folders, and text files ![]() |
Re: i have a problem with images on my server where the extension will change to uppercase when uploaded. some servers will not display the image if the extension in the database and the one in the folder are not the same. also did you add the folder to the path. … | |
Re: you have to use the limit statement in the query example: $sql = 'SELECT * FROM table LIMIT 0, 10'; where 0 is the starting position, which is the beginning and 10 is the user limit you want | |
Re: i will try to configure that on my server to see if i get the same error. then if i am successful i will tell you how i did it. | |
Re: i just made a code to break up the words for you. you will need to customize it to work with you setup. i can do this for you but you need to post all of your code so i can see exactly what you are doing. | |
Re: did you put session_start(); at the beginning of the second page | |
Re: here i got it. i just wrote the code and lightly tested it. to make it fit with your program i need to now where the string thats being colored is coming from (mysql, ect.) | |
Re: what you need is a secure server ([url]https://)[/url]. it encrypts all data with a 128bit encryption key. you can go higher in encryption but it costs more. you will also need a security certificate. this can be made by a company and needs to be signed by a CA (certificate … | |
Re: try this: [code] $sql = "SELECT * FROM table1 WHERE table1.user_id = '" . $numVar . "'"; $query = mysql_query($sql); if (!$query) { echo 'Query NOT ok'; } else { echo 'Query ok'; } [/code] i think you might of had some syntax errors in your code and thats why … | |
Re: try using the right php opening tag "<?php" not "<?", this makes a big difference. some servers will not read the php code if its not properly enclosed by the right tags. i can make you a login script that will work, i'm bored. | |
Re: i think i can help you, but please explain it in more detail. what is a "fitt", maybe fitting i don't know. just please be more clear. what exactly are you trying to do or what are you even saying, "fitt", "full fitt", ???????? | |
Re: try this, it might work. [code] if( $rand_num <= $chance ) { $item_id = mysql_query("SELECT `item` FROM `creatures` WHERE id = '$id_creature'"); $foo =& creature_stats( item, $id_creature ); $item_query = mysql_query("SELECT * FROM items WHERE id = '$foo'") or ('$item_query'); $item = mysql_fetch_row($item_query); echo"You got an ".$item[0]."!"; } [/code] | |
Re: try this: [code] <?php //**************************************************************************** ////////////////////////Downloaded from www.plus2net.com ////////////////////////////////////////// /////////////////////// Visit www.plus2net.com for more such script and codes. //////// Read the readme file before using ///////////////////// //////////////////////// You can distribute this code with the link to www.plus2net.com /// ///////////////////////// Please don't remove the link to www.plus2net.com /// ////////////////////////// //***************************************************************************** ?> … | |
Re: i am trying to understand exactly what you mean. so you don't want people to go back to welcome.php after logout. is that what you are saying? | |
Re: so if i am reading correctly you want to show a questionaire, question by question based on user input and them collect these answers and display them to the user and save the information for yourself as well. am i correct? | |
Re: why don't you use a meta refresh: [code] echo '<meta http-equiv="refresh" content="2;url=relativeurl.html">'; [/code] | |
Re: its not very hard at all. what you need to store the data is a database. the email part is easy just post your form code and i can make the proper changes if you need me to. | |
Re: you have to be a little more specific. what exact do you need to do with it. | |
Re: why don't you retrieve all the data and input it into table. then edit what you have to and submit it all to the next database. i can write a test script if you want to see what i mean. just let me know | |
Re: why don't you set the string to all lower case. [code] <?php $Msg=$_POST['Msg']; $Msglower = strtolower($Msg); $arrA=array(' ' ,'-red' ,'-blue' ,'-green' ); $arrB=array('</font>','<font color=red>','<font color=blue>','<font color=green>'); $Msg_B=str_replace($arrA,$arrB,$Msglower); echo $Msg_B; ?> [/code] or you could try preg_replace | |
Re: try this: <?php $open = fopen('counter.txt', 'r'); $read = fread($open, filesize('counter.txt')); fclose($open); $count = $read + 1; $open = fopen('counter.txt', 'w'); $write = fwrite($open, $count); fclose($open); echo"<table cellspacing=0 width =4% cellpadding=0 row=1 column=".strlen($count); echo"<tr>"; for ($i = 0 ;$i < strlen($count) ; $i++) { $imgsrc = substr($read,$i ,1); //display the … | |
Re: hey, i got the script to work finally. pm me and i will give it to you. | |
Re: thats the time. hence "createdTime". thats what the php time() function looks like. | |
![]() | Re: i have had problems before where if i didn't close the connection it wouldn't work again. maybe adding "fclose($handle);" will help. ![]() |
Re: i would use a mysql database and php to do it. have mysql store the different lanuages and display them based on the url ex. website.com/index.php?lang=en where en would be english and so on. the php script will do the rest. there are various ways of doing this but i … ![]() | |
Re: javascript and php are completely different. first of all, php is server side and javascript is client side. This means that php and javascript cannot communicate with eachother easily. Its possible but only through varibles passed along by the GET function of php. DELETE.PHP [code] <?php if (isset($_GET['studentCode']) && !isset($_GET['conf'])) … | |
Re: i have a script i just made for you but i have to ask if you need me to add email validation to it. also, does it need to have input fields for the first name column? | |
Re: why do you need the .htaccess file. i don't need one and i have done the samething displaying games with an game id. it here: [url]www.vcgames.net[/url] | |
Re: a website should be able to be view in all screen resolutions. not everyone has a big monitor. some people i know still use 14 inch monitors. | |
Re: stuff concerning domains and what folder they are directed to has to deal with server configuration. there is no need to make a script to do this for you. | |
Re: i guess i am not following what you are saying. what do you mean by tabs? is it like tabs to navigate with or what? | |
Re: i am trying to understand exactly what you are trying to do. are you checking the status of other peoples servers for them and redirect to a page to show if their server is down? | |
Re: you can use php in html files as long as the server is configured for it. i have my own server and i can make any extension i want. this includes .html files [url]http://68.103.192.2:8080/show.haha[/url] | |
Re: what exactly is wrong with the text when its displayed on the page? | |
Re: check out this. [url]http://www.banditssoftball.org/test.php[/url] I'll get you the code later today The problem is in the foreach statement. You cannot use varibles created inside of it on the outside. For this use the while statement. It should work then. | |
Re: look on the other post i did, [url]http://www.daniweb.com/forums/thread90079.html[/url] it has the code you need. | |
Re: I am still trying to figure out exact what you want but i'll try. You could use javascript to insert the tags into the textarea. [code] <input type="button" value="Subscript" onclick="document.getElementById('message').value+='[sub][/sub]'"> [/code] Then use php to find and replace "[sub]" & "[/sub]" with the proper tags and then insert them into … |
The End.