39,320 Topics

Member Avatar for
Member Avatar for AbhishekBiswal

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 …

Member Avatar for Matthew N.
0
174
Member Avatar for ken.atienza

[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 …

Member Avatar for Matthew N.
0
152
Member Avatar for sun-tzu

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.

Member Avatar for pritaeas
0
81
Member Avatar for cwarn23

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 …

Member Avatar for diafol
4
747
Member Avatar for muralibobby2015

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) …

Member Avatar for pritaeas
0
1K
Member Avatar for ariffin246

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 …

Member Avatar for ariffin246
0
122
Member Avatar for Dolphinboy

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'); …

Member Avatar for diafol
0
124
Member Avatar for jemz

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 …

Member Avatar for jemz
0
253
Member Avatar for cwarn23

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.

Member Avatar for diafol
2
129
Member Avatar for davy_yg

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 …

Member Avatar for pritaeas
0
142
Member Avatar for IWDesigns

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 …

Member Avatar for Stefano Mtangoo
0
134
Member Avatar for mary_forum
Member Avatar for cbwhellmouth

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 …

Member Avatar for pritaeas
0
329
Member Avatar for cdoggg94

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 …

Member Avatar for stoopkid
0
269
Member Avatar for whiteyoh

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\"; …

Member Avatar for cereal
0
111
Member Avatar for megachip04

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 …

Member Avatar for cereal
0
111
Member Avatar for daza166

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 …

Member Avatar for chrishea
0
665
Member Avatar for violaceous

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 …

Member Avatar for Ezzaral
0
135
Member Avatar for Sorcher

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...:(

Member Avatar for diafol
0
84
Member Avatar for violaceous

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, …

Member Avatar for diafol
0
314
Member Avatar for WoW Me Web Girl

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 …

Member Avatar for WoW Me Web Girl
0
347
Member Avatar for phpangel

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=> …

Member Avatar for phpangel
0
120
Member Avatar for h3rb

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 …

Member Avatar for h3rb
0
167
Member Avatar for aru211285

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 …

Member Avatar for chrishea
0
101
Member Avatar for suley04

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 …

Member Avatar for suley04
0
325
Member Avatar for aldm

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). …

Member Avatar for mschroeder
0
191
Member Avatar for Josem

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 …

Member Avatar for suley04
0
96
Member Avatar for nikki05

Hello, Could someone suggest me the ways to redirect a website from one server to another website in another server? I have one website "X" (IP based e.g [url]http://x.x.x.x/example.html[/url]) in one server using IIS and another website "Y" (domain based e.g. [url]www.abc.com[/url] ) on another server using Apache. I linked …

Member Avatar for suley04
0
540
Member Avatar for Xdwardo

Hi everyone 8) I'm new around here but thought it's about time I joined a good PHP forum! I'll introduce myself properly on the right section, but for now, I'll my post my coding problem on here. I wonder if any has any knowledge or can help. I'm setting up …

Member Avatar for Xdwardo
0
168
Member Avatar for KillingKiller

So, i need help to do couple of things: [B]1.[/B] To change the hyperlink into a button. The link downloads the file from the server, which is pointed in the database. Below is the actual code of the hyperlink, and what I tried to do, to change it to a …

Member Avatar for diafol
0
232

The End.