39,326 Topics
| |
hey people i am designing a website in php/mysql . well it is a social network. simple one. but i didnt know how to allow people to add friends . so i found the easiest way for me is to create a separate mysql table for each member containing all … | |
<?php $to="sreedevs.arun@gmail.com"; $subject="bad boy"; $message="message"; $attachment="image.jpg"; $attachment_MIME_type="image/jpeg"; $handle=fopen ($attachment,"rb"); $data=fread ($handle, filesize($attachment)); fclose ($handle); $boundary="---Multipart_Boundary----"; $headers="\nMIME-Version: 1.0\n". "Content-Type: multipart/mixed;\n". " boundary=\"".$boundary."\""; $data=chunk_split(base64_encode($data)); $text="--".$boundary."\n"; "Content-Type:text/plain\nContent-Transfer-Encoding: 7bit\n\n". $message."\n\n--".$boundary."\n". "Content-Type:".$attachment_MIME_type.";\n name=\"". $attachment."\"\nContent-Transfer-Encoding:base64\n\n". $data."\n\n--".$boundary."--\n"; $result=@mail($to,$subject,$text,$headers); if($result) { echo "the mail was sent"; } else { echo "the mail was not sent"; } ?> output … | |
| Hey all, my first post in this brilliant website, got a lot of ideas from here. So I'm a student and currently we are learning a bit of php and right now I'm stuck. I have a database with URL adresses, there is 3 fields, id, name and adress. I … |
Hi I am trying to get this function to work but having issues [CODE] // check that policy number not entered on the DB if no policy is entered skip Mysql query function validatePolicyNumber($PolicyNumber){ //Return Session Value so user does not have to retype entry return $_SESSION['PolicyNumberAdd'] = $PolicyNumber; $Connection … | |
Hello, I am a software engineering student going into my final year in September and would like suggestions on topics for my final year project. I would like to do a project related to the web and databases. Possibly using PHP and MySQL Any suggestions will be appreciated | |
Hello frnds... i want to send mail with attachment using mail function.. Any one can u pls give me the solution. Shanti | |
example: [CODE]<img src="img.jpg" alt="" /> <a href="#" alt="" />[/CODE] i want to do someting if the string="alt" exist in the img tag and someting else if the alt exist in the href tag | |
I used this code to upload file but it remove The first word of the name of the file When the file name in Arabic [CODE]$notefile = basename( $_FILES['file']['name']) ; $target_path = "files/"; $target_path = $target_path . basename( $_FILES['file']['name']); if(move_uploaded_file($_FILES['file']['tmp_name'], $target_path)) { echo ""; } else{ echo ""; } [/CODE] … | |
Hello Everyone. I'm working on a php project. All the source files are located in a remote server and I have access to source files. I need to debug my codes from my computer. I have read many articles about remote debugging using x debug and zend. But as I … | |
I am trying to write a PHP script to connect to a database I have created in WAMP Server 2.0 but no matter what I do I keep getting the same error message: Parse error: parse error in C:\wamp\www\database.php on line 5 I have looked at this for over an … | |
Hi, I'm trying to expand an existing php-based project. I need to be able to allow users to create basic flow diagrams inside their web browser. Drag and drop environments with movement and resize abilities on a js canvas. Start blocks, information blocks (possible hyperlinks too), Decision Blocks, End Blocks, … | |
Please help me solve a problem on passing the value form javascript function to the 'hidden' form and the form will be submitted to the php code for processing the data. Here are my codes below: First i have a link which will trigger the function 'passValue()' that holds 3 … | |
i'm new in php, especially php array and i wanna learn more about array, i found this forum sound interesting to solve my problem. i have some array like this : [CODE] Array ( [0] => Array ( [0] => Printer_B //printer [1] => IDDHARMAHE //user ) [1] => Array … | |
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in C:\AppServ\www\eUTM\login\logincheck.php on line 13 here is the code: <?php //login check require_once("dbconn.php"); $con=connectdb(); $idpengguna=$_POST['idpengguna']; $katalaluan=$_POST['katalaluan']; //login PELAJAR from table pelajar $pekerja_query="SELECT * FROM pengguna where idpengguna = '$idpengguna' AND katalaluan = '$katalaluan'"; $pekerja_result=mysql_query($pekerja_query,$con); $pekerja_row=mysql_fetch_array($pekerja_result); if(!$nama_id && !$katalaluan) { $err=1; … | |
I need to know how to sort my authors into their respective categories I have a mysql table with the authors details and another with the categories this is my code to get the info from the tables (i realize I spelled category wrong in my database) [CODE]$sql = 'select … | |
Hi, I am working on a project where I have to deal with hierarchical data. The data looks like Member-1 | --------------- | | member2 member3 |---------------| | member4 member6 ---------------- | | member7 member5 I have searched a lot to find a good solution to store this data, but … | |
hey people i want to create a vedio chatting i know how to create a php/mysql chatting but i dont know how to create a vedio chatting do i need to learn another lamguage or php is okay. will i need flash?? how can i acccess the webcam from a … | |
Hey folks, I use: [CODE]<? require_once('tpl/head.tpl') ?>[/CODE] in one of my sites, but I frequently need people to share certain articles on FB, but I'd also like the relevant image for each, respective article to appear as the FB thumbnail. Is there a way I can write [CODE]<link rel="image_src" href="http://www.website.org/thumbnail.jpg" … | |
i've successfully developed a page where i can echo a `$_SESSION['SESS_MEMBER_ID']` and display the member id of a person who is logged in. however i need to display all the data of two mysql databases that are relational. $sql = "SELECT * FROM `members`.`players` WHERE `member_id` = 3 LIMIT 0, … | |
Let's say I have a huge variable called $file $file contains thousands of lines of html, css, javascript and more. But, I want to be able to find all of these link and edit them. I want to only edit the ones that don't have a domain name. Example: I … | |
I have created a login system with some validation which all works fine, however I want to be able to create a session when the user logs in and then store this session information in a table that I have allready created. The table has the following values id ip_address … | |
Hi there i need to create a fully functional website. Please suggest me a CMS that will help me do so. I mean joomla and wordpress are goo if you want to make blogs. Secondly, i would like to know how to send mails through php using local server and … | |
hi every one I'm new and it really interesting what's happening here !! Well I'm a beginner in PHP , the problem is that when i use print_r($message) or echo in the same page where I call header I got this message [QUOTE] Warning: Cannot modify header information - headers … | |
Hi all, I want to validate username and password in the [B]same page where login form exists[/B]. I have this coding and if username and password not matches it redirects to "try_again.php" page. Instead of that i want to show the validation ( "Invalid username or password") in the same … | |
Hello, I have an If statement that i want to use to determine whether the variableis a integer or not. The example below does not work but illustrates what i would like to be able to do: [CODE]If($x/4==[COLOR="Red"]interger[/COLOR]) {echo ("this is a integer");} else {echo ("This is not a integer");} … | |
hi all, i need to export highchart to pdf format using server side code(asp.net/c#). i dont want to use highchart controls in-built export functionalilty. also i want to export multiple highchart to pdf in sigle click. if anyone knows plz help me.......... thaks in advance. | |
can anybody help me to make , for example : i check crawl spider my webpage part one through the check metatag website but the results after checked from webpage part two | |
Hai I have a webpage in facebook, to generate login button to my site i need apps id, how to get apps id from web page. Is it necessary to go through the application developers to get apps id? Thanks in advance | |
Is it possible to create grid view in php?Or any thing equivalent to that?What i actually want is to query the database(mySQL) and print the result in a table form on the web page. and when i click any column i want to redirect to another page Any help would … |
The End.