39,402 Topics
![]() | |
I'm having a problem creating a dropdown list and populating it with information from a database. When I display the page below I get this PHP code displayed in place of the drop down menu: " \n"; while ($row = mysqli_fetch_array($result)) { $str .= '' . $row['systemName'] . ' ' … | |
Hello everyone Im new to this forum as well as new to MySQL. Ive read countless forums about using blobs and referencing. Im the type of person who learns by seeing. I kinda understand the referencing but I would like to see an example if I am doing it correctly. … | |
Im am trying to create a custom PHP code on SMF v1.1.1 My task: To get my HTML to be the same as the attchment What I am asking I am asking for anyone to help me create PHP codes to make the HTML be the same as the attchment. … | |
Hello everyone! This is my first post, been a long time reader though. First of all, it's been a while since I don't program and I'm rusty (very). The problem is: I just can't learn how to use the JOIN or UNION commands, everything I read is confusing. I'm simply … | |
hello all. i am writing a php / mysql script that does various things, but in addition to those things i need it to get the username of whoever is using the front end. any help is greatly appreciated! also i can post some code snippets if you want a … | |
[code] <? ob_start(); ?><?php //session_start(); include('ziplib.php'); //require 'database.php'; //require 'zip/gnu-lgpl.txt'; require 'zip/pclzip.lib.php'; // if($_POST['download']) // from button name="delete" { $checkbox = $_POST['checkbox']; //from name="checkbox[]" $countCheck = count($_POST['checkbox']); for($i=0;$i<$countCheck;$i++) { $del_id = $checkbox[$i]; if(isset($_GET['del_id'])) { $id = $_GET['del_id']; $query = "SELECT * FROM updatenews WHERE id = $del_id"; $result = mysqli_query('$query') … | |
I'm wondering is it possible to echo out an entire media player, such as windows media player,in a similar method to echoing out all other tags such as tables and divs? The code i want to echo out, only if certain variables dictate, is this: [CODE]<OBJECT id='mediaPlayer' width="300" height="250" classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' … ![]() | |
hello firends. I am learning php and I install wamp but now i dont know what i must do for using wamp server and how i must execute my projects? ![]() | |
Hi! Ok thats it. Bye.. no jk My names Joe Segal. I develop websites and live for the thrill of innovation and creativity. I just launched a new website called SNIP that helps any site owner publish instant surveys and feedback forms on their sites and make money in the … | |
Hi, I'm creating a simple analytics script to use on my website(s). I started of very simply by just creating a new record for every session, and updating the sessions (i.e. incrementing the number of pageloads for that session) when a new page is loaded. I also save the browser/version … | |
Since am new to php i have the following doubt. I have a combo box within a form in my home page.The combo box will display data from mysql database. When the user chooses an item, i have to pass it to an query and display the result in a … | |
My company has a IIS server which is hosting a PHP intranet application. The IIS basically authenticates the user by using Windows Integrated Authentication so once the user is logged on his/her machine he doesnt have to provide credentials again. One of the employees is using Remote Desktop to logon … | |
Hi friends, I get some error for storing into database. I given that coding.any body know pls say to me. accep.php <?php $check=$_REQUEST['submit']; mysql_connect("localhost","root",""); mysql_select_db("menus") or die(mysql_error()); $projectid=$_REQUEST['pid']; $projectname= $_REQUEST['pname']; $projectcat= $_REQUEST['pcat']; $scope=$_REQUEST['psco']; $location=$_REQUEST['plo']; $rate=$_REQUEST['prate']; $query="insert into order values('$projectid','$projectname','$projectcat','$scope','$location','$rate')"; $dbase=mysql_query($query) or die(mysql_error()); if($dbase==TRUE) { include("congrat.php"); } ?> Detail.php <body> <h3> … ![]() | |
i have an ASP web services to change byte array that given from the client and change it to a file the code is like this : [WebMethod] [CODE=asp] public string UploadFile(byte[] f, string fileName) { try { MemoryStream ms = new MemoryStream(f); String path="/images/"; String location=HttpContext.Current.Server.MapPath(path); FileStream fs = … | |
Hey guys, I need an idea on how to determine wether a user that has been logged in is a supervisor. Ive made my login.php file and my choosereview.php.I have a very slight idea on how to do it but i just cant get it right.I want to determine whether … | |
Ok here is the situatation, I have three tables set up; 'Users' 'Profile' 'Linkingtbl' The 'Users' table holds the following data; [LIST] [*]Email (PK) [*]Password [/LIST] The 'Profile' table holds the following data; [LIST] [*]ProfileID (PK) [*]Firstname [*]Lastname [*]DOB [/LIST] The 'Linkingtbl' table holds the following data; [LIST] [*]ID (PK) … | |
I want to know how will I pass this table values using a form. I have a list of products and each item belongs to a section and each section has different attributes. The attributes section are columns where the user can input a number of products he wants to … | |
Hi DaniWeb Team, I need to split the below contents by using the mobile number and email id. If the mobile number and email id found the content is splitted into some blocks. I am using the preg_match_all to check the mobile number and email id. For example : [U]The … | |
hi all, thanks in advance m new to php,ajax, i want to create a grid and ftech data into it from mysql please help me with the code | |
Dear all, i have project for invoice system. i use in this project php,mysql,html,javascript first mysql table's Products: id,name,price billing: id,products,total_price now i have create php file with tables to get all product from products db to show in invoice file javascript [CODE] <script type="text/javascript"> function toogle(element){ var c = … | |
Hi, I need a script to resize JPG, GIF, BMP, TIFF so on. [B][COLOR="Red"]NOT only[/COLOR][/B] for JPG please. I'll be happy if anyone can help me out. Thanks in advance | |
![]() | Hi all, I'm currently having an issue with an array, which when i loop through it, it returns random results, or only 1 result even though it should contain more. What i doing atm is calling some information from a database and displaying it. im outputting a hidden field with … ![]() |
Hello everyone I have a hard time making this work.. I have some data that i wish to sort by date , and i would like to sort them asc and desc using a jump menu. I know that within the jump menu i have to call 2 queries to … | |
hi all, I am having a page where we can add users. so when i add a user and click submit his details can be seen in a table.For that page should refresh, so i am using [CODE]<meta http-equiv="refresh" content="3">[/CODE] so for every 3 sec it is refreshing,so it doesnt … | |
hello....... how to do cronjob in windows. i am using wamp server. give any suggestions. ![]() | |
i have a Web services that i build in ASP i need to pass byte array parameter or stream to consume the web service? are php can convert uploaded file into byte array or stream? please help me thx | |
Hi all... I've been teaching myself PHP and MySQL for the past few weeks so I'm pretty new at it. But this question has more to do with javascript (which I have been using for some time) than it does PHP. I am letting the user enter a date into … | |
I have a problem working out how to return users data when the user logs in. It needs to work so that when any user logs in only their data is shown. This is the current table structure; I have three tables set up; 'Users' 'Profile' 'Linkingtbl' The 'Users' table … ![]() | |
Hi all, im sure this will be areally quick solution for you masters out there, Im trying to create a SELECT query but I am continually getting a parse error ? [code] $query="SELECT * FROM friends WHERE (user_id = '$_SESSION[SESS_MEMBER_ID]' AND request_id = '$profile_id') OR (request_id = '$_SESSION[SESS_MEMBER_ID]' AND user_id … ![]() | |
All the add/remove/modify/display functions are now working for my little Customer Call Tracker web app thanks to the help of a few others on this site. Currently to manipulate the data after it has been entered I have 3 separate form fields to paste/type in a work order number which … | |
How do you set database timezone for MySQL database? I tried: ALTER DATABASE SET TIME_ZONE = 'US/Eastern'; and it's not working, i get this error: #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to … | |
Hey guys, I have been looking for hours, and I can't find the correct solution or know where to even start... I got this script, and when I click on a radiobutton from the part of the website, it needs to change the reasons (other radiobuttons). Can anyone help me … | |
Hi.. I try to make a link while calling the data in php. This is the code : [CODE] while ($row = mysql_fetch_array($subject_set)) { echo <a href="example.php">$row["menu_name"]</a>; $page_set = mysql_query("SELECT * FROM pages WHERE subject_id={$row["id"]}"); if (!$page_set) { die ("Database query failed: " . mysql_error()); } while ($page= mysql_fetch_array($page_set)) { … | |
Hi all, Basically what I'm trying to do is allow users to download multiple custom wallpapers I have made at the same time if they so choose to. Is this at all possible? Thanks, Zurom | |
Hi. I don't know what is wrong with the following attachment, actually I have two drop down list on my html form, and which is one retrieving the value from MySQL table, and the second is dependent to the first one, and that one also gets its value from another … | |
i want select values in list ,then it automatically stored in database. how to do ? if anybody know say to me.... | |
Hi all! My first post in Daniweb. I'm making a invoice script with textfield to input some numbers (Belopp_1 , Belopp_2, Belopp_3 and Belopp_4) among other stuff. These numbers ar inserted ia a MySql database wthout problems. Tere are also some calculation made in the script to add the numbers … | |
Hi guys, I'm fairly new to PHP and mySQL, using a book to help me learn. I want to create a small site to help me improve my skills, but I'm a bit stuck on the database design part. I want to be able to list various public companies and … ![]() | |
Hi anybody can suggest me the way to start learning cakePHP, Online resources , Different online links , Different books available for cakePHP | |
I'm very new to php and am trying to fix code that was previously working. Initially, i was getting an undefined error and changed code from: [code] function printChapter($committee){ echo "<table width=\"99%\" border=\"0\" cellspacing=\"10\">\n"; foreach($committee as $name => $c){ $alt = $name; $names = explode(" ", $name); $fname = $names[0]; … | |
Hi, I can't seem to work around the problem. If someone could please point me in the right direction for why the login.php page reloads when I enter the correct empid and password from the database. here is my code: [CODE] <?php require_once("nocache.php"); if (isset($_POST['submit'])) { $id = $_POST["empid"]; $pword … | |
Ok so I have a login page which actually gets an employees ID and password and includes the employee id and surname+firstname in a session. Now in the following page: [code] <?php require_once("nocache.php"); session_start(); if (!$_SESSION["who"]) { header("location: logoff.php"); } else { $emp = $_SESSION["who"]; $sn=$_SESSION["surname"]; $fn=$_SESSION["firstname"]; } require_once("dbconn.php"); $sql="SELECT … | |
Hey all, I have been searching and searching no luck yet. I think what i have come up with is using apaches rewrite map, but clueless as to where to begin. Here is the situation I have. I have a url [url]http://www.somesite.com/post.php?id=13[/url] and want to turn it into a SEO … | |
I am pretty new to php, and trying to work with dates right now from a mysql table, the idea is that I want a table to update every week to show what is happening this week. The dates are stored in the mysql table in $table labled as date … | |
Hi friends I am trying to install drupal-6.16 to my local server...I am using XAMPP server on windows xp. but i am getting this error massage. [B]Warning: fopen(./sites/default/default.settings.php) [function.fopen]: failed to open stream: No such file or directory in E:\local server\xampp\htdocs\www\drupal\includes\install.inc on line 188 Warning: Cannot modify header information - … ![]() | |
I am trying to create an upload system for my website. I want it to display the size of the file as well as the percentage the file takes up of 1GB (example: 512MB would be %50 because 512 is 0.5GB). The way I chose to do this is to … | |
Hi all, I am having quite some trouble with doing a certain task in php that im sure someone would know how to do it. To start, I want to have my script create a table for every 12 keys in an array. Here is the beginning of the code: … | |
Ok, so I am creating an uploader for uploading files such as .udk or .upk as well as other basic files such as txt and html. But I have been tinkering with the code I found (i'm a noob) and I can't get it to accept those extra extensions. Here … | |
Hi All Im developing a website here's my situation. Im using one template and using template to link it to every page and using str_replace to replace parts of my site template for what is needed for each page. Any way my problem is this I have sidebar and in … |
The End.