39,326 Topics

Member Avatar for
Member Avatar for aadebayo

Hello I have managed to get the pdf working. There is a problem though, I need 2 records to be displayed on every row, instead of just one. In getting 2 records to display, I created a table with a row and 2 columns, then using a counter variable to …

0
76
Member Avatar for lordx78

auth.php [code=php] <?php // start session session_start(); // convert username and password from _POST or _SESSION if($_POST){ $_SESSION['username']=$_POST['username']; $_SESSION['password']=$_POST['password']; } // query for a user/pass match $result = mysql_query("SELECT * FROM users WHERE username='" . $_SESSION['username'] . "' and password='" . $_SESSION['password'] . "'"); // retrieve number of rows resulted …

Member Avatar for markashworth
0
4K
Member Avatar for rimilbadal

i have a page that has a textarea (id="elm1") i post this value to the same page when a submit page is clicked to send the value of the textarea in a html mail the textarea will contain html code but when i use it only the text comes in …

Member Avatar for rimilbadal
0
930
Member Avatar for rse

Hello, I managed starting a session and store some data when a user login to the system. The user can edit his/her prifile by clicking on edit, then some of the data will show in the edit form. Now I have the form with empty fields and I need to …

Member Avatar for rse
0
139
Member Avatar for jaycastr

Hey Guys, My problem is that i want to get a random number given a specific range. But it the range is a small decimal or float it rounds up. Here is what i have so far [CODE] $xl=$row['x_lower']; $xu=$row['x_upper']; if(isset($xl) && isset($xu)) { $x = rand($xl,$xu); echo $x; } …

Member Avatar for diafol
0
107
Member Avatar for DarkWolffe

I have an [URL="http://pantheonarts.host22.com/xml/feed.xml"]RSS feed[/URL] set up using XML on the website I've developed for [URL="http://pantheonarts.host22.com/"]Pantheon Arts Unlimited[/URL]. I'm still fairly new to PHP and MySQL, so I find myself often jumping to various forums looking for answers for what are usually fairly obvious questions. My newest problem, however, I've …

Member Avatar for DarkWolffe
0
189
Member Avatar for aadebayo

Hello I have got a code below that works perfectly in generating html via PHP. However, I will like to export the results into PDF or Micorsoft word, but I am struggling. Please can anybody point me in the right direction [CODE]// Get house group details for this member //$memberRecord …

Member Avatar for aadebayo
0
119
Member Avatar for stanley87

May i know how to matching 2 array keywords? e.g I have 1st array keyword like kfc,mcd,fastfood,etc 2st array keyword like kfc,mcd If i want to get the matching keywords among these 2 arrays, how to i write the matching code? Thank advance for your help.

Member Avatar for stanley87
0
188
Member Avatar for DarkBerzerk

I need Video Gallery With cPanel, i searched all over the World Wide Web and found nothing xD doesnt matter free or for money, im ready to pay for it, Video Gallery With cPanel to upload and edit and those things. :/

Member Avatar for diafol
0
109
Member Avatar for twitah

[CODE]<?php include('header.php'); foreach($_POST as $key => $value) { $protectie[$key] = filter($value); }if(isset($_POST['submit']) && $_POST['type'] == "facebook") { $num1 = mysql_query("SELECT * FROM `facebook` WHERE `facebook`='{$protectie['url']}'"); $num = mysql_num_rows($num1); if($num > 0){ $mesaj = "<div class=\"msg\"><div class=\"error\">Facebook Pages has been added before!</div></div>"; }else{ mysql_query("INSERT INTO `facebook` (user, facebook, title, points, cpc) …

Member Avatar for diafol
0
152
Member Avatar for bibiki

Hey there, I am trying to build a small survey for a homework assignment. So, I have the following code: [CODE] $con = mysql_connect("localhost","user", "mypassword"); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("mydatabase", $con); $slq = "INSERT INTO results VALUES('', '', '', '', '', '', '', '', …

Member Avatar for bibiki
0
151
Member Avatar for waveydaveywaves

I have literally been banging my head on my keyboard out of frustration. I'm trying to display PHP sessions as values in my php form, but it's not going so well. here's what I have: [CODE]<?php session_start();?><html> <head> <title>Create An Event</title> <style> label {float: left; width: 100px;} input[type=text],textarea {width: 210px;} …

Member Avatar for diafol
0
225
Member Avatar for hotice47

Hi i have a form which is used to post jobs. i have multiple checkboxs for location's i need a way in which i can save all the values which are checked into single table or two . right now i have a table called jobs in which all the …

Member Avatar for diafol
0
134
Member Avatar for crishlay

Hi I want to make website like [url]www.polyvore.com[/url] can anyone know me how i can make clone of this website. What tools or third party tools i have to use ?

Member Avatar for diafol
0
79
Member Avatar for daniahmed

Hi, I want to create a typical form in PHP pls help in coding 1. How to sent id in link and get that in in HiddenField. 2. How to get value in array from text box and then display in table. 3. save all the data in MySQL data …

Member Avatar for diafol
0
62
Member Avatar for cmps

Hello, Am not new to PHP but new to OOP, I have watched lot of tutorials for oop and as I saw, class is almost a new language!! To be a pro programmer, I should learn existing class attributes or I should create my own?? example of default class attribute: …

Member Avatar for cmps
0
112
Member Avatar for abelingaw

I'm having problem with my login php files. I don't know if it is in the passing of values from inputboxes or connection with my database records. log-in code: [CODE] <td align="right" width="130px"> Username: </td> <td><input type="text" size="40" id="username" class="inputbox" /></td> </tr> <tr> <td align="right"> Password: </td> <td><input type="password" size="40" …

Member Avatar for raphie
0
223
Member Avatar for morrisproject

Hi, My layout.php form has many buttons it and a current date field, which all have a unique id/name. when the button is clicked it uses the id and date on the new.php, so when the record is saved it is saved relating to the id and date and other …

Member Avatar for raphie
0
3K
Member Avatar for srdva59

hi, i creating my reports using the ireport and that works very fine. now i looking for a way to creat the same report online for example using a flash report designer. anyone know a solution for creat/design a report online? thanks for your help :)

0
51
Member Avatar for abelingaw

I can't figure out what is wrong since my codes are correct. [CODE] $host="localhost"; $username=""; $password=""; $db_name="database"; $tbl_name="members"; mysql_connect("$host", "$username", "$password")or die("cannot connect"); mysql_select_db("$db_name")or die("Cannot Find Database"); [/CODE] Keeps on saying the die statement. I'm using WAMP, and yes. my database name is "database" and table is name is "member". …

Member Avatar for abelingaw
0
124
Member Avatar for jonnyboy12

Hello all. I am working with some code like this. [CODE] echo"<div style='background-image: url(boxshadow2small.jpg);text-align:center; height: 266px; width: 225px; '></div>"; [/CODE] I wanted to be able to control the size of this div with php conditions. I thaught i could do it like this, but its not working. [CODE] $someVariable = …

Member Avatar for jonnyboy12
0
120
Member Avatar for jaycastr

Hey Guys I am writing a application in PHP. One feature is that the admin can create a question for a test in the application. I want to use the users input to create an xml file and save the xml file in mysql database for later use. This is …

Member Avatar for jaycastr
0
199
Member Avatar for showman13

Good Morning All, I am doing a membership site for a client and would like to use SSl, but know absolutely nothing about it... My primary concern is whether there are any specific programming differences required in my scripts to accommodate the https as opposed to http? I use about …

Member Avatar for showman13
0
110
Member Avatar for naraza

i want to run my php process on back hand so i use scheduler task to run my php file in window i use this in run on scheduler task C:\Xampp\php\php.exe -f C:\Xampp\htdocs\my_script.php now i want that i want to stop my php.exe with php page locally or live page …

Member Avatar for HITMANOF44th
0
110
Member Avatar for jacob21

Hi i am new to php/ajax. I have a drop down list.if i select 1st option,it displays one upload file option. if select 2nd option,it display 3 upload box if select 3 option ,it dispaly 6 upload box. I did this using ajax & displaying it in a div. What …

Member Avatar for cereal
0
185
Member Avatar for davy_yg

product_preview.php [CODE] // EDIT / DELETE MODE $kategori = isset($_POST['kategori']) ? $_POST['kategori'] : ''; if(!empty($_POST['id']) && !empty($_POST['mode'])){ if(!$_POST['mode'] == 'edit'){ $output = mysql_query("SELECT * FROM kategori WHERE id=".$_POST['id']) or die(mysql_error()); $data = mysql_fetch_array($output); $kategori = $data['nama_kategori']; echo $kategori; } elseif(!$_POST['mode'] == 'delete'){ $output = mysql_query("DELETE * FROM produk WHERE id=".$_POST['id']) …

Member Avatar for simplypixie
0
78
Member Avatar for tibormarias

Hello Everyone, I'm quiet new to PHP, and I'm making a news portal practicing the language. I have an index page where the news are posted in an order-> [url]www.fundis.hu/index.php[/url] I have a results page, where is a search engine -> [url]www.fundis.hu/results.php[/url] In the index page I used dynamic links …

Member Avatar for tibormarias
0
186
Member Avatar for gunnerone

I have this code: [CODE] foreach( $_POST[ 'count' ] as $textBoxIndex => $textBoxValue ) { echo '<br />Textbox ' . $textBoxIndex . ' has value [' . $textBoxValue . ']'; } [/CODE] This loops through a series of text boxes with have been created with this: [CODE] <while($rowequipment = mysql_fetch_assoc($sqlequipment)) …

Member Avatar for Rynkadink
0
86
Member Avatar for davy_yg

I store date in product_edit.php form, here is part of the script: product_edit.php [CODE] if (isset($_POST['save'])){ $tgl_masuk = date("y-m-j"); if (empty($_POST['id'])){ $result = mysql_query("INSERT INTO produk(nama_produk, harga, deskripsi, tgl_masuk, gambar) VALUES('".$nama."','".$harga."','".$deskripsi."','".$tgl_masuk."','".$gambar."')"); } else{ $result = mysql_query("UPDATE produk SET nama_produk='".$nama_produk."', harga='".$harga."', deskripsi='".$deskripsi."', gambar='".$gambar."' WHERE id=".$_POST['id']); $result = mysql_query($sqlstr) or die(mysql_error()); //Jika …

Member Avatar for davy_yg
0
118
Member Avatar for abelingaw

Hi there. I'm having some problem in aligning my captcha image on a form. Here's the SS: [URL="http://imageshack.us/photo/my-images/33/captchab.jpg"]http://imageshack.us/photo/my-images/33/captchab.jpg[/URL] And here's my login code: [CODE] <html> <title>Log In</title> <style> .singleBorder{ border:1px #d6d6d6 solid; background-color:#f6f6f6; } .singleBorder td{ font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; color:#333333; } .singleBorder input,select{ border:1px #aaaacc solid; font-family:tahoma; …

Member Avatar for abelingaw
0
266

The End.