39,326 Topics
| |
Hi folks! I got a little problem with my assignment. The idea is to create online bookstore. As far didn't have much troubles with the project, until now. Problem occures when I'm trying to update/delete an entry to mySql. if you take a look at line 93 - there is … | |
I want to ask something. I don't understand how to get same data from table at only one time. Here are the example Like table name product_data and there are atleast six field. in data field the date look like this product Date 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 23-04-2012 18-04-2012 … | |
<?php include("include/dbc.php"); include("include/connect.php"); session_start(); $error="style='display:none;'"; $submitcheck=$_POST['submit']; if($submitcheck==1) { if($_POST){ $user_name=addslashes($_POST['user_name']); $password=addslashes($_POST['password']); $query1=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='1'"); $query2=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='2'"); $query3=mysql_query("SELECT * FROM tbl_login WHERE user_name = '$user_name' and password='$password' and user_level='3'"); $query4=mysql_query("SELECT * FROM … | |
Hi, I have an array and I want to check if the student id exists in it or not **without** looping the array. I tried `in_array` and `array_key_exists` but they didn't work. If **001122334** exist in array below then **echo exist**. Thanks in advnace Array ( [0] => Array ( … | |
I would like to find out if my code is correct. It doesn't look right to me. The code is in response to part of an assignment which asks 3 things: 1. Create Model Class file "booksmodel.php" i.e. "BooksModel". 2. Add public method called save_books() to model class. 3. Accept … | |
| i have site divided into about 5 pages , sometime when i make changes then i have to update all five pages. so i want to know if i make file like template.php and then i divided my pages major portion to parts like header.php, body.php , footer.php and sidebar.php … |
I am looking to use mod_rewrite to remove the file extension of the files on my site. I am aware of how to make use of the mod but I was curious as to a couple of things when passing variables to a script. Such as if I have a … | |
Hi everyone, I have a strange thing happening when I update my form. On the form there are a number of input fields, item cost,item name, item description. If I update the item cost, this updates without any problems, but it also updates the item description, duplicating the description. The … | |
hi how can i have it setup where a user can only send 2 gifts a day on my website? many thanks | |
Hi, I have knowledge of php,javascript,html,& mysql for creating websites. I want to create a mobile website. Need suggestions. | |
As stated on the title above, I'm creating a login system using php and mysql. Ok, I'm wondering if it is possible that I can utilize it as window login system .. That means.. window Login system using web application. Which also means, When I first boot up and before … | |
I have an rtf file with contents in MLB-TTRevathi font . How can I display the contents of file in browser | |
Hi! I have started learn about Query and PHP, and i don't know what to do next. I have made table with query help i can show in table records from my Database, so far i have well, but next what i want to do is every record in table … | |
Hi Friends... i just want to make chat in php like "Online help chat" for different website... can anyone guide me where i can get material? Regards... Farhad | |
Hey guys, I have a problem with searching for a string within a string. Here's the code I have at the moment: $query = mysql_query("SELECT * FROM information_schema.TABLES WHERE TABLE_SCHEMA = '".$db."'") or die(mysql_error()); while($table = mysql_fetch_array($query)){ $checktbl = $table['TABLE_NAME']; foreach($_POST['fields'] as $f){ $f = substr($f,strpos($f, '.')); if($checktbl == $f){ … | |
Now i have every thing working, the pagination is a bit fine, only when i click next to go to page 2 or 3, nothing is being shown on the page, the browser shows that i am on the page2 but no data is beeing shown, now when i force … | |
| i have little problem with one algo . first i have two tables there are above one lac records in each table . table 1X structure id domain 1 google.com 2 daniweb.com 3 yahoo.com table 2X structure id domain 1 google.com 2 facebook.com 3 youtube.com now my task is to … |
Hello, I am trying to include a Contact Form in my website. I'm using WAMPserver and Free SMTP Server to test it. The problem is, everytime I click in my button of Send Mail, this error appears in my browser: *Warning: mail() [function.mail]: failed to connect to mailserver at "localhost" … | |
hello this is my problem ![help11](/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy8zL2hlbHAxMS5wbmc%3D/500 "help11") how can do that in php ? <html> <FORM> <TABLE BORDER="0"> <TR><TD> facbook account :</TD> <TD><INPUT TYPE="text" NAME="facbook account" MAXLENGTH="50"><TD><INPUT TYPE="SUBMIT" NAME="save1" VALUE="save"></TD></TR> </FORM> </html> thanks | |
Hello, I'm trying to set up a website where user can upload files to which should be readable by everybody. Logged users should be able to comment on the files and rate the files. I'm new to MySql and quite new to PHP so it has taken me already lots … | |
Hi all, I am trying to create FAQ page having two drop downs product and topic . Selecting from two drop downs ,go/submit button will search and display FAQs. thanks in advance | |
I have a database of 1000K values. How can I use PHP to parse that database in less time ? I am using a foreach loop fr comparison but it takes 15 minutes to parse all data! Should change be done in PHP or SQL ? Please help ! | |
| Hey everyone, Parsing RSS is not my strong point and I am making a news feed for a client and they want me to use the Yahoo News RSS feed. I am using the following code. <?php $url = "http://news.yahoo.com/rss/europe"; $xml = simplexml_load_file( $url ); ?> <h3 id="ln">Latest News</h3> <?php … |
Hello there, This is my form: <form method="post" enctype="multipart/form-data" action="upload.php"> <input type="text" name="nume" id="nume"/> <select name="an" id="an" > <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> <option value="2010">2016</option> <option value="2011">2017</option> <option value="2012">2018</option> <option value="2013">2019</option> <option value="2014">2020</option> <option value="2015">2021</option> </select> <input type="file" name="images" id="images" multiple /> <button … | |
Hi, I make a page to display all applications from table and few of these applications have an interview dates, location etc in another table. I use this code pasted in this article below. The problem is showing the applications with interviews only and the interviews without interviews are not … | |
I use this code. It works correctly before I made minor changes, I mean, make other input fields and the table field name in mysql but I have some problems from line 14 onwards. With this code I Show some data from database table in a form. can anyone check … | |
Good Day Experts,,can anyone help me,,i have a codes for inserting,selecting and deleting row data from original table into archieve table: this is the original table `Username password fullname year course breakzzz breakzzzz romel first year prog.` and this is my archieve table: `username password fullnae year course` my plan … | |
Hi there! I'm using PHP together with jQuery/AJAX to submit a login form without reloading the page. Basically the code works like this: Login.php (The actual form) -> process-login-admin.php (server-side validation and authentication) -> Echo error message The error messages is displayed in a hidden div (#feedback) on "Login.php" that … | |
Hi I need to manipulate a soap call before it's sent off to the soap server. Currently my soap call is constructed as follows: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.xxxxxxx.co.za/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns1:SubmitStringLead> <xmlLead xsi:type="xsd:string"> <strXml> <Lead> <General> <dealer>419</dealer> <source ref="1334923054">randomstring</source> <enquiry>1</enquiry> <subtype>4</subtype> <comment /> </General> <Prospect> … | |
The problem is, when I load a particular page (user.php) the session variable not work. But on the other pages it works fine. Even in my local host user.php also works fine. Only user.php on remote server is occuring this problem. This is login script <?php require_once 'inc/functions.php'; require_once 'inc/mysql_cnct.php'; … |
The End.