39,402 Topics
![]() | |
Hi, all I would like to creat site with online quiz with registration features. But i couldn't find PHP script with both registration script and online quiz system. So that my need is Someone who wants to take a quiz before must register then he/she can take a quiz. if … ![]() | |
Hey guys, I'm a php newbie that's trying to learn php on the job, and my deadline is quickly approaching. I'm attempting to learn php through a book, which is working just fine. The only problem is it's somewhat of a slow process. Anyway, I'm trying to search using a … | |
Hi dear all I have 2 question to be asked 1. everything is working fine but I couldnot understand [ICODE]$page = $_GET['page'];[/ICODE] what function is performing in the script? 2. when I change limit greater then 2 its not echo any record but for limit=1 or limit=2 its working perfectly. … | |
Hi, this script wont show the result from my data base and i dont know why it might be here [CODE=php]if ($x==1) $construct .= " description LIKE '%$search_each%'"; else $construct .= " AND description LIKE '%$search_each%'";[/CODE] i tried to change the description to other to another column like location but … | |
Hello All, I am new to PHP and the requirement is, i need to design a form with multiple checkboxes with same name. I tried using arrays and the code is [code] <td> <input type="checkbox" name="eroom_status[]" value="empty" <?php if(isset($_POST['eroom_status'])) { if (in_array('empty',$POST['eroom_status']) { $check = 'checked';} } echo $check;?> > … ![]() | |
hello all! :) Well this is my code: [CODE] for ($i=0; $i<5; $i++) { $random= array_rand($ids); echo "<br> $random generated"; if ($check[$random]<>0) { $i--; echo " number generated again"; } else { $check[$random]=1; // set check to 1 to know the array number has been used } } $rnd_num[]= $ids[$random]; … | |
Hi, I am working in php a mail function in this function in message part i want to use one print button which should be mailed to and if who is getting mail want to print this page that should be print. But which code i am using for print … | |
when i use <?php echo $_SERVER['PHP_SELF']; ?> in my forms the get values disappears. How to fix that? Is there some function? | |
I'm looking for some type of online training that will prepare me to work with Vbulletin & other forum software, and websites in general. I have a CS degree, [although that was back in '84], worked as a "network technician & admin" for several years on a very large Novell … | |
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. … | |
hi i want to convert a flash file into image.when the user uploads a flash file...i want to capture it as a image and display it to the user. thanks in advance | |
what is wrong with this code: when i do a $mysql = new sqlConnection("path.xml"); i get: Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "path.xml" in /Applications/MAMP/htdocs/ebenezer/scripts/sqlconn.inc on line 11 Fatal error: Call to a member function children() on a non-object in /Applications/MAMP/htdocs/ebenezer/scripts/sqlconn.inc on line 13 the … | |
Hello everyone! I am currently going to build a simple booking website for a restaurant using PHP which will have two major functionality. One will be to book for seats and other to possibly let people order takeaways. Now that will be the front end of the system. But I … | |
Hello Guys! I get this error when I try to run one of my php page but I do not get this error in other page which are basically same. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\go\birthday.php:1) in C:\xampp\htdocs\go\auth.php on line … | |
Hello DaniWeb! I know this is my first post, but I don't want to be taken as a "n00b" or whatnot. I know my way around PHP and MySQL fairly well, so to make up for the fact that I'm only 15 and don't know [u]everything[/u] yet, I'll try and … | |
So near and yet so far. I introduced myself to session control and made a decision to only use session files (not cookies) I am submitting: session_start( ); $_SESSION['uid'] = $iduse; The session file is created and correctly reads the following where the value of $iduse is 1H: barney|s:2:"1H"; In … | |
How would i write a function to accept X number of parameters for ex if i want to write a function to insert into a db. i dont know how many fields i will be inserting into the table? | |
Hi, I am looking for a script where I can upload pictures to a folder and also to a mysql database table, saving different size versions of the original picture while maintaining Focus. What I mean is everytime I seem to upload a picture and change the size, the new … | |
I'm trying this: [CODE]$recordset = $conexao->Execute("select * from PRO where CDate(PRO_DTCAD)+PRO_DURAC BETWEEN DateAdd(\"d\", +15, NOW()");[/CODE] PRO_DTCAD is REGISTER DATA PRO_DURAC is DAYS TO EXPIRE But: [QUOTE]PHP Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft JET Database Engine<br/><b>Description:</b> Missing ), ], or Item in query expression 'CDate(PRO_DTCAD)+PRO_DURAC BETWEEN DateAdd("d", +15, … | |
hi, i have this code that suppose to return 1 -> 5 rows from mysql table. when i run it, all i get is the first row from the result. if i'm remarking the code and placeing this line i see all the results [CODE]print_r($row);[/CODE] what am i doing wrong? … | |
hi frnds.. i m struggling 4 a long time...i dont know anything regarding flash.. i m using the below code for playing audio files in my website...this is working fine...but i need to stop playing for 10 sec while buffering (starting of the song) the song.audio file should be playing … |
The End.