39,323 Topics

Member Avatar for
Member Avatar for Robbastiaansen

Hi all, I am running a script that processes files line by line. It takes a while so I would like to echo a status update with each line so we can see where we are in the process. I started reading on the output buffers but that doesn't do …

Member Avatar for Robbastiaansen
0
1K
Member Avatar for lwaterfo

Is there an easy way to have a user view their information in form fields? I have set up a query for a user's information in a table to come up, but I want the user to be able to edit their information... Does this require other programming language knowledge …

Member Avatar for fobos
0
84
Member Avatar for scarcella

[CODE] /* Login Functions */ function login($usr, $pass) { $sql = "SELECT * FROM users WHERE usrNAME = '$usr' AND usrPASS = '$pass'"; $query = mysql_query($sql); $row = mysql_fetch_assoc($query); if (mysql_num_rows($query) == 1) { // in here is what it should do if successful } else { // in here …

Member Avatar for Stefano Mtangoo
0
309
Member Avatar for antrvant

Hi guys, I want to put links on 1 box @ right hand side but only show it on homepage. The problem is the right handside show sitewide (all pages). How can I show that box only hompage and the rest of right handside still show all pages? my sites …

Member Avatar for chrishea
0
65
Member Avatar for Robbastiaansen

Hi, What I am trying to do is enter HTML code into a variable and then pass it along to another script with POST to have it used as the HTML content with PHPmailer. As soon as my HTML code that i paste into the textarea contains double quotes it …

Member Avatar for dietdew12z
0
2K
Member Avatar for gf1987

Hello everyone. I am having trouble trying to write some script that will unlink all files in a directory. Can anyone help me? I am not sure of the best way to do this? Thankyou.

Member Avatar for paulrajj
0
58
Member Avatar for kohar

Hello, I am trying to use submit buttons, with different meeting dates as the name. When user clicks (for example) September 9, 2010 button, the text file called September 9, 2010 will open in the other div. If user clicks October button, the October text file would open in other …

Member Avatar for hielo
0
67
Member Avatar for kissu

Hie, I'm trying to first pass a variable in a link from index.php to a page template.php. This variable is holding a table name of a data-base. Now my problem is to get this passed variable (which is a table name) from index.php to template.php and use the same to …

Member Avatar for paulrajj
0
1K
Member Avatar for CasTex

This script logins the facebook and gather some data (not important) from search, but however, its not working. Where is my mistake ? (Login is working, but gathering info from search results, isnt.) [CODE]<? $first_name = 'Eda'; $login_email = 'bodrumlukardes@hotmail.com'; $login_pass = 'mypassword'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://login.facebook.com/login.php?m&amp;next=http%3A%2F%2Fm.facebook.com%2Fhome.php'); curl_setopt($ch, …

0
62
Member Avatar for ekSquall

Hi guys i can't seem to figure out whats wrong with my sql statement. its an insert statements using session variables to insert into a SQLite table. part of problem code as follows: [CODE]<?php $db = new PDO('sqlite:name.sqlite'); $submitNewSummary = $db ->query("INSERT INTO clinicalSummary(placementID,attMon1,attTue1,attWed1,attThu1,attFri1,attMon2,attTue2,attWed2,attThu2,attFri2,item1,item2,item3,item4,item5,item6,item7,item8,item9,item10,item11,item12,item13,item14,item15,item16,item17,item18,item19,item20,dateCompleted) VALUES (".$_SESSION['studentRetrievedPID'].",".$_SESSION['Monday1'].",".$_SESSION['Tuesday1'].",".$_SESSION['Wednesday1'].",".$_SESSION['Thursday1'].",".$_SESSION['Friday1'].",".$_SESSION['Monday2'].",".$_SESSION['Tuesday2'].",".$_SESSION['Wednesday2'].",".$_SESSION['Thursday2'].",".$_SESSION['Friday2'].",".$_SESSION['itemSummary1'].",".$_SESSION['itemSummary2'].",".$_SESSION['itemSummary3'].",".$_SESSION['itemSummary4'].",".$_SESSION['itemSummary5'].",".$_SESSION['itemSummary6'].",".$_SESSION['itemSummary7'].",".$_SESSION['itemSummary8'].",".$_SESSION['itemSummary9'].",".$_SESSION['itemSummary10'].",".$_SESSION['itemSummary11'].",".$_SESSION['itemSummary12'].",".$_SESSION['itemSummary13'].",".$_SESSION['itemSummary14'].",".$_SESSION['itemSummary15'].",".$_SESSION['itemSummary16'].",".$_SESSION['itemSummary17'].",".$_SESSION['itemSummary18'].",".$_SESSION['itemSummary19'].",".$_SESSION['itemSummary20'].",".$_SESSION['studentRetrievedDF'].")"); if ($submitNewSummary) { echo …

Member Avatar for hielo
0
66
Member Avatar for cicovy

Hi all, I have a table containing about 10 records and each record has a unique ID. I'm trying to dynamically generate a pie chart according to each record The output I want is this: [code]$pct_data = array( new pie_value($this->Client->count_all_by_pct(1,$thisMonth), $this->Pct->info(1)->name.', '.$this->Pct->info(1)->location.' ('.$this->Client->count_all_by_pct(1,$thisMonth).')'), new pie_value($this->Client->count_all_by_pct(4,$thisMonth), $this->Pct->info(4)->name.', '.$this->Pct->info(4)->location.' ('.$this->Client->count_all_by_pct(4,$thisMonth).')'), new pie_value($this->Client->count_all_by_pct(6,$thisMonth), …

Member Avatar for hielo
0
75
Member Avatar for ceeandcee

Here is my problem. I have a table that produces 11 names with 2 values for each. These values are derived by subtracting one field in the database from the other. I have no problem gettign the table to produce those 22 values, but now I want to total each …

Member Avatar for ceeandcee
0
107
Member Avatar for fatpages

Hi All, can anyone suggest the quick manual on implementation of Unit Tests for PHP?

0
54
Member Avatar for aeronvista

I have tried to write a script that sends image as an embedded object rather that attachment OR a url link but it is not working. I am attaching the code. Please help me.

Member Avatar for aeronvista
0
109
Member Avatar for JayGeePee

I'm not sure how to do this or if its possible with CSS/HTML. I have tables that hold info on my index page that is entered from the members area. The table has a plain white background, which isn't my problem. I'd like it if when new info is entered …

Member Avatar for Lsmjudoka
0
64
Member Avatar for webfan16

i'm sorry my title is confusing here's my problem i've created this echo "<table border='1'> <tr> <th>Idno</th> <th>Name</th> <th>Specialty</th> <th>Email</th> <th></th> </tr>"; while($row = mysql_fetch_array($result)) { echo "<tr>"; echo "<td>" . $row['Idno'] . "</td>"; echo "<td>" . $row['LastName'] . " " . $row['FirstName'] . " " . $row['MiddleName'] . "</td>"; …

Member Avatar for Lsmjudoka
0
92
Member Avatar for dschuett

Hi all, This may be asking a bit much, but this is my FIRST advanced PHP/MySQL project. Any help is appreciated. I am currently building a website for one of my friends photography business, and she has requested to allow her clients to be able to sign with a username …

Member Avatar for Lsmjudoka
0
116
Member Avatar for valonesal

Im a novice at php and cant seem to get the following two line together. We want to use this line [CODE] <?php if($logged_in) { echo "Welcome back, $logged_row[username]&nbsp"; } else { print('<a href="http://xxx/login.html">Login</a> / <a href="http://xxx.com/signup.html">Signup</a>'); } ?>[/CODE] But we need this put into it, we need it before …

Member Avatar for valonesal
0
101
Member Avatar for nicholaslee21

[CODE] <html> <link rel="stylesheet" media="screen" href="DynCalendar/dynCalendar.css" /> <script language="javascript" type="text/javascript" src="DynCalendar/browserSniffer.js"></script> <script language="javascript" type="text/javascript" src="DynCalendar/dynCalendar.js"></script> <body> <table width="703" height="210" border="1" cellpadding="5" cellspacing="0"> <tr> <td width="535"><form name="Add_Record"><form action="insert.php" method="POST"> <p class="Headings"><strong>Add a Record</strong> </p> <p>First Name: <input type="text" size="20" maxlength="20"name="firstname" /> Last Name: <input type="text" size="20" maxlength="20" name="lastname" /> </p> <p>Days …

Member Avatar for hielo
0
184
Member Avatar for belayetsumon

Plz any body help me how can i send data in server by form use Zend framwork MVC or give me instraction about zend MVC

Member Avatar for rlfantasy
0
92
Member Avatar for markolini

guyz pls i need help writting d php script for a registration form...i want all the contents of the form to be emailed to an email address i will provide here is a copy of the html code, its juss the php script i need not pls someone help [CODE]<FORM …

Member Avatar for diafol
0
233
Member Avatar for hbat66

Subject PHP: Echo SimpleXMLElement Object Data Out to 3 Column HTML Table Post Hello everyone. I am working with Simple XML Element object data and PHP code. I want to echo out that data into a 3 column HTML table and have run into some trouble. I am currently able …

Member Avatar for rdc
0
456
Member Avatar for Shaswat

can anyone explain me add to cart script.i have read it in some sites but dont know what it means. can anyone explain a simple one?

Member Avatar for Kieran Y5
0
62
Member Avatar for sen4ik

Hi I am parsing .csv file which contains 21 000 records. While i am parsing it i insert records in database. It is taking about 40 second for script to parse the file. User will not sit and wait 40 seconds - he might close page. How can i print …

Member Avatar for MooGeek
0
60
Member Avatar for Smudly

I have a form, that when the user click Submit, I need a php variable to be echoed to the page. This is for an upload page. So when they are waiting for the file to upload, it will say "Uploading..." until the upload is complete. All I know so …

Member Avatar for Shaswat
0
75
Member Avatar for MackAttack30

Hi forum, This will probably be an easy one but i have a situation where i have multiple PHP/HTML <SELECT> tags. So i hold their id and name in an array. When i go to call this enableBox JavaScript function and i try to call the selectorName[] using the getElementById …

Member Avatar for MackAttack30
0
321
Member Avatar for ceeandcee

Good Morning, I am looking for some code that will simply echo "0" when the result is negative. I dont want it to output a negative number. Here is the line I am looking to add this to: [code] echo $row['GP1011_'.$wk.'']-$row['GP1011_'.$prev.'']; [/code] Any help is appreciated. Thanks Chris

Member Avatar for nevvermind
0
113
Member Avatar for julianmoors

Hi Guys, OK I'll admit it from the off I'm a complete PHP newbie, but I'm willing to learn. Here's what I've got so far... I have a search form which is being updated using an AJAX call. So far so good, but my boss would like it so that …

0
85
Member Avatar for mani2604

hi there.. well lets say I do have a multidimensional array of the sort shown below.. Now I do need to pass on the arrays using checkboxes..!! how do I assign single row to each checkbox so that when I onclick it posts the value to the function on the …

Member Avatar for mani2604
0
149
Member Avatar for mangel.murti

i have a form and text box where user can enter amount on the basis of that amount tax rate fetch from mysql.the query below working well but when user input above 50000 , i want tax_rate should be calcuated according to 35%.. ...it givning me empty result,,, how to …

Member Avatar for mangel.murti
0
95

The End.