- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
20 Posted Topics
Right. Im trying to communicate with the expedia travel API, exchanging xml feed with them. It goes somehow like this: I send them info of the query I want, they send me the query back in xml form. Here is an example of a query I would want to send …
Hi guys. Im not really capable of programming much in javascript but if you guys can guide me a bit here, that would be great. I get this problem alot with Internet explorer, I have a file with table design, and I have expander/collapse button to show and hide the …
Weather Jesus existed or not is irrelivent to the question of God. I can start claiming now I am the son of God, and then 500 years from now, my followers would start referencing news articles and so on about my existence, this my followers would obviously use to claim …
Why the cookie thing? Why not just Form that sends post username and password. Then make variable of username and password with trimming and stripping tags for exampe: $username = strip_tags(trim($_POST['username'])); Then check if there are dangerous characters, for example make sure that only alphanumeric letters: if(!ctype_alnum($username)){ $deny_access = TRUE; …
I built a "form generator" to speed up making forms with alot of fields. The way I programmed it is that I open a page on my server with all 50 rows of input. In each row I decide what text I want beside the input field, what kind of …
Have you tried commenting out the mail function and echo out the emails instead to see if you are actually getting any results from the mysql query? Also echo "Hello World" inside the while loop to see if the code is going in there. If the query is working ok …
Dont know if this is what you are looking for, I see you have thumbnail of a calender in your question, but I programmed a small calendar one time and you can use it if you like: [CODE]function determine_next_months(&$month, &$year){ if($month == 1){ $prev_month = 12; $next_month = 2; $prev_year …
Dynamic table in what sense, do you mean rows or columns or both? For example: [CODE]<?php $db = insert your database credentials here. query = ("select mommy, daddy, sister, brother from table"); $result = $db -> query($query); $counter = $result -> num_rows; if($counter > 0){ echo "<table>"; for($i = 0; …
If above fails, try this: [CODE] function rcarriage($string){ $string = str_replace("\n","\n<br>", $string); return $string; }[/CODE]
see this page about real_escape_string() function before you publish the login page since your login form is vulnerable to sql injection. [url]http://is.php.net/manual/en/function.mysql-real-escape-string.php[/url] If you publish your login page like this a hacker can easily drop your database(if the connection has the privilage for it) and if the connection only allows …
You dont need to create a chatroom table everytime there is new chat launched. Ive never programmed a chatroom but I would guess the database would rather be two tables. 1st table for a chats with columsn for example: "id, created_by, launched, chat_title". 2nd table is all the comments with …
Keeping it simple. Add columns to the table which you store your users, columns could be for example child1, child2, child3 etc. Create another table for children with columns for example idnumber(auto increment primary), name, age, eye color, bla bla. Then when user registers, you send the information about each …
It seems you forgot session_start(); You always need to include this on the VERY TOP of your page to use sessions.
There are serious security vulnerabilities in your code, both regards to sql injection and cross side scripting attacks. for example: print "<font color=red>{$_GET['nextstep'] Here you are printing out raw data coming from user, for example javascript cookie script. $qo=$db->query("SELECT i.* FROM items i WHERE i.itmid={$_GET['wepid']}"); again working with raw data …
Right. Im styling my html forms and I have the effects on them exactly like I want. My main problem is that I dont want these effects to take effect on all forms. I have hover over effect on the text input fields. The thing is I have some forms …
Hi. I was wondering, is there any way for php to automatically check if links are valid. For example, lets say I have 10 links and I want a cronjob to check if they are valid or not, and if they are invalid I would throw a query statement to …
[QUOTE=Mi-Dia;1409226]Anyone. I basically want to make it so I have 1 template file per page, and make a function to repeat a certain bit for rows or posts ect. So I need a function where it can look at a string, find the html between the html comments then return …
Right. Im a php developer and I have never taken the time to study Javascript, and it always gives me a hard time. I have a drop down menu with 2 options. The default option is just Choose Payment. If I go to credit card, then nothing is supposed to …
Hi. For some reason the real_escape_string is not working. Here is a function that doesnt seem to work. function add_mail(){ $host = ""; $user = ""; $pass = ""; $database = ""; //this function assigns correct values to the variables to access the database. get_variables_db2($host, $user, $pass, $database); $db = …
Ok, I have been searching everywhere for solutions for charset problems I have. I have php website and backend Mysql database. In some fields I need to put in letters from the Greek alphabet. If I use a form to send info to the database and type in Greek letters, …
The End.
FreddieBambino