38,020 Topics

Member Avatar for
Member Avatar for johnjo

I am trying to update a edit profile in mysql. the first bit of code is when the submit button on forum is hit the data in my table users willl change. the secound bit code get the user info from the database it work fine you can select what …

Member Avatar for LastMitch
0
222
Member Avatar for Eggstraordinary

I'm trying to clear a value in a textbox whenever i click the clear button. But i keep on getting a syntax error expected "=" in the line document.getElementByid. Is my code wrong? <?php function clear(){ document.getElementByid('textinput').value=""; } if (isset($_POST['textinput'])){ echo $_POST['textinput']; } if (isset($_POST['clear'])){ clear(); } ?> <form action="index.php" …

Member Avatar for Eggstraordinary
0
290
Member Avatar for adishardis

Hi, I'm trying to format an array like this: `[['Apr,2012', 5],['May,2012',10],['Jun,2012',20],['Jul,2012', 13]]` from this: while ($row = mysql_fetch_assoc($result)) { $dates[] = date("M,Y", strtotime($row["Datum"])); $data[] = $row["forsta"]; } But I don't know how to combine them in the right format?! Any hints on how to accomplish this? /Adam

Member Avatar for adishardis
0
110
Member Avatar for amith_ami

hi guyz, pls help... what does this warning means??? is there any alternative for implode();? Warning: implode() [function.implode]: Invalid arguments passed in /home/tjconsul/public_html/admin/actions/act_addcandidate1.php on line 40

Member Avatar for adam.adamski.96155
0
2K
Member Avatar for hwoarang69

i spent about 1 to 2 months building a php website on my localhost. i feel like its finish and i would love to put it online for whole world to see it. on this site iam also using xampp database to keep track of user and passwords. note i …

Member Avatar for pritaeas
0
246
Member Avatar for FakeTales

Hey i have three forms on one page , i am getting them to write the data to seperate text files. If i use on form to post the colour it will write the colour to the text file but if i use the form to select which display i …

Member Avatar for neatric
0
333
Member Avatar for PriteshP23

I want to display table by default in ascendind order with dynamically changing header. Here is my code. It is displaying the rows unordered. It should be in ascending at first look and then can change by column. $order = (isset($_GET['sortCostCode']) && strcasecmp($_GET['sortCostCode'], 'desc') == 0) ? 'DESC' : 'ASC'; …

Member Avatar for PriteshP23
0
244
Member Avatar for daniel36

I need to display a large text into starting line of the text and ...............then.please help me.

Member Avatar for Bachu
0
107
Member Avatar for branding4you

Hi I have code I use to look up data from mysql, then dispaly in text boxes. For some reason ALL my data drops the words and spaces Example: if a supplier name is "DyFin (Pty) Ltd" the text box only displayes "DyFin" Example: If My phone numbers are "0860 …

Member Avatar for branding4you
0
211
Member Avatar for amith_ami

hi all, pls help me... im just a beginner in php... there is a problem with my code. when i give one term for searching it works, but when its two shows an error message like this Invalid SQL: SELECT * FROM tbl_candidate WHERE key_skills LIKE '%php%' OR key_skills LIKE …

Member Avatar for amith_ami
0
207
Member Avatar for asif49

The above pattern is supposed to be used as a workaround to avoid form resubmission, I.E If some data is entered into a form on page A, posted to page B and validated + saved on page B. Then if the page is refreshed, the browser will show an error …

Member Avatar for diafol
0
356
Member Avatar for AmieCutie

Below you will find my code, it's not it all in it's entirety, but shows what's important. I have some custom functions that are being used just to note out. What I have my code doing is searching a MySQL table and displaying all of the results based on the …

Member Avatar for diafol
0
171
Member Avatar for graizik

Hello, I found following code on the Internet: <?php class A { protected function __construct() { echo __CLASS__; } public static function getInstance() { $s= new static(); } } class B extends A { protected function __construct() { echo __CLASS__; } } class C extends B { protected function __construct() …

Member Avatar for veedeoo
0
187
Member Avatar for cussel

>hey guys, i want to find duo array 2 D with same value at least 2 > value between $data1 and $data2, and when duo array 2 D founded save in array 3D > then duo array 2 D with same value founded **delete** > from **$data1 and $data2** purpose …

Member Avatar for cussel
0
272
Member Avatar for cguan_77

hi guys, got this code from this previous thread: http://www.daniweb.com/web-deveelopment/javascript-dhtml-ajax/threads/416185/adding-rows-to-table-per-click-manipulating-name-field-thereby the code works fine but how do i modify the code so I will be able to get all the drop down data selected by the user? let's say there were 5 drop downs that were created and selected how …

Member Avatar for cguan_77
0
257
Member Avatar for GlenRogers

Hi all, this is really geting to me now, I jsut keep going round in circles and getting nowhere. I have a form with multiple radio buttons, each button represents a category of reptile. When you choose one of the radio buttons you are taken to a page for that …

Member Avatar for GlenRogers
0
160
Member Avatar for gamebits

I'm using a "simple" script that I downloaded for an image galery, since it was a free script there is no support and although the script works great I need a simple modification so people can edit the information they provided with the picture they uploaded. I manage to add …

Member Avatar for gamebits
0
759
Member Avatar for <M/>

How do I display whatever that gets submitted in a CSV File on an HTML Web Page by pulling it with php... I am kind of lost....?

Member Avatar for LastMitch
0
2K
Member Avatar for vizz

How to set user name for Google+ profile like following, **www.facebook.com/username**

Member Avatar for diafol
0
67
Member Avatar for chanchal.os

how can i pass the value which is situated in a div to php script ?

Member Avatar for diafol
0
29
Member Avatar for PriteshP23

I would like to know the best way to manage the two drop down menu on the PHP page. 1st menu : Select Type of House (House1, House2, ) 2nd menu : Select Number of Rooms (1,2 .. 12) The system should be displayed price based on selected items. Need …

Member Avatar for PriteshP23
0
287
Member Avatar for andreas.rew

Hello, could you help me please? I have the code below. There is a form at form.php and sends some information (name, email, age) at insert.php where is the code below. In insert.php there is also another form for addinional information but I want data from the first form and …

Member Avatar for pritaeas
0
137
Member Avatar for dbalas

Hi! I need to insert data in to two tables in a same database at the same time. One will be editable where i will remove stock but one will be history where all data stays intacted. Is it possible to do it?

Member Avatar for dbalas
0
137
Member Avatar for nCODE

Hello, I need to obfuscate a file that communicates with my server. This is to prevent (or make it harder for) the nullers. Is there any good FREE PHP obfuscator? Thanks!

Member Avatar for pritaeas
0
264
Member Avatar for keltik

I found this script which generates a row in a table. I additionally want it to alter the name-field of the row it generates, because the data of each newly generated row is needed to be saved into a database later. However clicking only creates a row without renaming the …

Member Avatar for cguan_77
0
205
Member Avatar for rotten69

Hey everyone, I have just uploaded my php files onto a free hosting server and tried to access the website. I got this error " mysql_fetch_array() expects a resource in parameter 1" or something like that. By the way, the files did work on my local machine. What is the …

Member Avatar for paulinetaylor85
0
189
Member Avatar for wackyal

I am having trouble trying to update my comment, well I also don't know why my table isn't displaying on my updatecomment.php page. How do you delete a comment too. If you see any other errors please feel free to fix it. Thanks in advance <!-- start dbconfig.inc.php page --> …

Member Avatar for LastMitch
0
798
Member Avatar for geneh23

Hey everyone, So I'm doing a project just for the heck of it. However, I'm stuck on an issue. I want to query the database to select the last comment in the answers table so I can display it on the main forum page under the specified topic. How do …

Member Avatar for LastMitch
0
205
Member Avatar for shhh

echo "<script type='text/javascript'>alert('. $row['working_hours'] .');</script>";

Member Avatar for LastMitch
0
72
Member Avatar for Vingklippt

**Okay, first of all, I'm quite new to programming at this level. I have managed to create a dynamic administrationpanel for updating the current menues of a restaurants homepage.** ISSUE - The more posts in the table, the longer the space between the page top and the databasetable gets. I’ve …

Member Avatar for Vingklippt
0
244

The End.