39,323 Topics

Member Avatar for
Member Avatar for Venom Rush

I'm trying to think of better ways to fight spam than having a captcha that a user needs to fill in. I've considered emailing a confirmation link to the user that they need to click in order to send the message they filled out in the form, but with Google …

Member Avatar for Venom Rush
0
180
Member Avatar for newbie1234

I have s_no in my database's table. Which is increment automatically whenever new entry comes. But this is only int. I am using this as a ID of particular task. I want this in varchar. means id should be like "a45c725". How to achive this

Member Avatar for pritaeas
0
102
Member Avatar for hwoarang69

trying to user left margin 50px on this link but it no working. index.php echo "<a href=\"zoom.php?img={$row['image_id']}\"> <b id='bold2'>" . $image_short_name_db . "</b></a>"; c.css .bold2 { margin-left:50px; }

Member Avatar for blocblue
0
97
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
321
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
290
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
259
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
229
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

The End.