39,323 Topics
| |
Is it possible to insert multiple values from text into multiple columns seprated by comma.for example i have a table products in which columns are product_name,product_description,lisencekey1, lisencekey2 ,..................and with entering the multiple lisencekeys(only) seprated by comma should be inserted in this fields. | |
On a new site I'm making, sessions are not working. They were working previously, and stopped without a single change of the code. Once a login goes through the verification, it runs: [CODE]$_SESSION['uid'] = getIdFromEmail($email);[/CODE] getIdFromEmail is a function I built to get the user's ID from their email address. … | |
can anybody tell me what format of date 1311048886 is? how we insert and select in database. | |
Please someone should help me before I faint. I have been working with this login script and am getting this error on a server: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/utimate/public_html/PhpPractice1/index.php on line 32. When I test it with wampserver, I will get this … | |
hello guys im new here so please be kind with me, please be patience cause Im new in PHP. now here's my problem I really miss-up my code. I want to create a form with 4 dropdownlist (diagnosis, cause, medicine, and treatment) this drop-downs are dynamic taking there items from … | |
I've simplified it quite a bit but it's still not working. PHP: [CODE] <?php $a = array('data' => 'Hello'); echo json_encode($a); ?> [/CODE] Here's the JQuery Code: [CODE] function getCityAndState(data, location) { var jsonString = {"zipCode": data}; var outR = outputResults alert("JSON String:" + jsonString.zipCode); if (location === "living") { … | |
Hey everyone, I recently make a simple test site on my local server to login as an admin and redirect to an admin based page as well as to log in as a user for the regular user page..When I made the test site..it seems to work fine but when … | |
I have this example php string: [CODE]$string = "@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no ";[/CODE] now $string idented just to easy view: [CODE]@[item_1][door] @[mozart][grass] = yes @[mozart][green] = no @[mozart][human] @[blue][movie]=yes @[item_1][beat] = yes @[item_1][music] = no[/CODE] I want to know … | |
hey guys i have an array in php and it contains some records twice, trice or so. I only want to list those records once while fetching array elements. eg. "entry 1" comes five times in the array then i want to display it only once and then next element. … | |
I am having trouble displaying Hungarian letters that are read from a database. [URL="http://otletbarkacsbolt.hu/test.php"]Here[/URL] is the output and here is the code [CODE] <?php mySQL_connect("localhost","[SNIPPED]","[SNIPPED]") or die (mysql_error()); // connect to mySQL echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("otlethu1_aru") or die (mysql_error()); //connect to otlerhu1_faaru database echo ("Connected … | |
Problemo: My PHP Script (it's just a snippet) is not picking up my JavaScript code. It doesn't even see the zip code field. It says it doesn't exist: [CODE] <?php $zipCode = $_GET[zipCode]; //echo "data:".$zipCode; $json = "{data:.$zipCode}"; echo $json; //echo json_encode(array("data"=>$zipCode)); //print ("Zip Code:".$zipCode); ?> [/CODE] I'm passing it … | |
I recently added a shout box to my page and I am interesting in adding emoticons. I have searched around and found no standalone emoticon script, at least none that I could get to work. I would appreciate any suggestions on how to add emoticons to my shout box script. … | |
i can not get mail from forgot_password.php why? I use a free hosting. [CODE] <?php // Require the configuration before any PHP code as the configuration controls error reporting: require ('./includes/config.inc.php'); // The config file also starts the session. // Include the header file: $page_title = 'Forgot Your Password?'; include … | |
Help ME Please everybody. I'm using Cakephp to make an online application system.My problem now is that I try to print a pdf using TCPDF based on a view.. I use the code $this->writeHTML($this->render('print') ) in my print controller.. But the problem is that I have this undefined index : … | |
I have a section of code that takes a form, with numerous drop down boxes, and runs the results through a mysql database for rows that have the exact wording in them. So say in the drop down box you have three options, No Preference, Fun, Not Fun. Currently my … | |
Hi, I have created a blog and having a problem in managing the blogs where the user can delete their blogs. I want that if a person logs in, he or she should be able to see only their blogs. For this I am have made the blog table in … | |
When I run my website I have random bits of php showing, and the background doesn't appear. Here is what bit is showing [CODE] "); } ?> [/CODE] and here is my code [CODE] <!DOCTYPE html> <head> <title>Website Name</title> <meta http-equiv="Content-Type" content="text/html; charSet=UTF-8"> <link rel="stylesheet" href="styles.css" media="screen" /> </head> <body> … | |
I have an issue reading from a database. here is the php code after I have connected to the database [CODE] echo ("Connected to MySQL"); echo ("<hr /><br />"); mysql_select_db("test"); echo ("Connected to database"); echo ("<hr /><br />"); $sql = mysql_query ("SELECT * FROM 'Product'"); while ($row = mysql_fetch_array($sql)){ echo … | |
hi guys i am working on a site where people can add a button to add a search listing to their favorite item using cookie in php. then they can get this list of cookies to email to their friend, now is there a way to do this? I mean … | |
I am currently using a script to run RSS feeds and dump all data into a MySQL. Every time I run it, it creates a duplicate entry into a database. Is there any way, I can just program a script to only get new feeds? I have some feeds subscribed … | |
As the title says... When I initially go onto the log in form i created, the password field appears to have 5 characters in even though i have not typed anything into it? It's not a major problem as everything works fine however i would like to get rid of … | |
Due to the compability between PHP and MYSQL I am hoping someone has a solution to my problem :( I wish to reset the auto increment field and get them "redone" as such. Problem being: When I delete a row it leaves an incorrect auto increment, as a total as … | |
Hello I need help with Programming system protection Bcod license for a particular script The method used: [url]http://www.daniweb.com/web-development/php/threads/278022[/url] But it did not work at all and there are mistakes I want to help in the patch or in the creation of the license code, for example, in this way [CODE] … | |
I want to print only year of date store in table example if 2001-12-29 stored in db table so print only number. [CODE]<?php include_once("connect.php"); if($search=mysql_query("SELECT year( Date_Of_Admission ) FROM student_enroll where Seat_Number='$_POST[seat]'")) { //echo "<br/>"; echo "<table border='1'> <tr> <th>Seat Number</th> <th>Batch</th> </tr>"; while($row=mysql_fetch_array($search)) { echo "<tr>"; echo "<tr>"; echo … | |
hi, i looking for a WYSIWYG HTML that work in the browser. I have found this [url]http://phphtmledit.com/[/url] that work like i need but i looking for a alternative that cost less or opensource any one know something like this? thanks for your help :) | |
hi, i have two databases and each one have diferent fields names and tables and i want a creat a map for each field and each table and export to a database to the other i have tested the mysql migration but i canĀ“t choose a diferent table in the … | |
Hi. I need to retrieve and list out the records from 'expenses' according to the date (eg. January 2011). I used substring to get the month (01 for January, 02 for February, etc.) and year. My date format is DD/MM/YYYY. I've tried echoing out $sql2 and the values obtained are … | |
Hi everyone. I am currently working on a project and I am new to php xmlrpc and openerp. I came across sample codes but I cannot figure out the method being called nor is it documented in the OpenERP xmlrpc definitions. The link for the sample code is : [URL="http://doc.openerp.com/v5.0/developer/6_22_XML-RPC_web_services/index.html"]http://doc.openerp.com/v5.0/developer/6_22_XML-RPC_web_services/index.html[/URL] … | |
I Got A Problem Here And Seem I Got Some Fix For The Code The Problem Here [url]http://www.daniweb.com/web-development/php/threads/403345[/url] But I Need To Know Something This Code Work Ok [CODE]<? if(isset($_SESSION['username'])) { $query = ("SELECT * FROM users WHERE password='$_SESSION[password]'"); $result = mysql_query($query); while($row = mysql_fetch_array($result)) { echo "Welcome<br/>"; echo "Your … | |
Guys i'm already familiar with PHP.But now i'm hoping to learn .net for web developing.Please tell me what is the best from both and what are the differences? |
The End.