39,316 Topics

Member Avatar for
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
116
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
243
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
245
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
193
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
294
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
221
Member Avatar for daniel36

How many pages of pdf can view as images by imagick.i need it in my project to view all pdf file as images.Is it possible by imagick.

Member Avatar for pritaeas
0
110
Member Avatar for mmcdonald

Hi all, I have an issue with a loop as it contains communication between my server and a remote one. If the remote server has an issue then it takes forever to complete the loop and the execution times out. What it currently is: $servers = mysql_query("SELECT * FROM server_tab;e …

Member Avatar for brandonrunyon
0
216
Member Avatar for onofej

Hello, I am using this function below to validate date, when the user enter a valid date format every is fine and it apears on my DB, but when the user enter any thing like abcde or 22107666, i expect it to give an error message as shown on the …

Member Avatar for diafol
0
89
Member Avatar for martin11ph

I have a website that runs fully on PHP. The footer is contained in footer.php. Is there a way to make the footer customizable via Wordpress?

Member Avatar for ckchaudhary
0
133
Member Avatar for ainosilva

Hello all! My problem is: I have 2 web php pages, in a online server. 1 is listing database content, the other is to "download" the 1º but in html... I'm doing this by getting the content of 1º page, in a link like http:\\mysite.com\page.php, to make the page run …

Member Avatar for ainosilva
0
589
Member Avatar for Yorkiebar14

Hello, I have a made a forum like page where a user can submit a thread and the information gets stored in a database. However, when I try to output the data it outputs it without any line breaks in it, example: The user inputs: Hello, This a paragraph It …

Member Avatar for Yorkiebar14
0
197
Member Avatar for daniel36

I need in my project to view pdf files such that no one can save the pdf file.Is it Possible.IF it is please tell me the way.

Member Avatar for brandonrunyon
0
149
Member Avatar for kkasp

I am creating the Simple Blog from PHP for absolute beginners book. I have worked through the book and my only error now occurs when I am logged in as the admin and try to Post a Blog. The errors I get are: Warning: array_push() expects parameter 1 to be …

Member Avatar for safety1g
0
393
Member Avatar for just.irwan

Hi... i think i need somebody to help me with profit calculation project. here its looks like. ![help_me](/attachments/large/3/help_me.jpg "help_me")

Member Avatar for diafol
-3
118
Member Avatar for Khav

Hi I am developing an image hosting website.I want images uploaded to go to another server , not the one where the script is hosted.For e.g i want images to be uploaded to http://i1.mysite.com instead of http://mysite.com/uploads Suppose i have this code to upload file to server <form action="http://mysite.com/upload" method="post" …

Member Avatar for Khav
0
1K
Member Avatar for prisacariualex

Hello guys or girls. I have copied from http://davidwalsh.name/backup-mysql-database-php and i have the next error: Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /home/a6704458/public_html/backup_cr.php on line 18 And this is the code: <?php include("/home/a6704458/public_html/password_protect.php"); ?> <?php include("database/database.php"); backup_tables($mysql_host,$mysql_user,$mysql_password,'*'); /* backup the db OR just a table …

Member Avatar for prisacariualex
0
183
Member Avatar for extjac

What's your recommendation for PHP MVC frameworks?? i tested Codeigniter and it seem easy to use.... I am not a full time developer, but I do have some customers with backends, etc…My intention is to migrate some of old php code to PDO but I am now wondering if I …

Member Avatar for jkon
0
194

The End.