39,323 Topics
| |
Hi, I want to authenticate user if he/she successfully logged in before or not, in every pages. Obviously on top of the pages I have to call a function or another page to run that function to carry out checks but, I really don't know what kind of code I … | |
I fetched text from database in the table <td> I found all the text appear in single line I want to break it. I using PHP. | |
I am building a plant reference guide that pulls from two tables within a mysql db . One table "findplantsdb" has the plant name, desc, image and the other table "plantdb" has the availability of plants listed in the yard and field. I need both databases to come together (JOIN) … | |
I am developing a PHP Web Application and I know about htaccess ( and how to create the htaccess file ). I have activated mod_rewrite in XAMPP ( I am testing it locally ). The current Profile URL is: localhost/app/user.php?name=AbhishekBiswal Where Abhishek Biswal is the UserName. I want it to … | |
[CODE]$sql="SELECT * FROM accounts,adminaccount WHERE accounts.emailaddress='$username' and accounts.password='$password' or adminaccount.emailaddress='$username' and adminaccount.password='$password'"; $result = mysql_query($sql); $count=mysql_num_rows($result); $row = mysql_fetch_assoc($result); $usertype = $row['usertype']; if($count==1) { $_SESSION['usertype']= $row['usertype']; $_SESSION['id'] = $row['id']; if($usertype == "admin") { header("location:indexadmin.php"); } else { header("location:indexmember.php"); } } else { header("location:index.php?page=loginfail.php"); } ?> [/CODE] I wanted it to … | |
Hey, I want to build a shopping cart for my sister's online jewelry business, but I can't quite get my thoughts organized enough to make something work. Anyone have a script that could work? P.S. It should have the ability to make options for products such as size, color, etc. | |
Hi, in this news you will see how in the past few years there has been some controversy over a bug or more commonly known as a feature which appears it may be removed as of php 5.4.0. According to the features list of php 5.4.0 beta there is the … | |
Hello, i have some problem with this issue. i have to do display results randomly using mysql. but results don't repeat until one cycle completed. i mean there are 6 results is there.... example first displyed randomly like 2 and 6, next 3 , 4 next 1,5 (one cycle completed) … | |
Hi everyone, I have a text file with similar content as below: [CODE] admin,123 user,123 user2,123 [/CODE] What i need to perform is to upload the text file and read each lines. Then split the content of each lines by delimiter and add it to database. In my database there … | |
Hello web developers I'm trying to create option "all models" in auto script. so people could choose for example Honda and would choose "all models" of honda and see the results. [CODE]<?php include('head.php'); ?> <body> <body id="homepage"> <style type="text/css"> .t{font-weight:bold;color:#000000;width:200px} select{width:250px} input{width:238px} </style> <div id="container"> <?php include('header.php'); ?> <?php include('menu.php'); … | |
Hi, can i ask some help on how to delete records in database.im using wampserver... I retrieve all rows and display it on the table which is php code and i want to delete rows if i will click the delete in the table...is this possible?please help me... [CODE] <?php … | |
Please post a list of ideas for tutorials that can be written for the php section. Please bear in mind the tutorials are to be kept relatively small so don't ask for something that may take pages upon pages of text to explain. Thanks. | |
news_manager.php [CODE] //LOAD KATEGORI $result = mysql_query("SELECT * FROM kategori_berita ORDER BY kategori ASC") or die(mysql_error()); ?> Pilih Kategori Terlebih dahulu <select name="kategori" onchange="submit();"> <?php if (empty($_REQUEST['kategori'])) echo '<option value="" selected="selected">--Kategori--</option>'; while ($data=mysql_fetch_array($result)){ ?><option <?php if ($_REQUEST['kategori'] == $data['id']) echo 'selected="selected"' ?> value="<?php echo $data['id']; ?>"><?php echo $data['kategori']; ?></option> <?php … | |
hi guys... i have a form that submits info to the database...it works fine in ie, but was freezing in ff...originally i thought it was because my firefox has been playing up recently, but i got a friend to test on his machine and he got the same result the … | |
hi fndz how to call php function on button click | |
Hi everyone, I'm totally new to PHP and I am trying to create a script that allows users to upload a picture which will then be emailed to me along with their details. When debugging, I keep receiving the message Parse error: syntax error, unexpected $end in C:\Users\Admin\Web\php-form-action.php on line … | |
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\Lcbo\flash_import.php on line 6 this is the error i get from this code: [CODE] require_once("Connections/LCconnect2.php"); $myquery = mysql_query("SELECT pro_brand FROM product_information ORDER BY pro_id DESC"); print "&winetitle="; while($row=mysql_fetch_array($myquery)){ //<----line 6 print $row['pro_brand']."|"; } [/CODE] is it something to do … | |
Hi All, Can anybody see why the following function is ignoring the plain text part of the multipart? [code] $attachment = chunk_split(base64_encode(file_get_contents($filetoattach))); //Let's start our headers $headers = "From: $from_name<" .$from_name . ">\n"; $headers .= "Reply-To: <" . $from_name . ">\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: multipart/related; type=\"multipart/alternative\"; … | |
| Hello, I have a website that is pretty much just css, html and php. I have incorporated a membership and log in system. For some reason in Internet Explorer, when users log in, the page becomes distorted (higher line heights, misplaced images, etc.). But it's only when they're using Internet … |
Hi, I am really struggling to get some ideas for a project to do for my final year in Forensic Computing course. Unlike other computer courses it has to be something to do with computer forensics area I have been told. I am medium programmer in C but very confident … | |
How would I recode this to use checkboxes for each $result ? I want to make it so that instead of selecting different results from the drop down multiple times, a user can check the boxes of results they want and submit them that way. [CODE]echo "<table> <tr><td><b>Class:</td><td>#$class_id</td></tr> <tr><td><b>Show:</td><td><a href='shows.php?id=$show_id'>$show_name … | |
Hello! i didnt see any primary forum this should be in, so i'll ask the animals of PHP. I really want the url [CODE]http://www.mysite.net/index.php?page=images[/CODE] to be [CODE]http://www.mysite.net/index/images[/CODE] Anyone got any idea? i've been searching and trying all day, but my brain capacity is not online today.. I will hug you...:( | |
I was trying to implement checkboxes, but that seems too difficult. Here is the code: [CODE]<?php session_start(); // Maintain session state header("Cache-control: private"); // Fixes IE6's back button problem. $page_title = "Class Information"; include('header.php'); $class_id = $_GET['id']; $enter = $_POST['enter_horse']; $horse_id = $_POST['horse_id']; //general show information $result = @mysql_query("SELECT s.show_id, … | |
I brought a website template off line. it came with a contact form that i have know idea how to edit it. here is the code please help i just want the message to go straight to my email when the user pushes send. Thanks in advance i been online … | |
hi guys, i'm having an SQL Error in my CMS, somebody please have a look i get this error: "Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in C:\Program Files (x86)\VertrigoServ\www\portal\estrutura\publicidades\exibe.php on line 73" my code: <? $variables=(strtolower($_SERVER['REQUEST_METHOD'])== 'GET') ? $_GET : $_POST; foreach ($variables as $k=> … | |
Hi all i have a new problem that needs some solvin I'm trying to add data sets to Google's Javascript Motionchart from my SQL database via PHP Here is what i have so far: [CODE] <?php include "conn.php"; // Select all the rows in the markers table $query = "SELECT … | |
Dear all, I have created a webpage and a SQL database runs in the background. When user enters options in the query page of my webpage, they get some tables with results. I want to provide an option to the user to download the results in tab-separated, tabular (excel) and … | |
Hi everyone, First of all let me just tell you that I have never done database programming myself, and this is the first time I'm setting up a MySQL database via phpMyAdmin, so I could be missing something small but I'm sure someone will know the answer, anyways... I have … | |
Hi, I work on website which have large number of users in php. I wonder which is the best way to handle database connection in this case. Every database object have it's related class and on the start of every class method database connection opens (for example GetLatestNews(), GetNewsOfType($type) etc). … | |
Hi everyone I'm trying to extract an address in three lines. But its giving it to me in one line. I'm creating a pdf form using mysql and php. e.g: 252 westend drive Sommerset west 0185 I don't want it like this. 252 westend drive Sommerset west 0185 I want … |
The End.