39,316 Topics

Member Avatar for
Member Avatar for emiola

Hello, I need my web users to send an uploaded file along with their registration data. The form will be sent via email while at the same time, the uploaded file will be stored in a folder on my server. Take a look at the code please: [CODE] <?php if(isset($_POST['email'])) …

Member Avatar for somedude3488
0
260
Member Avatar for Buppy

Hi, I have a web page where users can log in and then in various sections the page shows some data about the user - like email address, phone number, name, last name, etc (about 30 values in total). In your opinion, what's better - saving the data into session …

Member Avatar for somedude3488
0
130
Member Avatar for phorce

Hello, I was building a web chat system using jQuery, PHP, and mysql and it's working, the thing is that someone informed me that it will strain the server if I do it this way, and suggested I used "Comet Polling" for it, but I have never heard about it …

Member Avatar for diafol
0
54
Member Avatar for davy_yg

product_category.php I am writting the following codes. I would like in the input name Kategori value <?php $kategori; ?> to pull data from nama_kategori in kategori table (in phpmyadmin) whenever I press EDIT. But this is not the case, whenever I press Edit the Kategori box value remains empty. Why …

Member Avatar for davy_yg
0
98
Member Avatar for jpknoob

Hello, i am trying to write a bit of script that will add a delivery cost based on the country code which is provided from a form. Everything works, except my last else statement. As an example, i am trying to make the delivery 1.15 if the country code is …

Member Avatar for jpknoob
0
151
Member Avatar for rahulvramesh

How do i do this automatically, anyone know of a script , given a username, it creates a user account and email address. plz help me

Member Avatar for diafol
0
111
Member Avatar for webramesh

Hi, Someone please help me out that why my pagination page no 1, 2,3 ,. . .>> continued to the next line, is there any way to fix it in one line. [B][U]Here is my Script[/U][/B] [CODE] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <?php require("conn1.php"); …

Member Avatar for diafol
0
123
Member Avatar for ronysios

i can upload to MYSQL, with user generated content, picture included... when i access the information, everything appears but the picture, just the pictures file name is listed (no pic) is my code wrong?... am i missing something? would appreciate any help [CODE]define(`uploadpath`, `htdocs/phpsessions/images`); { $pix=$_FILES['pix']['name']; $target=uploadpath . $pix; echo"$target"; …

Member Avatar for ronysios
0
170
Member Avatar for mayreeh
Member Avatar for chrishea
0
57
Member Avatar for mayreeh

how do i get total values in a row by grouping into diffrent categories. here is my code bt its getting oll totals in a row for now.. <?php require_once('connect.php'); ?> <?php $query="Select Amountspent from Moneyout"; $result=mysql_query($query); $total=0; while($row=mysql_fetch_array($result)) { $total=$total + $row['Amountspent']; } echo "Total is:" . $total; ?> …

Member Avatar for chrishea
0
88
Member Avatar for siva28

am new bie to PHP... I want script for contact web page mail go to mobile phone. for example contact form having name, contact number, description. after that fill these details click the send button mail send to particular mail . so that mail will intimate to my mobile .please …

Member Avatar for chrishea
0
63
Member Avatar for Nahiyan

Hello, So I wrote a PHP script which will return all the contents of a table using Mysql. I want to set a limit so that PHP will display only 30 rows and divide them into pages like [1,2,3...] dynamically and the PHP script will detect the page using GET …

Member Avatar for diafol
0
233
Member Avatar for rpv_sen

I am facing problem on sum of dynamic array value. For example : [B]tablename : totalamt[/B] ref_no | Amount 1 | 58 2 | 12 3 | 11 i am using check box to select the ref_no. now i am selecting 3 check box now and submit it. Now it …

Member Avatar for diafol
0
192
Member Avatar for shg234

Hi, I'm not very much used to with this kind of things, trying to call a class variable from a different page... Please look at the code below: [B]class.php[/B] [CODE]class bag{ private $no_of_items=0; private $sub_total; public function update(){ $this->no_of_items = $this->no_of_items++; return true; } }[/CODE] [B]index.php[/B] [CODE] $cart = new …

Member Avatar for broj1
0
157
Member Avatar for madz015

Hi Everyone, Can someone explain to me where I got wrong with my code. I'm trying to pass a session variable from page to page, from the first to second page the value is still there but on the succeeding page the value is gone. I have ensure that the …

Member Avatar for madz015
0
7K
Member Avatar for Annuscha

Hi, I have a problem getting the value of my arrays into my database. I have 2 sections, the thing is the first section adds all the correct values into the database, where the second section adds 0 to the question_id variable. Form Page: [CODE]//Section 1 $countquestion = 0; $query …

0
74
Member Avatar for DemonGal711

Alright, I've been curious about making a code that can send a text message. I figure if it's possible to send emails with php, there's probably a way to do the same with a text message. I did come across this [URL="http://www.daniweb.com/web-development/php/threads/382740"]thread[/URL] which seems to be using a gateway to …

Member Avatar for cwarn23
0
223
Member Avatar for davy_yg

input_berita_static.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $isiBerita = isset($_POST['isiBerita']) ? $_POST['isiBerita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = mysql_query("SELECT * FROM static_page WHERE id =".$_REQUEST['id']) …

Member Avatar for cwarn23
0
292
Member Avatar for mingis

Newbie question sorry! I have read the documentation on apache.org and I understand the basics, but the way rules interact with each other is confusing me! I have the following .htaccess file, it checks whether a file or directory exists and ignores it if it does (because the page can …

Member Avatar for decade
0
116
Member Avatar for wimmer

I am a newbie with php and was hoping someone can help me out. I am creating my first dynamic site in php and have gotten stuck. I have one page with 100's of links. I need all these links to load the same page but I need the server …

Member Avatar for wimmer
0
316
Member Avatar for vinothaviji

In php delete the row in html table: Hi to everyone, I have a problem in deleting the single row in html table.In html table each row has a delete link and auto_increment id.if u click the delete link the particular row has been deleted in both the html table …

Member Avatar for rpv_sen
0
157
Member Avatar for Joshua Kidd

Hello, I want to do something with my link. And by this I mean. I want to do this: [url]www.example.com/mypage.php?id=10000[/url] But is there a way to do that samething but display it like [url]www.example.com/10000[/url] or [url]www.example.com/mypage.php/10000[/url] ?? Would this have to be done through a .htaccess file?

Member Avatar for Joshua Kidd
0
139
Member Avatar for davy_yg

input_berita_static.php [CODE] $id = isset($_POST['id']) ? $_POST['id'] : ''; $confirmation = isset($_POST['confirmation']) ? $_POST['confirmation'] : ''; $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; $isiBerita = isset($_POST['isiBerita']) ? $_POST['isiBerita'] : ''; $judul = isset($_POST['judul']) ? $_POST['judul'] : ''; $page = isset($_POST['page']) ? $_POST['page'] : ''; //Load berita if (!empty($_REQUEST['id'])){ $result = …

Member Avatar for OmniX
0
115
Member Avatar for aecha

Anyone can help me with this code? I try to make it upload the photo but its cannot save and get this error.. Warning: fopen(Waterfall.jpg) [function.fopen]: failed to open stream: No such file or directory in C:\AppServ\www\pqs\hra\data_entry.php on line 13 Warning: filesize() [function.filesize]: stat failed for Waterfall.jpg in C:\AppServ\www\pqs\hra\data_entry.php on …

Member Avatar for aecha
0
125
Member Avatar for nexter

please solve my problem Parse error: syntax error, unexpected T_STRING in /home/vhosts/www.changs.tk/index.php on line 8 [CODE]<?php if ($NoTemp) { $CONFIG; Return (1); } $EXTRA_ENGINE="exchange_box.php"; $PAGE_TEMPLATE="index.html"; $PAGE_TEMPLATE="login_page.html"!!session_active()$CONFIG$_GET$CONFIG$CONFIG; $_GET("do_login")$page; $LANG_msg$LANG_msg; $page("LANG",$LANG_msg); $_GET$_GET; Return (1); ?>[/CODE]

Member Avatar for ctaylo21
0
293
Member Avatar for saybabs

I really want someone to tell me on FREE web hosting site that i can upload my project in order to TEST it before i do the final hosting. I appreciate your usual efforts.

Member Avatar for toms ace
0
148
Member Avatar for davy_yg

image_gallery.php [CODE] <?php $i = 0; //while ($data = mysql_fetch_object($result)){ for ($rows = 1; $rows<=3; $rows++){ echo "<tr>"; for ($cols=1; $cols<=4;$cols++){ if ($i >= $numRows) break; echo '<td style="text-align:center;">'; $data = mysql_fetch_object($result); echo '<div style="width:100px;font-family: verdana; font-size: 11px;">',$data->title; echo '<a href="'.$data->path.'" rel="lightbox[roadtrip]">'; echo ' <span style="border:0px;"><img border="0px" class="reflect" src="'.$data->path.'" width="100" …

Member Avatar for davy_yg
0
141
Member Avatar for emailcrombiez

I have a pretty simple question about RewriteRule. I am using the isset($_GET['p']) function to call pages into my index.html so when you click on a page the address in the address bar appears like this: [CODE]http://site.com/?p=contact[/CODE] I would like to get rid of the ?p= in front of the …

Member Avatar for emailcrombiez
0
116
Member Avatar for ghostdog_alex

Hello, I have a newoffer php page wich has a form for inserting new data in a mysql database. When the page newoffer.php is opened, a new record will insert with the values NULL. When the form is completed, the record will update with the new information. But if the …

Member Avatar for ghostdog_alex
0
108
Member Avatar for maxelcat

Hi All I am sure this is easy, but I can't make it work I have two variable $sectionID and $categoryID. There are a whole pile of conditions that these could have but I want to pick out two: when $sectionID==4 and $catergory!=21 and $category is !=27 How do I …

Member Avatar for maxelcat
0
94

The End.