39,316 Topics

Member Avatar for
Member Avatar for dudzkie

hello! question, i want to unset all the session that i created on my script except for 1-3 sessions, can i use [B]session_destroy[/B] to unset those sessions and exempt the 1-3 session that i dont want to be unset? thanks!

Member Avatar for diafol
0
68
Member Avatar for paullanesra

Hi, I am having a problem with my file upload. I have a folder with my fileform.html and upload_file.php and a folder "upload" where my uploaded file stored. This is the body of my fileform.php: [CODE]<form action="upload_file.php" method="post" enctype="multipart/form-data"> <label for="file">Filename:</label> <input type="file" name="file" id="file" /> <br /> <input type="submit" …

Member Avatar for diafol
0
168
Member Avatar for ridzii

hi i want to learn php but am confused at the first step itself. i donno hw to start. i hav installed wamp server on my pc, is it the right beginning? i dont know where to type the <?php </? codes and all please help me should i install …

Member Avatar for Progr4mmer
0
211
Member Avatar for newbiecoder

Hello I installed MYSQL and Apache via XAMPP. And I am trying some codes from a textbook while Apace and MYSQL are running. I am trying to connect MYSQL with this code :[CODE]<?php //connect to MySQL; note we’ve used our own parameters- you should use //your own for hostname, user, …

Member Avatar for diafol
0
202
Member Avatar for bjeffries

I am on a godaddy server now and trying this mod-rewrite stuff and it is still not working. I have been searching google now for hours looking for the answer and cannot find it. Here is my entire .htaccess file: #Rewrite Rules Options -MultiViews Options +FollowSymLinks +Indexes RewriteEngine on RewriteBase …

Member Avatar for bjeffries
0
239
Member Avatar for luweegee

Can u help me guys im a newbie in php...i want u 2 check my Update code because they not function. is there something wrong in my code? [CODE] <?php $con = mysql_connect("localhost","root",""); $sql = mysql_select_db("luweegee",$con); ?> <html> <body> <table border=1 align='center' width=800 cellpadding=20 cellspacing=0> <tr><td colspan=2><h1>Edit Record</h1></td></tr> <tr> <td …

Member Avatar for luweegee
0
156
Member Avatar for puvi

Hi ppl, I am trying to save the details of a form on clicking submit into a database. the details entered in text box get saved, but the options chosen from drop down are not getting saved. I noticed that, if the option has space (Eg: Tom Hanks) it doesnt …

Member Avatar for puvi
0
123
Member Avatar for shabba123

Hi, I am new to this forum and my question is this. I have installed swoopo and some of the links work on the pages and some links go back to the root directory which is not where my pages are stored. There must be multiple places the paths for …

0
37
Member Avatar for dudzkie

hello! i'm a super newbie at php i'm trying to learn some scripts, what im trying to do now is a simple shop system. i have a table that contains item_id , item_name, price, quantity what i want to do is that a customer will choose an item, how many …

Member Avatar for dudzkie
0
149
Member Avatar for professor123

hi guys l wanted to know that it is it possible generated diagrams in php....what l mean is that l am doing an online exam project and some of the exam questions must have graphs or diagrams on them so how can this be done to output these diagrams....... the …

Member Avatar for professor123
0
83
Member Avatar for ctkam

i've generated dynamic pdf files from php script with mysql which suppose to have 25000 files. The problem is after the loop i only have 24978 files and 22 files is missing. I couldn't find the problem and which record did not process. i was thinking of the solution reverse …

Member Avatar for ctkam
0
94
Member Avatar for jrhitokiri

I am thinking of setting up a link shortener for myself, and I want to know how to track unique and total clicks. Well, the total clicks are easy to do. I think the unique clicks are more challenging. Also, how do you do 301 and 307 redirection? Is this …

Member Avatar for maryparker
0
133
Member Avatar for luweegee

The function of delete record is working, but you need to double click the Delete Button to successfuly delete the record...can anyone help me pls [CODE] <?php $con = mysql_connect("localhost","root",""); $sql = mysql_select_db("luweegee",$con); $sel = mysql_query("SELECT * FROM resume"); ?> <html> <body> <table border=1 align='center' width=800 cellpadding=20 cellspacing=0> <tr> <td …

Member Avatar for luweegee
0
163
Member Avatar for sumandy

[CODE] Create table Cameras (CameraID varchar (35), CheckOutDate varchar(10), ReturnDate varchar(10), primary key(CameraID), foreign key(CameraId) references History(CameraID)); Create table Borrowers (PsuID int not null, BorrowerName varchar(30), Email varchar(50), Telephone varchar(12), ReasonUse varchar(200), primary key(PsuID), foreign key(PsuID) references History(PsuID)); Create table History (PsuID int not null, CameraID varchar (35), BorrowedFrequency int, …

Member Avatar for sumandy
0
124
Member Avatar for priya1989
Member Avatar for smantscheff
0
70
Member Avatar for fabzster

Hi I am using the following join query to get a list of stores that have sold policies during the day. But I need it to be distinct [CODE] $Query = mysql_query("SELECT tblpolicies.StoreId , tblpolicies.DateReceived , DailyGroup.GroupName , DailyGroup.StoreName , DailyGroup.PortfolioName FROM tblpolicies LEFT OUTER JOIN (SELECT StoreId , GroupName, …

Member Avatar for jlego
1
233
Member Avatar for dudzkie

hello! im trying to study how checkbox work, this is i want to do i array a list of items (item name, price, etc) from my database i would like to put a checkbox beside each item, all the items that are checked will be posted on a next form …

Member Avatar for dudzkie
0
103
Member Avatar for tcollins412

i am writing something in php and i keep getting the error: mysql_fetch_array not a valid sql argument. here is the code: [CODE=php] <?php if ($_GET['goto']=='requests'){ ?> <table> <?php $query = "SELECT * FROM friends WHERE toid='$id'"; $result = mysql_query($query); while($row = mysql_fetch_array($result)){ $query = "SELECT * FROM members WHERE …

Member Avatar for mschroeder
0
91
Member Avatar for AMADH

Hello, I was wondering if someone could help me. I am new to mysql/php and I was wondering if there is a way that I can have php create pages for me. What I want is that I no longer need to create new page, so I will have a …

Member Avatar for pixelsoul
0
819
Member Avatar for scorpio222

I have a database, that has a type_code in it. There are 3 types of products and certain numbers and costs associated with each type. The type codes are not present in sequential order in the database. they are random and i have a csv file with only 2 columns …

Member Avatar for smantscheff
0
89
Member Avatar for printman55

I am a web designer and specialize more in front end design and graphic work. I need help developing the code for a interface for a client to upload text and PDF file descriptions to a MySQL database. The interface would also facilitate PDF file uploads to a directory plus …

Member Avatar for smantscheff
0
67
Member Avatar for designalex

Hi all, i am very new to php, this is my first post and the first project that i am working on. i have searched for my problem but i cant find a solution, i suppose i dont even know what im looking for so here goes! i have a …

Member Avatar for smantscheff
0
84
Member Avatar for facarroll

I have the following code which displays something like this; William Science Monday William Math Tuesday William English Thursday but I want it to display without repeating the name William in the lines after the first line. [CODE] <?php $query = mysql_query("SELECT userId, quizTitle, addDate FROM quiz WHERE managerId='".$userid."' AND …

Member Avatar for facarroll
0
135
Member Avatar for Masks.be

Hi webdevelopers, I am trying to INSERT INTO a table, a RETRIEVED gender SELECT FROM another table, but it misses a piece of code, to function: [CODE]$page_title = 'Register'; include ('./header2.html'); // Connect to the database. require_once ('./Script14.1_mysql_connect.php'); if (isset($_POST['submitted'])) { if (!empty($_POST['types']) && ($_POST['types_id']) > 1) { $g = …

Member Avatar for Masks.be
0
79
Member Avatar for elson.james

Hi everyone! I am new in PHP. Is there a way to store a value from a combo box to an array? Can you show me an example. Thanks! :)

Member Avatar for elson.james
0
871
Member Avatar for Thunder--

I am getting this error on other pages that lead to this one, but i can't find out what I'm doing wrong... can anyone help? The error reads: Warning: mysql_numrows(): supplied argument is not a valid MySQL result resource in ...on line 9. Can anyone help me? [CODE]<? if(!defined('TBL_ACTIVE_USERS')) { …

Member Avatar for erry
0
74
Member Avatar for Sanit

Hey guys, I'm trying to echo a link that has an onclick attribute attached to it, but when I click on the link on the page, just goes to the desired page, and doesn't preform the onclick action. Here's my code: [code=php]<?php if(session_is_registered("sesvar")){ echo ("<a href='../../admin/comment-delete.php?id=$id2' onclick='return(confirm('Are you SURE you …

Member Avatar for leo_gatmaytan
0
2K
Member Avatar for JBLDW

How would I go about altering every table in a MySQL database? I have read several posts on this subject, regarding altering a table for foreign character sets and the like, or altering specific tables, but can find nothing for what I am trying to do, which is to use …

Member Avatar for JBLDW
1
109
Member Avatar for ridzii

can we see the php codes of any website present online? for css there is a web developer tool in mozilla which shows the css codes is anything like that possible?

Member Avatar for ballchain
0
50
Member Avatar for lit108

I have a script that is parsing rss feeds and the xml to a webpage, this is part of a blog aggregator system. However there are areas throughout the web system where I would like to only display a set number of posts, 10 for example I have tried a …

Member Avatar for lit108
0
125

The End.