39,320 Topics

Member Avatar for
Member Avatar for sonash

how to retain previous value of textbox and input new value in same textbox.please help me .i am tyring to make a calculator programm in php only withh all buttons etc .

Member Avatar for sonash
0
205
Member Avatar for Goldfinch

Hi, I want to use PHP to take one image, draw another on top of it and output it as a single image. So it might for instance be that the first image would be of a duck and the next image would be of an x, so the third …

Member Avatar for pritaeas
0
79
Member Avatar for nagar.gaurav

Please let me know the detailed procedure to install Apache, MySQL, PHP and PHPmyAdmin on my system which is windows 7. or post a link where the complete installation is given. I do not need to work on XAMPP or WAMP or such kind of other softwares. you can also …

Member Avatar for diafol
0
620
Member Avatar for ashishrevar

How to write in CSV file using PHP script? Actually I was also searching for that too. It is kind of easy task with PHP. fputs(handler, content) - this function works efficiently for me. First you need to open the file in which you need to write content using fopen($CSVFileName, …

Member Avatar for leviathan185
-1
249
Member Avatar for jacob21

Hi, I am using below PHP script for insertion in mysql table from CSV file. Below code is working fine but i am trying to leave first row of CSV as it contains heading for data. need suggestions as it is reading from very first row. <?php //connect to the …

Member Avatar for leviathan185
0
2K
Member Avatar for ebizsolutions

I'm getting this error message when I go to my login page: Warning: Cannot modify header information - headers already sent by (output started at /home/a4259hos/public_html/ebookadvisor/wp-config.php:40) in /home/a4259hos/public_html/ebookadvisor/wp-includes/pluggable.php on line 881 Can someone help me with this?

Member Avatar for LastMitch
0
83
Member Avatar for asif49

try { mysql_query("INSERT xyz"); mysql_query("INSERT xyz"); mysql_query("INSERT xyz"); commit() } catch (Exception $e) { rollback() } I would like so that if any of the queries within the try { } fails, to go to the exception and rollback the transaction, and commit otherwise. What kind of things will it …

Member Avatar for LastMitch
0
917
Member Avatar for e.patricioparga

Well, I have a code that just won't run. It says it has a syntax error, but I've been looking at this code for 20 minutes and haven't found any. Could you guys plese tell me if something is wrong? // $anio holds the name of my table. $query="INSERT INTO …

Member Avatar for e.patricioparga
0
130
Member Avatar for tapuwa2002

I would like to find a method where i can find a character position in reverse.For example last "e" starting count in reverse. From example $string="Kelley"; $strposition=(strpos,'e'); it will give me position 1.

Member Avatar for adam.adamski.96155
0
222
Member Avatar for Sanchixx

I have a text file that i would like to display a part of so i use this code: <?php $page = file_get_contents('news.txt'); echo $page; ?> But in news.txt if i have this code `<?php echo"hello world!"; ?>` It will not display... when i look at the source code of …

Member Avatar for Sanchixx
0
540
Member Avatar for dancks

error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 Its valid sql I checked I just don't understand what would cause that error. I also tried different statements and …

Member Avatar for radow
0
361
Member Avatar for romiaujla

Hi everyone, Here I have a php code, and i want to understand one part of it - like what is actually going on over there. (Based on Model View Controller(MVC) format) This is my 'model/category_db.php' - file It connects to the database and has some functions that have a …

Member Avatar for urtrivedi
0
206
Member Avatar for asaidi

Hi i have an htm created by ob_start--ob_clean (query from mysql) i can have more than 1 html each one for a user these htmls are converted to pdf using html2pdf and each file is called by the name of the cleint ex:if the user name is xxxx===>he will get …

Member Avatar for urtrivedi
0
463
Member Avatar for <M/>

how do i show inputted data in an email... I can't see what people inputted... And another question is how do I show the data all styled? here is the code responsible for styling and what I want to see... but i don't get this... instead I get something else... …

Member Avatar for urtrivedi
0
92
Member Avatar for guiburi

find and delete specific line from text file ==== cart.txt (tab delimated) ---------------------- guiburi PID001 KARLSTAD Sofa 2348 2 4696 guiburi PID002 BESTA Cabinet 1656 32 52992 guiburi PID009 PAX Wordrobe 1794 2 3588 deleteitem.php ---- if(isset($_GET['pname'])) { $pname = trim($_GET['pname']); } Info -- pname is sent from a another …

Member Avatar for urtrivedi
0
256
Member Avatar for <M/>

I have a csv file and I am not sure how to set dates on it... For example, if somebody submits a form and its information shows up in the csv but has a date that shows when it was submitted... Can someone help me with this?

Member Avatar for diafol
0
191
Member Avatar for johndohmen1963

Who can help me with the following i have 5 or more rows in a table the last column is called rank one row is called points. I want automatic insert the rank like when a person has 123 points is rank 1 the second person with 120 point rank …

Member Avatar for johndohmen1963
0
142
Member Avatar for grantcharov

Okay, I am a total newbie stuck with the following task. I have one table, that looks like this: | id | name | rating | date | ------------------------------ What I am trying to do is gettin an output showing which 'name' has the best 'rating' based on months, showing …

Member Avatar for grantcharov
0
229
Member Avatar for asif49

Consider you have a website visited by millions of people. 50 people or so fill in a registeration form and both press submit at exactly the same moment. Can SQL deal with all these requests at the same time, is there any chance it will accidentally generate the same primary …

Member Avatar for LastMitch
0
102
Member Avatar for honorhim

Hi, could anyone help resolve this error message for the code below? Thanks so much. Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/web/admin/index.php on line 69 <script language=php> session_start(); session_register("myauth"); include ("../connection.php"); $user_id=$username; $pass=$pws; $checkadmin = 0; $la_checkadmin = 0; if ($user_id!="" OR $pass!="") { $query …

Member Avatar for Zagga
0
773
Member Avatar for raindrops

Hi, I am wanting to add an extra payment method to my website which uses php code. I am not quite sure how to do this web having researched. I already have a PayPal option but would like to also include another option so my future customers can select bank …

Member Avatar for diafol
0
102
Member Avatar for freakvista

So i was wondering if it is possible to make something <a class='photo' href=<?PHP 'lala.php?blu=$q&subf=$subf&img=$imagenr' ?> target='_blank'> <span><img src=<?PHP'{$handle}/{$file}'?> /></span></a> lala.php is already made with all needed, but when i'm trying to make something with this code it doesnt show up the photo. I named class photo so i can …

Member Avatar for freakvista
0
174
Member Avatar for furlanut

I need one result from 3 tables. The JOIN query fields of the first table repeat throughout the 3 tables. Is the JOIN query set out incorrectly or do I have to re-define the $row index in some way to avoid repetition of the fields. I have been using 3 …

Member Avatar for furlanut
0
179
Member Avatar for LastMitch

Hi I having issue trying to add `2` months from the `date()` function? Here is my code: <?php // current date $todayDate = date("Y-m-d"); echo "Today: ".$todayDate."<br>"; // Two months from now is Christmas! echo "strtotime($todayDate) . "+2 month")"; echo "Today is Christmas: strtotime('l dS \o\f F Y', $todayDate)"; ?> …

Member Avatar for LastMitch
0
155
Member Avatar for mmcdonald

Whats the best way to collect all the users where `server_id = X` Table: id server_id user 1 2761 adam 2 2567 tom 3 2761 luke 4 2761 mike 5 2346 lucy So what should I do to echo all users where `server_id = 2761`? What output should look like... …

Member Avatar for diafol
0
144
Member Avatar for rotten69

I'm using jQuery for mobile and making the app show users a dailog box to let them enter their credentials when they want to log into the app. Ok. it redirects them to the home page but the url stays as mysite.com/login.php rather than mysite.com/index.php This removes the menu bar …

Member Avatar for rotten69
0
167
Member Avatar for showman13

OK, this may sound like an odd request, but hopefully someone can help. I have always developed scripts behind webpages that were 800 wide so they would fit on basically any display. The one I'm working on now I have designed for 1200 wide because I just needed more space. …

Member Avatar for showman13
0
90
Member Avatar for RazorNapster

Hi, I created wordpress web site using ms webmatrix(i needed to do it offline),now before i publish it i would need to transfer it my friends computer for further development.WebMatrix crates several files and folder however if i just simply try to copy them website wont run on another computer(webmatrix …

Member Avatar for diafol
0
74
Member Avatar for master-tech

Hi y'all, I've done a number of searches and haven't been able to find this question already asked... I have a simple, (in a single php file) URL Redirect in the form of a Wordpress plugin. I already have a simple "define->function->echo" code for displaying the total hits/visits count for …

Member Avatar for LastMitch
0
120
Member Avatar for tapuwa2002

I have a csv file with data I would like the data to be filled in the empty spaces. then export to excel file or into a database for example. I would like the first column to copy the first Product A to fill the other spaces For example Type …

Member Avatar for LastMitch
0
924

The End.