39,320 Topics
| |
Hey guys im hoping someone can please help me. I'm trying to get my website to have a simple feed back from and it just won't work for me. This is the script i'm using [CODE]<?php if (isset($_REQUEST['email'])) { $email = $_POST['email'] ; $subject = $_POST['subject'] ; $message = $_POST['comment'] … | |
I've been trying to create a database-driven site, am new to this, have looked it up on Google and tried for myself, but need a bit of help. [CODE] <?php // Connects to your Database mysql_connect("localhost", "root", "PASSWORDREMOVED") or die(mysql_error()); mysql_select_db("epguides") or die(mysql_error()); $data = mysql_query("SELECT * FROM epguides) or … | |
[CODE=php] //xulydangky.php <?php session_start(); $TDangNhap=$_POST["txtDangNhap"]; $Ten=$_POST["txtTen"]; $HoLot=$_POST["txtHoLot"]; $MatKhau=$_POST["txtMatKhau"]; $MatKhauReSet=$_POST["txtMatKhauReSet"]; $TLoi=$_POST["txtTraLoi"]; $Email=$_POST["txtEmail"]; $HK=$_POST["txtHKTT"]; $NOHN=$_POST["txtNOHN"]; $Phai=$_POST["RadioGroup1"]; $Hk=$_POST["txtHKTT"]; $NOHN=$_POST["txtNOHN"]; $DT=$_POST["txtDTLL"]; $TL=$_POST["txtTraLoi"]; $Em=$_POST["txtEmail"]; $Cauhoi=$_POST["cauhoibaomat"]; if(empty($TDangNhap)) { $_SESSION["sMess"][3]="Tên đăng nhập không được bỏ trống"; $_SESSION["DangKy"]=false; } if(empty($Ten)) { $_SESSION["sMess"][4]="Tên không được bỏ trống"; $_SESSION["DangKy"]=false; } if(empty($HoLot)) { $_SESSION["sMess"][5]="Họ lót không được bỏ trống"; $_SESSION["DangKy"]=false; } … | |
Hi, I just want to find out which is better? Thanks [code] ...... echo "Database connection error"; exit; [/code] OR [code] ...... die ("Database connection error"); [/code] | |
I am working on happinessworks website. In that we can create a some question to calculate the happiness of every user or visitor. He or she can fill up the survey report and then we can send the survey report on his/her account by using the infusion soft for that … | |
I am working on happinessworks website. In that we can create a some question to calculate the happiness of every user or visitor. He or she can fill up the survey report and then we can send the survey report on his/her account by using the infusion soft for that … | |
i m new to php , i want to know how get data from multiple textboxes ,can i name text boxes as like a array, is it correct ,and how to display them i return them like this echo $_POST[txtName[0]] but it is not working , plz help me this … | |
Can anyone tell me how this works? I deleted this file (sidebar.php) from the server and it still gives this error: [code]Parse error: syntax error, unexpected T_LNUMBER in /.../.../.../.../sidebar.php on line 5[/code] | |
Hello All, I am new to PHP and the web interface that i am developing is not so attractive. It has many tables to display while reporting..I want to add some images to it. Like 'right click' , 'check boxes' and some image 'radio buttons'. As far as i know … | |
Hello Guys, Is this possible, if so what do i need to type into Google for further information or if someone can show me please. I insert into the database under table Product1, Product2 Product1 -> Make -> Nokia | Model -> N95 Product2 -> Make -> SamSung | Model … | |
I have worked with code but I found this error Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\wamp\www\ACM1\search.php on line 50 <form name="form" action="search.php" method="get"> <input type="text" name="q" /> <input type="submit" name="Submit" value="Search" /> </form> <?php // Get the search variable from URL $var = … | |
Hi, I recently discovered .htaccess, and it works great for me :) Only problem I came across was utf-8 support. I'm using .ht for password protection. And my pages is using utf-8 (I'm using letters like: ā, č, ē , etc). In "AuthName" I wrote a sentence in which uses … | |
this is my code: [code] $user = "sa"; $pass = ""; $host = "192.168.1.246"; $db ="payroll_hti"; $dbhandle = mssql_connect($host, $user, $pass) or die("Couldn't connect to SQL Server on $myServer"); [/code] i access from my computer with ip 192.168.1.100 this is my error report: Unable to connect to your database server … | |
Hi there guys, I am trying to create an RSS feed and for the life of me I can't get it to create working hyperlinks. Any help would be so massively appreciated. [CODE]<?php session_start(); $connection = mysql_connect("******", "******", "*****") or die (mysql_error()); $db = mysql_select_db("****", $connection) or die (mysql_error()); $q18 … | |
I am new to this not just ths group bt joining online forums coding related..... so hey! | |
Hello all! :) I dont know if this is the right forum..Here's part of my code: im using php to generate a wml page. It works fine. I want to populate a checkbox using data from mysql db. rand_keys() : store the ids in random order $row(): stores the ids … | |
hi Ive realised that I have some way to go before I can call myself an accomplished php developer. I want to transfer my skill set into legit object orientated design, and also to learn best practice for designing php apps for the web... to the extent that I need … | |
How do i start mysqlserver with option of --log-bin using phpmyadmin. Where do i set mysql server startup options in phpmyadmin. | |
Hello all! :) I dont know if this is the right forum..Here's part of my code: im using php to generate a wml page. It works fine. I want to populate a checkbox using data from mysql db. rand_keys() : store the ids in random order $row(): stores the ids … | |
hi i need to create .xml file by using php dynamically... i want the below formate...here [B].mp3[/B] files from url(get parameter)..... [CODE]<?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns = "http://xspf.org/ns/0/"> <trackList> <track> <location>mp3/07 - Evvariki.mp3</location> <title>MP3 Player!</title> </track> </trackList> </playlist>[/CODE] anybody help plz.. | |
Hi People I have done captcha a year or two ago, just wondering if there are any new techniques, ideas, tutorials, etc? And yes I would like to implement an Audio Captcha also. Regards, Matthew | |
I have a php user front-end and would like to validate a some fields to stop duplicates the database is oracle and the form is quite large i was wondering if it is possible with Javascript or ajax to run a select statement using php code check the values and … | |
Hey DaniWeb! You've proved to be a reliable resource before so let's see if you can come through again. I have a script which creates a dynamic image and posts values to the image that are pulled from an SQL database. For various reasons, I have to create a folder … | |
Hi, everyone! I'm new to DaniWeb and also to PHP and MySQL. I have a script, previewfile.php, that extracts files of various file types (currently .doc, .docx, .xls, .xlsx, and .pdf) from a MySQL database and is supposed to display them to the user. I'm encountering difficulties in displaying the … | |
Hey all, I am just learning PHP and have pieced this code together, but I cannot get it to work. Anyone have an idea on why? First file is the file contact page. <html> <head> <title>RT Photography-Contact Page)</title> <style> BODY{font-size: 8pt; font-family: Verdana } .button {background-color: rgb(128,128,128); color:#ffffff; font-size: 8pt;} … | |
this is my code [code=php] $query="call call_history('','$real_sdate','$real_edate','$level','$userid',@_count,'0','10')"; //Listing the result $rs = mysqli_query($mysqli,$query); $rs = mysqli_query($mysqli,"SELECT @_count"); while($row = mysqli_fetch_assoc($rs)) { print_r $row; }[/code] always i get blank result or error mysqli_fetch_assoc() expects parameter 1 to be mysqli_result i want to do it with procedural mysqli.. not with oop mysqli..!! … | |
Please help?! I don't know anything about cookies and need some friendly explanation. This is what I have manged so far. setcookie(name, $value); I can't get the rest to work. I tried to set the path. But in my browser info thingy it keeps showing the wrong path. As you … | |
Hi there, I am trying to create a "refer a friend" form for a website I am launching soon but somewhere something broke...:( It worked when I only had 5 emails fields but then I realized I would need to capture the name of the referred people as well. After … | |
I am trying to accomplish two things with the code below: 1. Make the output display using an adjustable variable for the html table. output: ex: a variable of $tr=4 would display 4 rows of images, instead of a single row of images that I need to scroll across the … | |
HI All, I am working first time on CSV files. I want to fetch record or value which are coming from database in php. I want to fetch these all value in CSV file or excel spreadsheet. Please help me . How i can do this.Its very urgent for me. … |
The End.