39,320 Topics

Member Avatar for
Member Avatar for wolveirne2005

This is whole system that's already built. The search functions need this kind of variable search[account_number] . Otherwise he result does not show up. How can I pass the value? [CODE] <div align="center"><br />Search:<br /> <select name="searchby" id="droplist"> <option name="search[company_name]">COMPANY NAME</option> <option name="search[account_number]">ACCOUNT NUMBER</option> <option value="all">SHOW ALL</option> </select> <br/ ><br …

Member Avatar for wolveirne2005
0
116
Member Avatar for Coderunner

I know that you can count the number of lines with [CODE]$record = file($data_file); rsort($record); $total_lines = count($record); echo $total_lines;[/CODE] Is there a way to count only lines with certain words and get a total? for example I have a flat file with |~|opel|~|red|~|doors 4|~| |~|opel|~|red|~|doors 2|~| |~|opel|~|blue|~|doors 4|~| |~|opel|~|white|~|doors …

Member Avatar for Coderunner
0
129
Member Avatar for ALFRED5063

[CODE]<?php //This checks to see if there is a page number. If not, it will set it to page 1 if(isset($_GET['pagenum'])) { $pagenum = $_GET['pagenum']; } else { $pagenum = 1; } $var1 = 'gene_name'; // When user click the submit button if(isset($_POST['submit'])) { //if(isset($_GET['page'])) //{ if(preg_match("/^[a-zA-Z0-9]+$/", $_POST['keyword'])) { $keyword=$_REQUEST['keyword']; …

Member Avatar for diafol
0
79
Member Avatar for pfmk2

Let me start by lettin Ya know I've attempted to see if what I need is in other posts, but i either didn't search the right parameters or just didn't know what i was looking at.. I know enough php to collect data and that's about it :-( I have …

Member Avatar for pfmk2
0
142
Member Avatar for Matthew N.

Hello, today I'm going to show you how to make a PHP Password Generator. There are other ways of doing this, but I'm going to show you the way I use. Feel free to add your way too! Ok, let's get started. Make a new directory to store your files …

Member Avatar for diafol
0
149
Member Avatar for n3xtgen

I want to create a compare sort of page. I currently have two tables with the information, but want it to be on table or join both together. The first row would show Name of brand, second would show cost, etc... I am grabbing the values of selected checkboxs and …

Member Avatar for diafol
0
119
Member Avatar for babydol

Hi i m creating a small web application that allows a user to select multiple options from a list box.The problem is i cannot write that information to the database. I have two forms: one to get information from the user and another to write that info to the database.The …

Member Avatar for wonderlhily
0
2K
Member Avatar for jakizak

Hi everyone, Having a little difficulty getting anything from this. The code appears to me to be correct, then again I have been looking at it for hours, so it is possible there could be a mistake...... :/ Anyway, the code seems sound, should let me login and instead gets …

Member Avatar for jakizak
0
180
Member Avatar for DaveyMoyes

Hi all, I need someone to help me out, I am trying to call a .php file with php variables - [code] include('Code.php?buyer='.$lastid.'&oid='.$oid.'&bid='.$bid.''); [/code] when i edit the url myself using values from the database it works like it should do. but when I am calling the php file using …

Member Avatar for DaveyMoyes
0
161
Member Avatar for ebanbury

Hi Can anyone see what is wrong with this: [CODE]<?php echo date_format($row_rs_propdetails['add_date'],'Y-m-d'); ?>[/CODE] The error message I get is: Warning: date_format() expects parameter 1 to be DateTime, Any help would be much appreciated. Basically wanting to bring back the date in add_date column, but just the y-m-d with no time. …

Member Avatar for mschroeder
0
215
Member Avatar for gamestoenjoy

Hi, I have two php pages. On the first php page called process.php I have the following code: [CODE]setcookie('username', 'dan', time() + 2592000 , '/');[/CODE] And when I use the following code in this page: [CODE]$username = $_COOKIE['username']; if (isset($username)) { echo $username;[/CODE] Everything works fine, and I get the …

Member Avatar for diafol
0
228
Member Avatar for Joe Shmoe

I am having a problem with flash in firefox 7. I am not sure this is the right forum, but someone can move it if they see fit. Anyway, say I write some embed code like this: [CODE] <html> <body> <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/ cabs/flash/swflash.cab#version=6,0,40,0" width="800" height="600" id="mymoviename"> <param name="movie" value="Adv1.swf" …

Member Avatar for jakizak
0
200
Member Avatar for 54uydf

I'm trying to pass a word that has the char ' or " in the middle of it. it's one of the fields in a form, so when I submit, the next page gets only the part of the word before the " or ' char. I tried using mysql_real_escape_string() …

Member Avatar for 54uydf
0
133
Member Avatar for Cupidvogel

Hi, I am learning Python, and I was just wondering whether Python can achieve everything PHP can. I don't know PHP, but I know it's a server side scripting language, and it is often embedded in HTML pages. Can Python be used in the same manner, i.e. embedded in HTML …

Member Avatar for Cupidvogel
0
209
Member Avatar for phoenix416

Hey guys, Can anyone please help me with the code, I am trying to find the error, but no luck. Everything is coded properly. Server is running on php 5.3.8, MySQL 5.1 When I try to execute my php file, it gives me an error : Parse error: syntax error, …

Member Avatar for phoenix416
0
1K
Member Avatar for LRNPHP

Hi There, MySQL is not my strong point so any guidance or advice will be greatly appreciated. I want to know what's the best way of linking multiple MySQL tables together. I have +-10 tables that will interact with each other. Example Tables : users, logins, communication, sightings etc. When …

Member Avatar for LRNPHP
0
172
Member Avatar for vanpersie

Hi Generaly what skills that I should know in PHP to be a candidate to work in a company In other words I have studied the basics of PHP what you advise me to know more. thank you.

Member Avatar for chrishea
0
111
Member Avatar for bsewell

Hi all, I have some content which I would like to limit to 9 per page in a table. I haven't done the table code yet, and rather concentrate on trying to get the filter working. When I try to enter the URL of index.php, where page=2 or without a …

Member Avatar for Mark_k
0
889
Member Avatar for johnbo100

Hi all, So I have 2 files where one is an ajax script that calls another file that does some mysql database query. What is the best way to echo out multiple recordset rows to ajax?. Please see the source code below: ajax code: [CODE] <form name="form1" method="post"> Please enter …

Member Avatar for johnbo100
0
2K
Member Avatar for davy_yg

tampil_produk.php [CODE] <?php include "includes/koneksi.php"; echo "<table>"; $sql=mysql_query("select * from produk order by id_produk desc"); while ($r=mysql_fetch_array($sql)){ $harga = number_format($r[harga],0,",","."); $deskripsi = nl2br($r[deskripsi]); // membuat paragraf $isi = substr($deskripsi,0,220); // ambil sebanyak 220 karakter $isi = substr($deskripsi,0,strrpos($isi," ")); // potong per spasi kalimat echo "<tr><td><img src='foto_produk/small_$r[gambar]' align=left hspace=20 border=0></td><td><b>$r[nama_produk]</b> <br …

Member Avatar for pzuurveen
0
160
Member Avatar for davy_yg

media.php [CODE] <?php session_start(); if (empty($_SESSION[username]) AND empty($_SESSION[passuser])){ echo "<link href='style.css' rel='stylesheet' type='text/css'> <center>Untuk mengakses modul, Anda harus login <br>"; echo "<a href=index.php><b>LOGIN</b></a></center>"; } else{ ?> [/CODE] Notice: Use of undefined constant username - assumed 'username' in C:\xampp\htdocs\SourceCodePHP\bab 4\toko\adminweb\media.php on line 4 Notice: Use of undefined constant passuser - assumed …

Member Avatar for mschroeder
0
2K
Member Avatar for prvnkmr194

Hello Actually I have to print Report from php and iam using this code [CODE] <?php $handle = printer_open("Microsoft XPS Document Writer"); $handle = printer_open(); ?> [/CODE] bt iam getting following error Fatal error: Call to undefined function printer_open() in C:\xampp\htdocs\praveen\printer.php on line 2 what i have to do next …

Member Avatar for phoenix_2000
0
2K
Member Avatar for mathewmoozh

I want to integrate the mapquest in my website.I need to integrate the Get directions service from the mapquest.I got a map showing a route between two places.The points were given as static.Anyone can help me with sample codes or just with tutorials.Any help is appreciated.Thanks in advance.

Member Avatar for Brian@MQ
0
125
Member Avatar for reco21

What im doing is i have a form with 4 inputs like below. and im using the post method to store the fields values so i can send them to the database. what i neeed is each input to be put into a separate row in a databases table. also …

Member Avatar for reco21
0
142
Member Avatar for aldm

Hi, I wonder which is best tool for synhronise localhost project with the same project on shared hosting. For example, when I run that tool, my localhost project should get all files that doesn't contain from shared hosting (newest added images for news, organizations etc). I need something like SVN, …

Member Avatar for aldm
0
364
Member Avatar for jmvazq

Hello there! :) For the last couple of days, I've been working on a new project. The idea is to create a virtual adoptable pets system integrated with my forums. While I have much of it covered already, I am new to dynamic images and the GD library. So I …

Member Avatar for ashishzakar
0
675
Member Avatar for Stefano Mtangoo

I have decided when I have free of free time I will be playing around small php editor. I was wondering where I can get a list of keyword for mentioned languages, preferably in csv or like format Thanks! [B]EDIT:[/B] I forgot CSS

Member Avatar for Stefano Mtangoo
0
142
Member Avatar for Dumb Fish

Hi, i got one question to ask,, i had been tried many times still cannot generate correct output. Question: i got one table like this. +-----+------+ |Month|Salary| +-----+------+ |jan | 1000 | +-----+------+ - table border is white color but i wan like become this +-----+------+ Month Salary +-----+------+ jan …

Member Avatar for lps
-1
180
Member Avatar for raju_boini525

Hi all, I am working on affiliate network project. it is having flash banners , for that we create dynamic flash empty .swf file , we pass the 3 parameters, they are 1.inner is a dynamic .swf file to load in my empty .swf. 2. url is a redirect url …

Member Avatar for raju_boini525
0
183
Member Avatar for ken.atienza

$user['username'] = name of the table producttotal 500 6105 131 [CODE]$ordertotal = mysql_query("SELECT SUM(producttotal) FROM ".$user['username'].""); echo "Order total: ".$ordertotal;[/CODE] why is the result "Order total: Resource id #7". I wanted to sum all the values below producttotal column. Thanks in advance.

Member Avatar for sun-tzu
0
98

The End.