39,316 Topics

Member Avatar for
Member Avatar for zhinokin

is this code what im doing is correct..? im using codeigniter framework of this oneā€¦engine use is iNNodb [code=php] db->simple_query('SET AUTOCOMMIT=0'); $lockquery = "LOCK TABLE costumer_prof WRITE"; $db->insert('costumer_prof',$valueAdded); if($db->trans_status() === FALSE) //is this ok to used trans_status without trans_start or trans_begin..? { $db->trans_rollback() return 1; } else { $db->trans_commit(); return …

Member Avatar for JRM
0
94
Member Avatar for kuteinheart

Hi ppl, In a drop down box in PHP i want a distinct value of Date from a column in mysql table. [CODE=text]W_Id FinishedDate Username 1 2010-01-25 me 2 2010-01-25 you 3 2010-01-25 she 4 2010-01-26 me 5 2010-01-26 you 6 2010-01-26 she[/CODE] In the dropdown box i want 2010-01-25 …

Member Avatar for manish.s
0
190
Member Avatar for dandixon

Hi there, does anyone know any good tuts for displaying images using php. The thing is, I have a site that i search for a part number and it displays the info, that i can do but for some reason im lost when it comes to the images. Do i …

Member Avatar for dandixon
0
276
Member Avatar for kuteinheart

hi, I have a varible which i want to pass it to an AKAX function as a parameter... HOW DO I DO IT???? Here is my code: [CODE] <?php $Username=$_GET['Username']; blah blah blah echo "<select name=WD value=' ' onChange=showDetails(this.value, '$Username')>Date</option>"; /* The onchange function is as follows*/ function showDetails(FinishedDate, Username) …

0
58
Member Avatar for sandipan.rcciit

hi frnd, i have a html form with some text fields and i have a check box that when i click on it the data form 1st text box come to the next one. its working fine when i write the text in text box. but if i use php …

0
72
Member Avatar for Stefano Mtangoo

As I said, I would like to make a PHP login /Register system that would be free for anyone. Here I have started. Since Iam not expert, then I will be adding small pieces until something emerges. I hope DW guys will help until it grows to mature. I want …

Member Avatar for vjimatjijoro
0
575
Member Avatar for muralibobby2015

hello.. hai to all. i am fetching description which is in database. that description has 5 pharas. i am desplaying in front side and calling translation function. now i am getting this error.[CODE]Warning: file_get_contents(http://ajax.googleapis.com/ajax/services/language/translate?v=1.0&q=%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BA%20woman%60s%20body%20performing%20to%20its%20utmost%20capability-%20that%60s%20what%20pregnancy%20is.%20From%20conception%20to%20delivery%2C%20the%20female%20form%20is%20tried%20and%20tested%20to%20carry%20and%20bring%20forth%20new%20life.%20The%20natural%20action%20can%20be%20quite%20exhausting%21%20If%20incorporating%20a%20pregnancy%20massage%2C%20the%20benefits%20to%20the%20expecting%20mother%20are%20incredible.%26lt%3B%2Fp%26gt%3B%3Cbr%20%2F%3E%0D%0A%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%26nbsp%3B%20%26lt%3Bp%20class%3D%26quot%3Bnormal_text%26quot%3B%26gt%3BPregnancy%20massage%20therapists%20specially%20trained%20in%20this%20area%20understand%20the%20exacting%20requirements%20of%20a%20mother%20to%20be.%20They%20are%20particularly%20skilled%20in%20the%20best%20pregnancy%20massage%20techniques.%20They%20understa in C:\wamp\www\addmultiplelanguajes-2009-08-15\k2.php on line 47[/CODE] actually this is my script. plz remember one thing what it …

Member Avatar for muralibobby2015
0
80
Member Avatar for dandixon

Right, bare with me pls, i need to query the db and return a part number and model, but the thing is these results need to link a page where they are displayed fully heres an example [url]http://www.airsprings.com/search/airsprings[/url] if u type in the bottom box W02-358 in returns 3 results …

Member Avatar for dandixon
0
75
Member Avatar for PatrickV

Does anyone have issue with PHP version 5.1.3. it is crap and causes cpanel and other php software issues, i cann't get the latest xammp becacuse of it. Does anyone know when is the next release to fix these problems is coming out?

Member Avatar for PatrickV
0
103
Member Avatar for jj.amonit

I want to query my database and get two things, store them in an array and retrieve them later. Let's say the fields are zone_id and zone_name. currently i am trying this to store them in array like this $zone_array = array('zone1index' => zone1name, 'zone2index' => zone2name, 'zone3index' => zone3name); …

Member Avatar for cwarn23
0
91
Member Avatar for the0ry

Below is a script which i use to return a random image in a specified directory. (It also sets a session variable to cache a list of images recently displayed, but that is irrelevant to my problem.) I am looking to have this script also find files in the sub-directories …

Member Avatar for the0ry
0
103
Member Avatar for takeshi

this is the full code of uploading image using php.. [CODE]<?php // Connect to database $errmsg = ""; if (! @mysql_connect("localhost","root")) { $errmsg = "Cannot connect to database"; } @mysql_select_db("records"); // First run ONLY - need to create table by uncommenting this // Or with silent @ we can let …

Member Avatar for jesy83
0
249
Member Avatar for preetg

hi......... my php code for deleting records from database is working succesfully but while deleting records from database using checkbox is that only records deleted when deleting button click on two time.... means clicking delete button twice delete the record...... plz chk my code nd tell whr is mistake?????????????? plz …

Member Avatar for JRM
0
118
Member Avatar for Alba Ra

Let's start with the problem: I am creating a XML-based CMS that has to run on the servers of French internet service provider and web host Free.fr. So I can't use SimpleXML as only a handul of [URL="http://wiki.free.fr/wiki/index.php/Fonction_php_active_free"]functions[/URL] are activated. I can only assume that it is the old [URL="http://fr.php.net/manual/en/book.xslt.php"]XSLT[/URL] …

Member Avatar for Alba Ra
0
589
Member Avatar for babydol

Hi can any1 give me some idea on how to mask the url of an entire web site.I want the same url to show nomatter where the user is on the web site

Member Avatar for fobos
0
179
Member Avatar for hmeco

Hi Lads im writhing a login system for a personal project. the login part work nice but there are some includement stuff i cannot get figured out. when a user logs in the session will start and he will be redirected to his CP. now. the link to the cp …

Member Avatar for nav33n
0
93
Member Avatar for paldss

Hi everyone, I have a site with a php login control that writes the login information (username/password/time stamp) to a text file after a successful login. I am trying to figure out how to have that text file emailed to me every week so I can keep track of who …

Member Avatar for paldss
0
53
Member Avatar for takeshi

Guys, is there anyone knows how to archive a record saved in database using php?Need to implement it in my program..tnx in advance..Godbless

Member Avatar for takeshi
0
99
Member Avatar for jacob22

Firstly, apologies if this is in the wrong place, I couldn't find an alternative topic where this would be more relevant. Feel free to move it if you can think of a better place for this thread. I've been encountering an issue with apache's mod_rewrite that I can't find a …

Member Avatar for pritaeas
0
82
Member Avatar for KimAnderson

You want to only get the first 5 items from an array, but if there only exists less than 5 items in the array, you still want to get them all. The result would be an array variable containing at most 5 items. Is there a single PHP function that …

Member Avatar for pritaeas
0
44
Member Avatar for zodiacfive

How can we connect two databases to PHP at same time. Like .. retrieve data from Mysql and compare it with MSSQL data. :-/

Member Avatar for pritaeas
0
89
Member Avatar for almahmeed

Hello Everyone, I am developing a new website which shall provide a user interface of multiple languages; starting with English, Persian and Arabic (We are considering Russian and Hebrew in addition to other languages in the 2nd phase). What I have done is to store a language code with the …

Member Avatar for muralibobby2015
0
89
Member Avatar for aneeka

Good day people! May i know how to assign value to a textarea the data from a database. I tried the following codes but they didn't work. [CODE] <?php echo "<textarea name='aaa' rows='4' cols='70' value='$abc'></textarea>" ?>[/CODE] [CODE]<textarea name="question" rows="4" cols="70" value="<?php echo $question2; ?>"></textarea>[/CODE] please help me!

Member Avatar for aneeka
0
72
Member Avatar for xuexue

i have this jpgraph downloaded, now i dont have this gd library which is a pre-requisite for that jpgraph, could you help me with this.. thanks..^_^

0
69
Member Avatar for xuexue

hi guys, just wanna ask, is there a list view in php like in vb6??? i know, i can display the output using a table, however, what i want to happen is that whenever a user clicks on a row, that whole row will be selected and all the values …

Member Avatar for diafol
0
92
Member Avatar for AmieFeetandToes

Hello everyone! I'm Amie, and I'm a little new to PHP and MySQL. That being said, I am attempting to create a Login form with a username and password field. I pretty much have it down with the structure I think. I set up the MySQL database with GoDaddy. I …

0
96
Member Avatar for s7randall

First time to build a website and need a little help with my script. I am getting the emal from the sender, the subject and the description but all other Requests are lost somewhere. Please help :/ [code] <?php $to = "user@example.com"; $subject = "Contact Us"; $name = $_REQUEST['name'] ; …

Member Avatar for JRM
0
155
Member Avatar for codewalkz

I would like to ask how can I check if a sample date is earlier than another specified one. I have this: $Monday = 1-18-2010 $enroll = 12-29-2009 [CODE] $enroll = $row['enroll']; if($enroll >= $Monday){ echo "<br>$enroll is earlier than $Monday this returns TRUE ( 1 )"; }else{ echo "<br>$Monday …

Member Avatar for webbespoke
0
112
Member Avatar for kamalhilmi

Hi everyone, I am newbie with the PHP code. I am developing for a dynamic website whereas user/admin can edit the content to be displayed in the page. 1. I would like to have step by step code to do this. Let say if a link is clicked, the content …

Member Avatar for diafol
0
110
Member Avatar for zodiacfive

how can we verify data in sales force. Is there any service there to check the data of sales force.? SOAP or API is there to send values to sales force and check?

0
73

The End.