39,326 Topics

Member Avatar for
Member Avatar for HunainHafeez

I am working in php along with Mysql in backend, why this query is giving error : You have some problem in mysql syntax, check manual, this is that query: $Userid= $_SESSION['userid']; echo $Userid; $Dep = "select departmentName from department where userid='$Userid' "; $qry ="select registrationNo,name,fatherName,cnic,gender,discipline,department,admissionSession,email,password,address,domicile,contactNo,status,currentEmployer,designation,salaryInfo,totalExperience,lastOrganizationname,organizationAdd,organizationPhno,organizationEmail,Remarks from students where registrationNo='$RegNo' …

Member Avatar for jstfsklh211
0
248
Member Avatar for Hypalink

Hi guys, im trying to find out the best way to set a unique session variable. Normally I would use a "username", but this project does not need a login script or users table. Whats the best way to create a unique session so that I can echo out the …

Member Avatar for blocblue
0
212
Member Avatar for ronak.patel.946

I know little bit of php-mysql and web programming. For my project work, i made one login module, it contains two pages but it has some errors. I use WAMP for project, whenever i feed data and press login it does not go to profile.php page and session does not …

Member Avatar for jstfsklh211
0
260
Member Avatar for sammry

i have 2 tables as follow sales (table1) sales_id, userid(buyerid), product id, productname, orderid, status users (table2) userid, username, pass Now, I need to display the top customer who makes regular purchase on my shopping site. How can I achieve this? I tried as SELECT A.(*), B.username FROM sales A, …

Member Avatar for sammry
0
128
Member Avatar for eburlea

Good day, I've created a webpage on localhost using php. I have a local network with 3 computers at home. I can access the webpage only from one computer (http://localhost/mywebpage/). What changes should I make in phpmyadmin to be able to access the webpage from all computers? Is it possible? …

Member Avatar for AndreRet
0
638
Member Avatar for varun004

I want to create a loca site in which i want to take user photo graph from there web cam how can i do this in php please suggest me.....

Member Avatar for pritaeas
0
36
Member Avatar for lewashby

I'M trying to learn php and I use Mint Linux as my OS. I don't know if php is installed or not. I went to synaptic package manager and input php, I got back a big list of php-xyz packages and I dont' know which one to get. Any suggestions?

Member Avatar for cereal
0
380
Member Avatar for gilgil2

Hi I have a log in script that if successful starts a session. When you enter the correct info it days that you are logged in, but when you try to acces a restricted file it says that you are not logged in. If you then log in again it …

Member Avatar for gilgil2
0
741
Member Avatar for daniel36

my text is to show on webpage is- Comment ça marche Tu es bloqué par une question, ou par un exercice de mathématique, ou par un chapitre de chimie que tu n’arrives pas à comprendre ? But my website is not showing some french charachter of this type of text …

Member Avatar for DarkMonarch
0
212
Member Avatar for sarah49

hi everyone. I have just started to program in php. I tried to develop a php code to retrieve data from a form and insert into a table created in Mysql. Here is my php code. This code gets executed when the user submits the form. <html> <body> <?php $con …

Member Avatar for broj1
0
230
Member Avatar for vthakor115
Member Avatar for David2012

Hi Everyone! My question is on Pagination (as it is called). I have a php program that accesses a database and shows the result list with HTML. Well, if my result list is quite long how do i code so that only say 10 rows show per page. I know …

Member Avatar for urtrivedi
0
361
Member Avatar for vizz

How to detect end of video and redirect to another page using php for dynamic url? I have, <video autoplay> <source src=videos/poke.avi type='video/mp4; codecs="theora, vorbis, avc1.42E01E, mp4a.40"' > <p>Your browser doesn’t support video.</p> </video> I want to do this, video.onended = { // do stuff (redirect to show content) }

Member Avatar for vizz
0
123
Member Avatar for bratbo

I want to make include file with a function, which among other things creates a link to the page itself, with an querystring variable added, how can i get the name of the current php file thus avoiding to have it as a string constant that has to be changed …

Member Avatar for ishan1211
0
5K
Member Avatar for anuradha.joshi10

Hello, I have got the following array string through URL. http://www.xmeniafitnessclub.com/1024768/enquiry.php?fname=hgg&sex=female&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass&phone=363636&email=anuradha.jo1shi%40cognizant.com&feedback=%0D%0Ayuy&submit=Submit I need to seprate out following values.. I am trying this array but with no luck.. # **&facility=weightloss&facility=weightgain&facility=yoga&facility=danceclass** # HTML code for same is - <tr> <td><label>Facility *:</label> </td> <td> <input type="checkbox" name="facility" value="gym"/> Gym<br /> <input type="checkbox" name="facility" …

Member Avatar for anuradha.joshi10
0
2K
Member Avatar for shadiadiph

Hi can anyone tell me how I can write data to the main www.example.com from mobile.example.com i keep getting a http write error when i try to mkdir or a file on the main domain from the subdomain??

Member Avatar for shadiadiph
0
117
Member Avatar for garyjohnson

This is my html page, which takes in an input by the user and the searches the database for the word, also there is a function which is suppose to display the results here is the html code <?php require_once ( 'browsing.php' ); ?> <!DOCTYPE html> <html lang="en"> <head> <title>Browse</title> …

Member Avatar for iamthwee
0
244
Member Avatar for bagehot43

I have two files, slideshow2.html and getimages2.php. The first contains a variable, js_var, with the name of a directory. This will ultimately come from a database. I want to pass js_var to the php file, which creates an array (galleryarray) out of the images in the directory and sends it …

Member Avatar for bagehot43
0
246
Member Avatar for garyjohnson

I have an html form which brings up an input box, which is this <!DOCTYPE html> <html lang="en"> <head> <title>Browse</title> <meta charset="utf-8"/> <link rel="STYLESHEET" type="text/css" href="../../style/Browse.css"> </head> <body> <form> <form name="input" action="Browsing.php" method="post"> Search <input type="text" name="search" /> <input type="submit" value="Submit" /> </form> </form> </body> </html> Then I have a …

Member Avatar for broj1
0
125
Member Avatar for onofej

please could someone help me for a code to validate DOB i got this code on the web but doesnt work i want to validate dd/mm/yyyy or any other format is fine by me. if(preg_match("/dob/i",$field)) { if(!preg_match("“/^([0-9]{2})\/([0-9]{2})\/([0-9]{4})$/”",$value)) code from web { $errors[]="$value is not a valid dob please enter only …

Member Avatar for diafol
0
6K
Member Avatar for mariano.bolanos

Hi there. I'm trying to integrate with a payment gateway API, and as I'm fairly new to PHP, I'm having some trouble to proceed. Basically, I have a form that goes to a specific URL (submitting URL). From the documentation: "Request information is submitted to payment platform with HttpsClient , …

Member Avatar for blocblue
1
343
Member Avatar for Rizi004

hi every one i have a question that how i can get the facebook fan ID. e.g i have a page and 40,000 users like my page now i want to get the id of each users(40,000) one id per line. please tell me how i can do this? and …

Member Avatar for brandonrunyon
0
85
Member Avatar for mmcdonald

Okay so here it is. The code below is my player counter for a game called Minecraft. It connects to a server and brings back 2 values. 1) The number of current online players and 2) the maximum number of player slots. Then it stores these two variables in to …

Member Avatar for pritaeas
0
194
Member Avatar for ericjw316

Hey everyone i have a database for a plumbing site i am working on. They would like some way for customers to send in a ticket to there system and they need it up right now. I am building a ticketing system for them right now but i need a …

Member Avatar for dcdruck
0
191
Member Avatar for Rizi004

Hi every one any one tell me that if i post an article on my website and i want that the article don't disply after one month? In my table there is a field of date which save the date of the artcile when it is posted and one field …

Member Avatar for pritaeas
0
68
Member Avatar for opawix

if(@$_GET['action'] == "Search"){ $result = mysql_query ("SELECT * FROM students where idnum = '$_GET[mysearch]' or fname = '$_GET[mysearch]' or lname = '$_GET[mysearch]' or midin = '$_GET[mysearch]' or gender = '$_GET[mysearch]' or bdate = '$_GET[mysearch]' or course = '$_GET[mysearch]' or year = '$_GET[mysearch]' or address = '$_GET[mysearch]' or cnum ='$_GET[mysearch]'"); $rows …

Member Avatar for opawix
0
157
Member Avatar for makibao

<form id="form1" name="form1" method="post" action=" <?php include("connect.php"); require("search2.php"); $username = $_SESSION['email']; ?> "> <p> <input type="text" name="search" id="search" value=""/> <input type="submit" name="btnSearch" id="btnSearch" value="SEARCH" /> </p></form> search2.php <?php include("connect.php"); $username = $_SESSION['email']; $name=$_POST['search']; $query = mysql_query ("Select * from confirm_members where email = '$name'"); if(mysql_num_rows($query)==0) die ("User not found"); else …

Member Avatar for pritaeas
0
774
Member Avatar for vizz

How to add video or image ads before opening next page? When video is completed or image is seen for 10 seconds after that goto page clicked for. I want to add my own videos and images for advertising before going to next pages selected for displaying ads

Member Avatar for vizz
0
304
Member Avatar for duneflyingyfz

Hi All!!! im currently at a roadblock in my knowledge of using mysql and php date/time functions. the program i am trying to write, needs to incoporate the current date in the mysql query to pull the correct information to display in real-time.. currently the server is on east coast …

Member Avatar for duneflyingyfz
0
198
Member Avatar for zatix16

Hi, I have been trying this for almost one week but still cannot get my ldaps:// binding working. I can bind using same information through ldp.exe or LDAP browser but bot my php code. Weirdly, my binding works using normal ldap (without SSL). Not sure what's wrong with my code …

Member Avatar for pritaeas
0
223

The End.