39,316 Topics

Member Avatar for
Member Avatar for omnia456

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 …

Member Avatar for pritaeas
0
269
Member Avatar for dalip_007

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. …

Member Avatar for dalip_007
0
121
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
470
Member Avatar for ferrari77

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 …

Member Avatar for diafol
0
320
Member Avatar for nikuki

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. …

Member Avatar for dean8710
0
190
Member Avatar for labise

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 …

Member Avatar for labise
0
331
Member Avatar for nizam27391

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 : …

Member Avatar for HITMANOF44th
0
108
Member Avatar for ptara1

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 …

Member Avatar for simplypixie
0
121
Member Avatar for BilalAKhan

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 …

Member Avatar for BilalAKhan
0
161
Member Avatar for sirlink99

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> …

Member Avatar for sirlink99
0
157
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
96
Member Avatar for dalip_007

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 …

Member Avatar for HITMANOF44th
0
267
Member Avatar for s0bigg

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 …

Member Avatar for HITMANOF44th
0
187
Member Avatar for BenzZz

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 …

Member Avatar for broj1
0
154
Member Avatar for OmniX

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 …

Member Avatar for iffy85
0
755
Member Avatar for mohamedgpaly

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] …

Member Avatar for chrishea
0
93
Member Avatar for jabeen123

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 …

Member Avatar for HITMANOF44th
0
87
Member Avatar for srdva59

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 :)

Member Avatar for pritaeas
0
134
Member Avatar for srdva59

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 …

Member Avatar for diafol
0
85
Member Avatar for atikah8890

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 …

Member Avatar for atikah8890
0
231
Member Avatar for avinash_545

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] …

Member Avatar for cereal
0
107
Member Avatar for -==Zero==-

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 …

Member Avatar for sohbet
0
271
Member Avatar for pro_learner

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?

Member Avatar for MooGeek
0
195
Member Avatar for daniel36

Is here any way to send information to two url with the same form using get of post method at one time?Please suggest me?

Member Avatar for EvolutionFallen
0
129
Member Avatar for stoopkid

I'm having some trouble collecting data between 2 different years (ie: December 2011 & January 2012). This is a timeclock system where punches are stored as: DD-MM-YYYY (31-12-2011). I want to be able to search for dates between: DD-MM-2011 through DD-MM-2012 but am coming up empty. When using the same …

Member Avatar for stoopkid
0
91
Member Avatar for Mayank23

i need help, i want to pass a value to javascript from php and it keeps giving me "null". i want to get what picture the user selected. [CODE] <?php mysql_connect('localhost','root',''); mysql_select_db("ajax"); $query="SELECT * FROM xxxx"; $result= mysql_query($query); while($row= mysql_fetch_array($result)){ $rating=$row['ID']; echo "<img src =\"" .$row['filepath']."\" /><br/><a id=".$row['ID']." value='rating' onclick='getrating();'> …

Member Avatar for stbuchok
0
191
Member Avatar for whit89

Say i wanted to search a table with multiple values separated by spaces. Say Brand Colour Dulux Red Green Blue Crown Pink Red Yellow So searching red would return Dulux Red Crown Red or searching red pink Duluz Red Crown Red Pink.

Member Avatar for whit89
0
129
Member Avatar for emorjon2

Hi all! I am developing a java-game where you are building with balls. It will connect to a server to create a huge map available for everybody playing this game.:) For this, I need a PHP-file who will append some urldata into the file data.txt, for adding a ball into …

0
118
Member Avatar for dean8710

I have a code to trim the long word for the specific length and replace it with '...' but, it has a problem, where, if user's name dont have space, its will look wierd.. heres the code: [ICODE] <? function truncateString($string, $length, $append = '...') { $length -= strlen($append); // …

Member Avatar for dean8710
0
152
Member Avatar for Stickie

Hi, I'm not familiar with the AJAX way of doing this, hence why I'm posting this. I've got this form that needs to check if the user input is already in the database, if this isn't the case it should disable the submit button and display an error depending on …

Member Avatar for fobos
0
489

The End.