39,320 Topics
| |
Hi! I have table of records of my database. I have too many rows, so i decidet to add feature what i dont know how to call english, but mybe it's call page numbering. So i need split my table after some 10rows and its will make after table Paga … | |
How to send user detail page to my email.with full deatils <?php mysql_connect("localhost","root",""); mysql_select_db("Users"); $mysql_query =("SELECT uid,`Name`,Department,Problem,Ext_no,Ip_Add,Remark,Email FROM entryform ORDER BY entryform.uid DESC limit 1 "); $result = mysql_query($mysql_query); while($data = mysql_fetch_row($result)){ echo(" <td > <tr> <td> Complaint NO. :- $data[0]</br></br></td> <td> NAME :- $data[1]</br></br> </td> <td> DEPARTMENT :- $data[2] … | |
i was thinkg some thingklike this. i have a database image->image_id, image, image_keyword, image_name ...etc index.php- search bar <form class='form6' method='post' action='search.php'> <input type='text' name='search' class='field2'/> //search bar field <input type='submit' name='search' class='button' value='Search' /> //submit button </form> search.php <?php include("include/header.php"); $i = 0; $search_p = $_POST["search"]; $terms = explode(" … | |
Hi all. I use the following js function to dynamically create an new <tr> and <td> in my table. Then I insert an <input>. : function testName(tableID) { var table = document.getElementById(tableID); var rowCount = table.rows.length; var row = table.insertRow(rowCount); //firstname var cell1 = row.insertCell(0); var element = document.createElement("input"); element.type … | |
Hi, i doing personal page module. this is the my edit profile page code. i have error in 126.call to undefind error. this is error line. $personal->$personal=getDataInArray(); what is the proble? any body plz help me. public function executeEdit(sfWebRequest $request) { $this->frm_edit = new PersonalForm(); $personal=array(); $error=array(); //if they submitted … | |
Hey. So here is my code... config.php <?php $localhost = "localhost"; $dbuser = "root"; $dbpass = ""; $dbname = "test2"; $connect = mysql_connect($localhost, $dbuser, $dbpass); mysql_select_db("$dbname", $connect); ?> regprocess.php <?php include"config.php"; $username = $_POST['username']; $email = $_POST['email']; $password = md5($_POST['password']); $insert = 'INSERT into users(username, email, password) VALUE("'.$username.'","'.$email.'","'.$password.'")'; mysql_query($insert); ?> … | |
I'm a PHP newbie, and I need to replace my current code for linking to a stylesheet (which looks like `<link rel="stylesheet" href="/style.css" type="text/css"> `) by a PHP alternative. If it's important, the code I'm using which will link to it is [php-mobile detect](http://code.google.com/p/php-mobile-detect/). The structure I wanted to use … | |
Hi, I'm new to PHP and I want to know how to prevent SQL injection? Any php features can prevent the SQL injection? | |
hi dear experts first I should apologize you because my english is not very good I have a big problem that I hope to find someone help me here. I need to get pure text from pdf file in PHP because i should count the pdf words for my project … | |
so i have a zoom.php where i have a link. <a href='deleteimage.php?imgid={$row['image_id']}'>Delete</a> if user click on it it goes to deleteimage.php where i have a form. in form i have field where i store imagid. <form class="form" action = 'deleteimage.php' method = 'post'> <input type='submit' class='button' value='Yes'> <input type="hidden" name … | |
Hey, I have a script that sends a user an html-formatted email. Usually once per email, there is an exclamation point popping up in the middle of the email. I've read somewhere about this happening because of some limit at 1000 character limit, and it could be around that point, … | |
hey guys, any tricks that i can use to link a table row with an employee ID that comes from a db ? heres the menu code, where the link must happen, so i can call other functions like delete and modify. sorry it's french, supprimer = delete, modifier = … | |
I am trying to write a email address to a file. the user enters there email addy and submits which brings them to the following code. however im unable to figureout what im doing wrong to write to the file. any ideas? $myfile = file("data/mylist.lst"); $fh = fopen("data/mylist.lst","w"); for ($index=0; … | |
Hi all, I am creating a new login form, different from the default login, but when i try to connect to the database. it said password is not correct.. I just realised that password is encrypted. but i dont know what kind of algorithm it uses. I am using joomla … | |
Hi, I have an array with keys like this: "9.345" "16.765" "8.123" "0" "0.123" How do i sorth them, so the keys looks like this (numerically, descending order): "16.765" "9.345" "8.123" "0.123" "0" Thanks | |
If you ever go to [URL="http://www.hostip.info/"]http://www.hostip.info/[/URL], you will find a Community Geotarget IP Project. The great thing about it is that it is free to use. :) Now, this is just a snippet of code to begin working in the world of GeoIPs. There's a lot more info to be … | |
I have city and its corresponding locality. City is showing dropdwon and Locality in Dropdown-Checkbox I got code Dropdown-Checkbox, when user clicks city then its locality will show in Dropdown-Checkbox. It is showing multilist control in thepage but when I choose city it is showing multilist-box rather Dropdown-Checkbox. How I … | |
Hi, Is tere any difference between these two codes or is it just a matter of taste? Thanks var days = new Array('Sunday','Monday'); var days = Array('Sunday','Monday'); | |
so i am trying to count view that enter on zoom.php page. also if user keep of refreshing his page than dont add views and i dont want to use function. i want to store view on my database image->image_id,user_id,image,image_name,image_view | |
so i have a zoom.php where i have a link. <a href='deleteimage.php?imgid={$row['image_id']}'>Delete</a> if user click on it it goes to deleteimage.php where i have a form. in form i have field where i store imagid. <form class="form" action = 'deleteimage.php' method = 'post'> <input type='submit' class='button' value='Yes'> <input type="hidden" name … | |
$queryget = mysql_query("SELECT * FROM image WHERE user_id = '$user_id_s'"); while($row = mysql_fetch_assoc($queryget)) { $count_c = $row['image_comment']; $count_image++; $count_comment = $count_comment + $count_c; } for some reason it is not going inside the while loop and ideas? | |
Hi Experts! I have a question and will be grateful if you can help me out with some ideas. In an online hotel or ticket booking reservation system, normally a user is allocated a specific time to complete their registration / payments etc and during that time the system holds … | |
so i have two tables: image->image_id, user_id, image, etc i want to delete one row from image table where user_id = user_id_s and image_id = image_id_g $del_image = mysql_query("DELETE FROM image WHERE image_id = '$image_id_g'AND user_id='$user_id_s'"); the image_id=image_id_g AND user_id = user_id_s not working. | |
Hi, currently I want to make a date report generator but I don't know how to make it work. Anyone can share me a date picker that able to search the data in mysql? All the sales records are using CURDATE to save the sales records date. Please help me … | |
| Hi all. Am having a senior moment here. I have a htaccess file thus: Options +FollowSymlinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*([^/]*)/*$ index.php?lang=$1&top=$2&middle=$3&bottom=$4&sub=$5 [L] Which basically allows me to show http://www.mysite.com/cy/tgau/cemeg-1/ for http://www.mysite.com?lang=cy&top=tgau&middle=cemeg-1 That's all well and good. However, I'm getting real problems directing my forms to /includes/login.php This … |
I am trying to store the contents of checkboxes in a field in a mysql database and retireve them later... [code=html ] <input type="checkbox" name="days[]" class="other" value="Monday" /> <label class="left">Monday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Tuesday" /> <label class="left">Tuesday</label> <br /> <input type="checkbox" name="days[]" class="other" value="Wednesday" /> <label class="left">Wednesday</label> … | |
**PLEASE HELP!!!** I have a 2 dim array (5x5) - I want to sort random integers that are contained within the array (from smallest to largest).... When I use asort() function I get the orginal table back... Also, the bubble sort didn't work... it only sorts the rows indpendently.... Reference:/// … | |
I need to fetch content from a file that is located at a URL say "http://example.com/sample.html?user=." This file will contain data in the following format:- Item =Name|Unit=1 QTY|Market=INDORE|Price=5000|UpdatedDateTime=Jun 27 2012 8:149PM After this line a <br> tag is used. How do I store the content into database. What I actually … | |
Hi I have created a php script for writing text in a image. Its working fine. But when I include a file it doesnot generate the image. what is the problem? my code is as bello <?php header ("Content-type: image/jpeg"); $im = imagecreatefromjpeg("photo.jpg"); $backgroundColor = imagecolorallocate ($im, 255, 255, 255); … | |
Hi, Let's say I have a textarea to collect user inputs. Someone turns up and writes a html code (eg. a table of something, or a img tag with src to naked image, a div with 10000px width and height ....) instead of plain text into it. It wouldn't be … |
The End.