39,320 Topics

Member Avatar for
Member Avatar for blaaam

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 …

Member Avatar for pritaeas
0
67
Member Avatar for naru vaishnaw

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] …

Member Avatar for pritaeas
0
145
Member Avatar for hwoarang69

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(" …

Member Avatar for hwoarang69
0
318
Member Avatar for aristos32

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 …

Member Avatar for aristos32
0
289
Member Avatar for vijayram

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 …

Member Avatar for veedeoo
0
350
Member Avatar for oldezwe

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); ?> …

Member Avatar for |-|x
0
263
Member Avatar for Patiodude

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 …

Member Avatar for veedeoo
0
196
Member Avatar for devianleong

Hi, I'm new to PHP and I want to know how to prevent SQL injection? Any php features can prevent the SQL injection?

Member Avatar for veedeoo
0
231
Member Avatar for totti2007

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 …

Member Avatar for totti2007
0
208
Member Avatar for hwoarang69

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 …

Member Avatar for broj1
0
124
Member Avatar for nathanpacker

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, …

Member Avatar for pocopico
0
1K
Member Avatar for DarkMonarch

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 = …

Member Avatar for DarkMonarch
0
185
Member Avatar for azgold

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; …

Member Avatar for ryantroop
0
95
Member Avatar for leoblanc

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 …

Member Avatar for leoblanc
0
341
Member Avatar for Buppy

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

Member Avatar for diafol
0
137
Member Avatar for Wraithmanilian

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 …

Member Avatar for sammry
0
440
Member Avatar for abhi10kumar

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 …

Member Avatar for abhi10kumar
0
785
Member Avatar for veledrom

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');

Member Avatar for veledrom
0
123
Member Avatar for hwoarang69

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

Member Avatar for code739
0
256
Member Avatar for hwoarang69

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 …

Member Avatar for simplypixie
0
114
Member Avatar for hwoarang69

$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?

Member Avatar for hwoarang69
0
120
Member Avatar for cancer10in

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 …

Member Avatar for somedude3488
0
223
Member Avatar for hwoarang69

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.

Member Avatar for Szabi Zsoldos
0
78
Member Avatar for devianleong

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 …

Member Avatar for JorgeM
0
55
Member Avatar for diafol

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 …

Member Avatar for cereal
0
225
Member Avatar for verbob

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> …

Member Avatar for jckb188
0
460
Member Avatar for <M/>

**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:/// …

Member Avatar for <M/>
0
202
Member Avatar for techite

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 …

Member Avatar for diafol
0
152
Member Avatar for arctushar

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); …

Member Avatar for arctushar
0
193
Member Avatar for veledrom

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 …

Member Avatar for veledrom
0
136

The End.