39,323 Topics
| |
Hi, I need to develop an interface where scanned barcode information is inserted in MySQL database with using PHP. Is this possible? If so, how it actualy works? It will be done with Wired and Wireless scanners. Does it differ? Regards | |
I guys, I want to upload files to a MySQL database in PHP.... The connection is OK... but there is a problem with the document column.. If anyone can help me , please give me a working solution.. | |
Hallo, I have made a login system using sessions. It have been working fine for 3 months. The last week some problems are occuring. First let me write the code i use. There is a mysql database which contains all the data necessary. There is also a form which the … | |
The mysql database I set up used date format for the field. Consequently dates have to be entered as 0000-00-00. So when I retrieve the field name news_date from the database it will print as 2011-02-02. I would like to display it as February 2, 2011. Can someone help me … | |
Hi all am having problems with my login forms. I have written the code and has no errors, but when I run it from my browser i get "Warning: mysql_query() expects parameter 2 to be resource, null given in C:\xampp\htdocs\nicks\includes\database.php on line 269" I have a "MySQL Table with Members … | |
well I have a search feature on my site and it works great if the query returns results but if it doesn't it falls apart what do I do to make it say "no search results found" when the query comes up as empty My code is this to handle … | |
[url]http://s56.photobucket.com/albums/g194/flameingulfedpyro/?action=view¤t=slideshow.jpg[/url] In the picture I have a picture div and a text div. The picture and text are related to one another. I want it that when you click the right or left arrow the pic and text change together. I dont really care how they change, slide, fade, or … | |
Hey guys just a quick question, my AJAX is working in FF and Opera just fine, As in it repeats the function whenever the button is clicked, but in IE the first click works, but then it doesn't repeat... I've been searching around form some fixes, and found quite a … | |
ok so i know how to do this within theory but not how to code this one. i have within my page a {blah:6}. i know that if i want to call a static string i would do this [CODE] $replaced_content = str_replace("{blah}", $page_name, $page_content); [/CODE] but the problem is … | |
Xampp is telling me that apache and php are up and running properly, but viewing html pages with <?php ?> tags in the apache doc root folder is not doing anything with the php code, i can see the php code when viewing source via firefox. I've experimented with every … | |
hi all, i have one problem with facebook landing page. i created facebook landing page through static fbml app but i have one problem with like button, user must like the page before he will navigate to another page. i want to do same functionality in my landing page, [URL="http://www.facebook.com/BusinessofCinema?v=app_6009294086"]http://www.facebook.com/BusinessofCinema?v=app_6009294086[/URL], … | |
Hi, i want to upgrade php 5.1.6 to 5.3.5 server os is RHEL 5 i want to do this task without taking downtime.. | |
$sql = "UPDATE USERS SET password='changed password' WHERE login = steve"; header( 'Location: [url]http://steveworld.000space.com/prof.php[/url]' ); this is my code, im trying to allow users to change their passwords at anytime, I put in a set text and it still doesnt work, it is very agitating! | |
Hi there, please help. I have a page that creates a simple combobox with items from the first field in my mysql db. [CODE] <html> <head><title>Customer</title></head> <body> <div class="dbconnect.php"> <?php include("includes/dbconnect.php");?> </div> <?php $result = mysql_query("SELECT * FROM customers ORDER BY company"); echo"<form action='customer.php' method='POST'> <select name='company'>\n"; while ($row = … | |
Hi I have a dynamic website which is already online and it works great, but,I recently decided to add an event calendar and I have ran into some problems. The website only uses 1 page and i then use URL variables to display content or include additional files. So i … | |
Hi, I have just started to learn php.I wrote a php code to list/add/edit/delete values of a mysql table which is already created and filled.I can print existing values in the table.However,when I want to delete one of them,the code doesn't work.I get errors for switch case.If you can give … | |
right now my php script is vulnerable to anyone putting in a random member_id into the url and having it excute sucessfully how can I encrypt the id="id#" in the url, so a guest is unable to type in there own id in the posted id retrieved through the url? … | |
I have this pdf search engine script [url]http://pdfsearchmachine.com[/url] and when you type "g" it give some suggestions ,my problem is that why I am getting some ? marks in search suggestions beloa is the code [CODE] <? $search = $_GET["search"]; $replace = " "; $with = "+"; $search = str_replace($replace, … | |
Hello everyone! I'm wondering if there is a way to assign the values of a column in SQL as the key name in a multidimensional array. Here is what I have, my database looks like this: Table Name = SJCFPCB date | totalin | cdulep | icu | ----------------------------------- 2011-01-27 … | |
hi there web masters, i have a simple script in php which shows users online with their ip and browser can you please modify it to show country flag or name or both here is the code [code]<?php error_reporting(0); include("cnfg.php"); $ms=mysql_connect($host,$login,$pass) or exit; mysql_select_db($db) or exit; $res=mysql_query("Select * From `online` … | |
Hi, I made a basic PHP upload system in order to allow file uploads to my server. The only problem I run into is that I want to be able to upload .php files (and other possible files that are executed by the webserver before being sent to the client), … | |
Currently trying to update a balance column in my table using this query [CODE] UPDATE vendors SET balance = (SELECT SUM(balance) FROM vendors WHERE Code = $ud_payee) + $ud_minDue WHERE Code = $ud_payee [/CODE] When variables are translated, for testing purpose I would have the following: [CODE=mysql] UPDATE vendors SET … | |
[CODE] echo("<TABLE width='70%' border='2' cellpadding='3' ALIGN=CENTER name='test' >"); echo("<TR bgcolor='B0C4DE'>"); echo("<TH>Sr.No</TH>"); echo("<TH>Title Of Book</TH>"); echo("<TH>Author Name</TH>"); echo("<TH>Number of Copies</TH>"); echo("<TH>Borrow</TH>"); echo("</TR>"); //searching using title of book $count=0; $i=1; while ($row = mysql_fetch_assoc($query)){ echo("<TR id='$i' bgcolor='B0C4DE'>"); $sr_num=$row['b_sr_num']; echo ("<td><input name=data id=data type=text id=data readonly=readonly value=$sr_num></td>"); echo ('<td>'.$row['b_name'].'</td>'); echo ('<td>'.$row['b_author'].'</td>'); echo ('<td>'.$row['b_avail'].'</td>'); … | |
I have installed ajaxim chat SNIP in my website at SNIP I downloaded the minified version(size: 78K) The chat at bottom right corner always shows "You are currently not connected" (when mouse is moved over it). My database settings are all correct but still i'm getting this message. Also the … | |
Hi Guys, I am making a social networking site where I want to have a user's pals shown in a PHP generated table. I want to show pal thumbnails and other information below these thumbnails so that if you click on a thumbnail, it takes you to that user's profile. … | |
I am new to PHP and I am trying to create an application for a friend with a good sense of humor, the app takes quotes and randimly loads one when the page is loaded. I had no idea how to do it so I took some coading for a … | |
Hello friends,I have some problem regarding dropdown list.I have 3(Pair of two dropdown list,1st showing categories & 2nd showing subcategories of selected categories)dropdown list having same functionality.When i select a category from 1st dropdownlist,then it showing all the related subcategories of selected category. the problem is when i am selecting … | |
[CODE]<?php // Using hooks is absolutely the smartest, most bulletproof way to implement things like plugins, // custom design elements, and ads. You can add your hook calls below, and they should take the // following form: // add_action('thesis_hook_name', 'function_name'); // The function you name above will run at the … | |
Hi, I was wondering if it is possible to fetch all items in a form in one go in PHP rather than using $_POST[] or $_GET[] for each individual element in the form. I often deal with forms having more than 30-35 elements and it get really tedious (not to … | |
I need to update multiple records in a single form but am not sure how to proceed. The following is the code I am using to insert the fields into the database originally. [CODE]$case = date(ymdHis); //register into database if (!empty($p1_firstname)) mysql_query ("INSERT INTO cases VALUES ('$case','$date_booked','$p1_firstname','$p1_lastname ''$city’)"); if (!empty($p2_firstname)) … |
The End.