No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
hi, I am creating a form for user to update their details which is saved in the database. So far i can show their details in the form where i have a submit button but the updating part doesnt work(it doesnt update at all). here is the code: [CODE] <html> … |
|
hey guys... i know this is a very common problem and has been posted earlier also... but nobody seems to have figured out a solution... i am making a program using PHP/MySQL. I need to update 3 columns in a table. when i use a single UPDATE-SET command(using commas/AND etc … |
|
auth.php [code=php] <?php // start session session_start(); // convert username and password from _POST or _SESSION if($_POST){ $_SESSION['username']=$_POST['username']; $_SESSION['password']=$_POST['password']; } // query for a user/pass match $result = mysql_query("SELECT * FROM users WHERE username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'"); // retrieve number of rows resulted … |
|
Any could give me a PHP script on how to call or execute a MS SQL Server stored procedure, passing parameters to it and receiving a value from it using an Output parameter? |
|
I'm trying to send an html/plain text email for an invoice program I am writing. I really want the html message because it offers better layout options for invoicing and some features to help my customers with their payments. However, some email clients don't work with html email -- especially … |
|
Hi, I have two forms: one which displays the list of projects in a dropdown box from mysql db second one is a date picker form. after this i have a submit button. Now, when i click the submit button I want to get the details of the Users corresponding … |
|
Hi new to php and I'm trying to learn how to set up connections to the database on my remote server. I'm using dreamweaver to create recordsets, then dispaying the results. Dreamweaver creates a connection file(I named student.php) automatically based on your database connections and login info. However, this poses … |
|
I keep getting a T String parse error. I am not sure what I'm missing? Any help would be appreciated! <?php $filename = "http://www.empowergroupusa.com/cambiolabs/extension/catalog/files/inspection_886.pdf"; if (file_exists($filename)) { echo "<a\href="http://www.empowergroupusa.com/cambiolabs/extension/catalog/files/inspection_886.pdf </a>"; } else { echo "The file $filename does not exist"; } ?> |
|
Hello, Few days ago I was searching online for a way to create a PHP forum though which the visitors can leave their messages and to automatically appear on the page. I found the a code and I used it to create the PHP form, but unfortunately I discovered the … |
|
I have no problem connecting to database, and the form is okay i guess. ¿Do anybody see the problem in here? It keeps returning me ERROR! PHP code: [code=php] <?php mysql_connect("$host", "$mysql_user", "$mysql_pass")or die("Error connecting."); mysql_select_db(users)or die("Can't access to database."); if($id) { $sql = 'UPDATE members SET '; $sql .= … |
|
I need some help with my coding:(. I have a php file with a delete link. It flags the user record with "1" when delete is clicked. What I don't know is that "how to remove the user record from my php file". The user record is fetched from mysql … |
|
Hello, I have a custom script. I want to add cart function in my script but I can't find any tutorial. Please help me, any step by step tutorial? |
|
[code=mysql] SELECT * FROM fb.order LEFT JOIN item on order.item_name = item.item_name WHERE fb.order.order_status = 'Served' and tab_name='A' [/code] I have two different tables "order" and "item" which i joined using left join. In order table there is a column name called quantity and in item table, there is a … |
|
Hello, This might be an easy solution for you guys, but I'm learning php on my own and I'm having problems with this code. Its giving me an output of what I want but I'm also getting this error "Notice: Undefined variable: construct in C:\wamp\www\search_exp\data.php on line 27" the line … |
|
hi , [B]all i want to delete files after xx days from a folder using php [/B] thnx in adv.. |
|
Hi! i know you already experience to use this two cms software. I only want to know which of this two is the best. I have planned to create a site and then i am hesitate. I want your opinion or suggestions. please help me! |
|
hai all. i got a problem to display a total from a few data in my database for example, in my database i got these fields: TABLE STUFF food double; clothes double; groceries double; total double; ---> should i put this in my table to save my total that will … |
|
[CODE]<?PHP $results = mysql_query("SELECT * FROM messages, comments WHERE messages.user_on='$user2' AND comments.msg_id_fk = messages.msg_id ORDER BY messages.msg_id, comments.com_id DESC") or die(mysql_error()); ?>[/CODE] |
|
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/a1420653/public_html/processform.php on line 46 Here is the code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php // include MySQL-processing classes require_once 'mysql.php'; try{ // connect to … |
|
This code does a nice job reading the members from my database and setting up a form with checkboxes for each member in one long single-column list. What I need to do is to write some sort of loop that sets out 3 or 4 columns and splits the names … |
|
Hello Everyone, I have 2 checkboxes in a form and onclick of these. Once the checkbox is checked, only the fields that are relevant to the checkbox are displayed, with default values in it and to fetch the default values i need to trigger php code. So i can't perform … |
|
well there is the code and its not emailing me anything when i fill in the form. kind of new to php :((actully first time doing it.) [code=php]<?php /*code for form */ $emailSubject = ' PHP Scripting'; $webMaster = '******@gmail.com';/*just made stars for this site*/ $email = $_POST['email']; $name = … |
|
[B][COLOR="Green"]Hey Guys i just was asking if i had data called zf and table cq_user and there is coulmn called emoney and i wanna increase This emoney Value By sumbit Like Increase at php page... but i need This emoneyvalue if it's 100 i need to increase it by 10 … |
|
Hello, Do you have any idea how can i "read" the homepage of a website and then to create an image and display it. Best regards, Silviu |
|
Hi all, i am getting `Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in D:\xampp\htdocs\demo\help.php on line 23` this error. how to overcome by this problem, <?php include 'database.php'; $email = $_POST; $firstname = $_POST ; $lastname = $_POST ; $tphone = $_POST.$_POST.$_POST ; $message = $_POST; … |
|
hi, iam working in php for 4 months iam still trainee iwant to study a sample project so,that i can improve my knowledge i really fed up with tutorials. can anyone please help me in finding sample projects thanx |
|
I've got some code using a lot of complex if statements that I'm using for a VIN decoder. I finally got it working and I'm hesitant to alter it but these if statements are huge! If a switch statement could be used to accomplish what the if statements are doing, … |
|
I have a client who I simply don't have the time for any more. I wrote his website in PHP and it's worked fine for over 6 years now. I've told him to find someone else, but upon telling him I want him to find someone else: 1) he's only … |
|
Hi all. I am having a weird problem with PHP sessions. I create a session but when I click a link inside my site, other session is created. To test it I copy this code below and tried to run in same environment (WAMP at localhost). The same behavior was … |
|
Hi: I'm not sure that this problem has a solution but here goes. I am retrieving a list of names from a database and displaying them on a web page. The list would have the form: Doe, John Smith, Harry Jones, Dan I want each name to be a hyperlink … |