39,320 Topics
| |
Do anyone see what im doing wrong with the update query? i get this mysql_error message; 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 '-xxx WHERE id = '616' AND userid = '15'' … | |
good morning. i am new still new in php. I need help from you all. why i cannot delete multiple rows from mysql with checkbox in my database... this is my coding.. <?php $host="localhost"; // Host name $username="root"; // Mysql username $password=""; // Mysql password $db_name="cek"; // Database name $tbl_name="del"; … | |
hi ... i is it possible in php: updating/refreshing a page once per 30seconds (1/30 secs) and it can be set for 2x,3x times and so on.... and also the seconds (the 30 seconds ) can be set also.... | |
[B]**Disclaimer: It's been a while since I last wrote any code. The quality of my code is likely to be sub-par. You've been warned.**[/B] I have a basic form that's meant to search flat files on our server. The "search engine" I created as two select lists: one for the … | |
I need to write code that will copy files from one folder to another please help | |
| |
hi,im using registration form for registering users to the new account.i have 2 tables in one database.database name is test and table name is student and member.in student table which contain the register no of student which is already stored in the database.in member table,it has 4 fields which is … | |
Hello all, first post here. I'm a newbie in php code, but declaring a simple variable I thought I could do, but apparently not. I cannot figure out which rule I broke, but I keep getting an error message in line 4 of the following code for an unexpected t … | |
Hi guys, I am new here in the community. I need help on how to pass a javascript variable value to a php variable.. I am using jquery to hide form1 when the page loads. My first javascript is working fine. my code is like this: [CODE] <script type="text/javascript"> $(document).ready(function(){ … | |
Greetings! Recently I've been updating an image resize class I found on the internet. What I needed to have was a script that would crop an image in order to fit in a defined with a fixed width an height. However, after the image is redimensioned, (keeping the aspect ratio), … | |
I created a Javascript application that collects user data to calculate a moving quote. ([url]http://economymoving.net/get_an_online_moving_quote.php[/url]) When submitted, it inserts a new record into the database then it displays a personalized moving quote on a new page. The application also collects personal info (name, phone number, email, address, etc.) How can … | |
Hi I get my data posted from another form.html page i receive it just fine and decode the json just fine, and the validation works just fine, the only problem is the part where i have to insert the values into the database.. any suggestions.. [CODE] <!DOCTYPE html> <html> <head> … | |
My code count and display total number of messages on index page. I want to show only number of new messages. How to skip old messages or mark old messages as read? CREATE TABLE IF NOT EXISTS `message` ( `id` bigint(50) NOT NULL AUTO_INCREMENT, `name` tinytext NOT NULL, `message` text … | |
Hello house, Can anyone help me with a joomla plugin for alphauserpoints, i want users' points to be deducted if video is watched. Thank you | |
I'm making personal MVC framework skeleton I plan to build all sites on it (reserve your question pls on why not CI or CakePHP et al). Now Thinking of session security, one option is database. I was wondering whether storing session data in root_app/tmp/sessions/ would be better as/more than database! … | |
I download simplehtmldom_1_5 for fetching the data from website. But I want to insert this data into database. If I put any URL I want to get the information(For eg. name,email,phone etc)and stored it into database. What is the solution?Please help me. Thanks in advance. | |
I created a Javascript application that creates a moving quote.([url]http://economymoving.net/get_an_online_moving_quote.php[/url]) The quote page should insert a record in the db, display the record on a new page called viewquote.php and send an alert email to the company. Currently, the phpmyadmin database receives the record but viewquote.php doesn't display the correct … | |
| here is my stored procedure [code=sql] begin select indexes.IndexID, languages.LanguageID, languages.LanguageName, indexes.OrderID, indexes.IndexName FROM indexes, languages where indexes.LanguageID = languages.LanguageID and languages.LanguageID = Language order by indexes.OrderID asc; end [/code] here is my php code [code=php] <?php $Server = "127.0.0.1"; $Port = ":"."3306"; $DataBase = "abc"; $UserName = "def"; $PassWord … |
i am using mail() function to send email with php. the following is the sending script. <?php $to = "bonjourcava@gmail.com"; $subject = "Contact Us"; $email = "bonjour" ; $message = "jee tres bien" ; $headers = "Billing information"; $sent = mail($to, $subject, $message, $headers) ; ?> it displays a success … | |
Hi I am doing an API application now. I sent the request using soap. I received the response back in xml format. For simple example i sent the request as <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:fram="http://framework.zend.com"> <soapenv:Header/> <soapenv:Body> <fram:getVersion/> </soapenv:Body> </soapenv:Envelope> Received Response as <SOAP-ENV:Envelope xmlns:SOAPENV=" http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://framework.zend.com"> <SOAP-ENV:Body> <ns1:getVersionResponse> <return>0.1</return> </ns1:getVersionResponse> </SOAP-ENV:Body> … | |
I have create a web page in php. I am retrieving the values from mysql database and showing as grid view on page. I want to take a print on paper upto only datagrid. What to do..? Please help anyone with code.... | |
Difference between require() and require_once(): require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. … | |
Hello everyone, I've read, in the manual of PHP, about this function, i.e. quotemeta(string $str). This function [QUOTE]Returns a version of str with a backslash character (\) before every character that is among these: . \ + * ? [ ^ ] ( $ )[/QUOTE] Now, I understand what it … | |
Hi, I am very new to working with php and I need a little help getting the fields from my form divided into two rows and properly aligned when output to the user. [B]Function:[/B] This is a Client Profile type of program. A form is displayed to the user and … | |
I want to write a script if database no this record. It will insert If database have tis reord. It will update [CODE]for ($a=0; $a<count($arr_event_id); $a++) { $query1 = "SELECT evnt_id FROM sales_roadshow WHERE evnt_id = '".$arr_event_id[$a]."' "; $result1 = mysql_query($query1) or die(mysql_error()); $row_s1 = mysql_fetch_row($result1); $P_numrows1 = mysql_num_rows($result1); if … | |
I want to update a table based on what a user enters. I know I got the username and password correct. But I keep getting an error based on my debugging code. I'm connecting to the database successfully, but it's just not updating. The variables print into the page, so … | |
Hi all, I hope you're having a good day. I'm 15 and as a way to earn some money this this year I am thinking of starting a small web development business. I have knowledge in HTML (4 and 5), CSS (2 and 3), PHP 5, SQL, and some knowledge … | |
THIS IS THE FUNCTIONS FILE [CODE]<?php function pf_script_with_get($script) { $page = $script; $page = $page . "?"; foreach($_GET as $key => $val) { $page = $page . $key . "=" . $val . "&"; } return substr($page, 0, strlen($page)-1); } ?> <?php session_start(); require("Config.php"); require("Functions.php"); //Determine if the user is … | |
hi! can u help me regarding on how to create statistical graph using php? | |
I have a MySQL database that has a list of items which gets updated everyday. The database is truncated everyday and filled back with the recent posts. After it is filled out, I need an automatic system that will send out the emails to users who have provided certain keyword. … |
The End.