39,326 Topics

Member Avatar for
Member Avatar for dks1383

Hi all I have a website and I have put some links to another websites in my website , but when my users click on the links, I show the content of other websites in iframe is this Copyright violation? thanks.

Member Avatar for saiprem
0
117
Member Avatar for Slammer

Hi, my problem is in regular expression. I need to catch from html code hyperlink tag's href atribute content if this hyperlink contains search condition. here is snippet: [CODE=php]$a = "nail"; //search ctriteria between <a></a> $s =<<<EOF <a class="level2" onmouseout="this.style.background = '';" onmouseover="this.style.background ='#2c7cf4';" href="index.php?item&amp;module=1&amp;category=11" style=""> kaut kas cits </a> …

Member Avatar for Slammer
0
126
Member Avatar for nats01282

[CODE]<?php $a = '10'; if ($_POST["email"]<>'' && $_POST["val"] == "$a" ) { $ToEmail = 'myemail'; $EmailSubject = 'Site contact form '; $mailheader = "From: ".$_POST["email"]."\r\n"; $mailheader .= "Reply-To: ".$_POST["email"]."\r\n"; $mailheader .= "Content-type: text/html; charset=iso-8859-1\r\n"; $MESSAGE_BODY = "Name: ".$_POST["name"]."<br>"; $MESSAGE_BODY .= "Email: ".$_POST["email"]."<br>"; $MESSAGE_BODY .= "Comment: ".nl2br($_POST["comment"])."<br>"; mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) …

Member Avatar for Arsench
0
69
Member Avatar for gaberb

Can I call two PHP scripts from the same onBlur? In the code below the preFilladmin function creates a JavaScript error after leaving the admin_uid field [CODE] // Set this to your validation PHP script, default is "validate.php?value=" var vUrl = "/validate_assignIP.php?value="; // This is the array for error handling …

Member Avatar for kvprajapati
0
140
Member Avatar for s2xi

Hey, so I have a form and i want to break down the form into 2 sections when inserting into my database. I have made 2 tables to hold my values. this is my SQL statements. [CODE] $sql_insert1 = "INSERT INTO `agent_users` (`user_name`, `password`, `primary_email`, `secondary_email`, `join_date`, `last_accessed`, `activation_code`, `first_name`, …

Member Avatar for urtrivedi
0
133
Member Avatar for Benbo1980

Hi there, I have successfully setup a page using a tutorial (shown [url]http://www.phpeasystep.com/mysql/10.html[/url]) It's all working fine as it stands. I have now added another column to the database that can either be 1 or 0 and I would like to be able to change it on the update page …

Member Avatar for freshmem
0
1K
Member Avatar for JuliaNell

Hi guys, its nice meeting you all, forgive me i might be asking simple questions believe me im totaly new to PHP and im so lost. Help me out with this. Create an array with random number of elements and each value and each value is random itself. Display array …

Member Avatar for JuliaNell
0
78
Member Avatar for Chad Gary

I'm using the below code to create an html file using fopen and fwrite. In the html source code I trying to add carriage returns using \n, but I'm not having any luck [CODE] $filename = 'textfile.html'; $newstring = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n' $newstring .= '<html …

Member Avatar for pritaeas
0
61
Member Avatar for preetg

hi........... my update code is working correcty.... .....but i want update links in front of every record of table ... plz tell me how it is possible........... thanx for last reply..... m pretty new in php [code=php] [file name=updaterecord.php] <? $con=mysql_connect('localhost','root','root'); if (!$con) { die('Could not connect: ' . mysql_error()); …

Member Avatar for preetg
0
111
Member Avatar for RobotFX

Hi! I have a PHP script I've downloaded from somewhere (don't remember where, but the developers link is dead) and I want to modify it. Actually I want an extra page. The script has 2 files, tw.php and parse.php. In tw.php you should enter your twitter account (user+pass) and the …

Member Avatar for RobotFX
0
342
Member Avatar for veledrom

Hi, I have a folder with full of files. Instead of downloading files one by one, how can I zip or rar that folder to download? Thanks in advance

Member Avatar for samarudge
0
58
Member Avatar for ElegantElephant

I have a section in my PHP page containing this bit of code: [CODE] echo '<div style="float:left;"><h3><strong>Edit User Account</strong></h3> Date Registered: ' . $db_regdate . '<br> User Type: ' . $usertype . '<br><br> <form class="right_aligned" id="form1" name="form1" method="post" action=""> <label>First Name*</label> <input name="firstname" type="text" id="firstname" value="' . $db_firstname . '"/> …

Member Avatar for ElegantElephant
0
108
Member Avatar for muruganasm

hi. i am senthilmurugan. i am learning to php language. one error occur. i try to connect to database. [B]Can't connect to MySQL server on 'localhost' (10061)[/B]. how to correct the error . please reply the answer...

Member Avatar for alza
0
219
Member Avatar for debbier

I'm using simplexml_load_string to extract a node from an xml filen xml file. It works most of the time, but not all, and when it fails, it gives the error: "call to a member function xpath() on a non-object" I suspect it's because the $menuXML isn't fully loaded? It is …

Member Avatar for pritaeas
0
163
Member Avatar for deval198

i have two form in one page.After submitting one form1 i want to send all the variables of form1 is passed through ajax to the another page and if value is matched in database then i want to dispaly second form.please help me only for ajax coding.

Member Avatar for deval198
0
45
Member Avatar for ElegantElephant

I am currently working on a client management system for my Computing Coursework and I've come to the "Client Details" section, which allows staff and admin to view personal information about each client. I've successfully coded the query and everything else around it, I'm just a but stuck on how …

Member Avatar for ElegantElephant
0
85
Member Avatar for rajeesh_rsn

Hai, In one of my project I need to add some data into my data base and redirect the page to a different page. In this case I need to check whether the data has uploaded successfully and then redirect. For a rough sample mysql_query("INSERT INTO") [ICODE] if(data added ){ …

Member Avatar for emhmk1
0
60
Member Avatar for ElegantElephant

I am currently working on a client management system for a college project. I am planning to include a feature to allow users to upload files for a specific project. All files will be specific to one project and clients can only view files for a project that they are …

Member Avatar for rajeesh_rsn
0
74
Member Avatar for ssana

hi , please can any body help me. i am making a website so i am using the combination of mysql and php.there is a error in fetching the field from url.i have made a hypertext as C LANGUAGE and behind this url is <a href="indexblank.php?course=C LANGUAGE">C language</a> now on …

Member Avatar for ssana
0
194
Member Avatar for beanonymous

OK here is a piece of code I've been working on that actually logs you in and returns what ever Curl sees except i have no idea how to make Curl function correctly with websites that require cookie authentication correctly, can anyone help? =/

0
183
Member Avatar for ryan311

theres nothing happen everytime i click delete. here's my code admin.php [CODE]<?php $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("reservation", $con); $result = mysql_query("SELECT * FROM guest order by code asc"); mysql_close($con); <script> del=function(code){ m = confirm("Are you sure you want to delete this …

Member Avatar for ryan311
0
72
Member Avatar for whiteyoh

Hi all, My code lists items based on the logged in users id. when listed these items have an edit function. When the use clicks edit, the url holds the id for that item. My problem is that its possible to change the url to show details of something thats …

Member Avatar for whiteyoh
0
164
Member Avatar for resht

Hello guys, am developing a web application that needs a calendar that one can click and the that date is stored in the database, any help?? Thanks Resh

Member Avatar for Will Gresham
0
42
Member Avatar for MDanz

i have multiple entries with starting with the letter 'a' .. but the query below only displays one result. [CODE]<?php mysql_connect("localhost", "Master", "pword"); mysql_select_db("db"); $letter = htmlentities($_GET['search']); $user = mysql_query("SELECT DISTINCT keywords FROM Stacks WHERE keywords LIKE '$letter%' ORDER BY keywords")or die (mysql_error()); while($rowz = mysql_fetch_array($user)){ $keyword = $rowz['keywords']; $name …

Member Avatar for MDanz
0
112
Member Avatar for aryanmughal

Hello Everyone i am here to get help from you to make a php website where people can post videos which are hosted on different video hosting websites and also earn revenue from their sharing.... The website will look like [CODE]http://www.e-soft24.com/scripts/video-embed/[/CODE] And Form Will Look Like This One I Found …

Member Avatar for diafol
0
137
Member Avatar for whiteyoh

Hi All, How you can help me with something. when a user logs in and is successful, i want the value of the user "type" to be stored in a session, which is then passed to the "login successful" page where i intend to use a switch statement to determine …

Member Avatar for maba001
0
111
Member Avatar for newcountry

Hi, how could i measure a streaming time of video? (i have embeded a video to my site and i would like to measure the streaming time of video) Thanks in advance.

Member Avatar for samarudge
0
128
Member Avatar for recklesst

hello when i run this code, i get this error : Parse error: syntax error, unexpected T_PRINT in /home/a9017639/public_html/mzrt.php on line 19 [CODE=php]<html> <head> <link type="text/css" rel="stylesheet" href="xxxx.css"> <Title>xxxxxxxx</Title> </head> <body> <P> <h1 style="text-align:center;font-size:60px">xxxxxxt</h1> <BR CLEAR=ALL> <HR> <div class="tres"> <?PHP $zacc=0; if(isset($_POST['submit'])) { $animal=$_POST['animals']; } ?> <h3> Selected Animal:<? PHP …

Member Avatar for michelleradu
0
2K
Member Avatar for Stefano Mtangoo

Hi I want to make form dynamically by just passing array of stuffs. I have tried but cannot may be due to my limitation in PHP. Here is what I have so far. Please help me! [CODE=php] class MyForm{ private $formArray; //pass array to build a form in form of …

Member Avatar for Stefano Mtangoo
0
114
Member Avatar for UnderPressure

Hey all, I'm rather new to PHP but learning fast over the last several weeks, (so please pardon my ignorance) I've created SQL db, a number of php pages & scripts which interact with it, and have created an html mainpage. The main page is going to act as a …

Member Avatar for UnderPressure
0
116

The End.