39,316 Topics

Member Avatar for
Member Avatar for andrewliu

Hello, I got my search engine working and it does show the number of results including the number of pages it should have. But I'm having trouble outputting the results when I click next. When I click the next page it doesn't show any results. [code]<?PHP global $search_term; global $location_term; …

Member Avatar for andrewliu
0
290
Member Avatar for hinfeyg2

Hi all, So I would like a else statement that would go like this: <?php if ($image=="none") echo "no image"; else <img src="../images/<?php echo $image; ?>"> ; ?> Obviously this does not work. Any suggestions on how to get it to work? So if $image's value is 'none' then it …

Member Avatar for hinfeyg2
0
67
Member Avatar for eefh01

Hi, I have been breaking my head to solve this. May be this is very simple. I am trying to convert date value to string and to merge with another string. [CODE] $dt=$_POST['formdate']; //$dt is in format of Y-m-d $msg = "The date entered is ".$dt; echo $msg; [/CODE] But …

Member Avatar for eefh01
0
103
Member Avatar for ultimatebuster

This script is something i wrote during work, as I often need to do this (concatenate strings via multiple lines so it's clearer). Hopefully you guys like it.

Member Avatar for TrustyTony
0
183
Member Avatar for mpc123

I have this code part of a bigger table with different field names being echoed. [code=php] echo "<tr><td>"; echo $row['car']; echo "</td><td>"; echo $row['caravan']; echo "</td><td>"; [/code] I need 2 pieces of help please. I want to add an image of that car, the image is in a folder on …

Member Avatar for MooGeek
0
120
Member Avatar for ceeandcee

I am working on a Hockey Pool stat project. My PPG column is a calculation that divides PTS by GP. This works fine for anyone that has played a game. However, in the case of Rookies or the very beginning of the season the GP number is 0. As such, …

Member Avatar for ceeandcee
0
194
Member Avatar for redbeta99

I'm rather new to the whole PHP world and I know how to get a form (like an application) to send to an email when the Submit button is clicked, my question is. Is it possible to have it be submitted as a forum topic? So others can view it …

Member Avatar for ﻼim
0
140
Member Avatar for Rishikeshan

I am getting so much errors in php. I couldn't understand why. I re-checked all code but I am getting strange errors. The code below is provided to you under mit/x11 license for modification and distribution. ALL DERIVATIVES ARE WELCOME! :) Here is the code: [code=php] <html><head><link href="style.css" rel="stylesheet" type="text/css" …

Member Avatar for pritaeas
0
147
Member Avatar for Mike516

I have a pagination script but currently it echos out all the page numbers which is well over 1000, Can anyone tell me how I would make it like 1 2 3 .... 1000.. Like vb has it.

Member Avatar for Mike516
0
129
Member Avatar for u8sand

This may seems like a lame question but I have yet to find something online helping me with my problem. Many websites you go to (excluding this one) instead of putting bla.php?id=2 they will have a url that looks like its in a folder or something like: /bla/2 An example …

Member Avatar for pritaeas
0
100
Member Avatar for dragonheart

HI, in my project, i have a table 'Orders' with orders submitted, where some have already completed and others are pending,,, The status of the order is denoted by a status ('completed' / 'pending') My problem is this,, I need to display the orders separately in two different sections in …

Member Avatar for ﻼim
0
82
Member Avatar for nick3592

Hi i have recently discovered that my site was on some one elses website, i have checked his source code so but it wasnt through iframes so it must be through server side technology. i was wondering if theres a way to block this from happening.

Member Avatar for almostbob
0
114
Member Avatar for sam023

Hello Friends.. i have 2 folder in root directory DEMO1 and DEMO2 containing same kind of files. when i login in DEMO1 through localhost/demo1/index.php and it will direct me to welcome.php and after login when i change demo1 to demo2 from address bar.. I Still remain in SESSION or welcome …

Member Avatar for ﻼim
0
159
Member Avatar for lwaterfo

Hi, I have a php code that lists the contents of one of the tables in my database. At the bottom of the listing, there is code that takes you to the next 10 results. Problem is, when I test it out, I am being redirected to a comcast search …

Member Avatar for MooGeek
0
112
Member Avatar for sjeggels

Hi everyone. I am seeking help to display my query result (user list) into several pages. The code below retrieves user details successfully like a picture, accommodation name, address and a clickable link to a profile page related to specific details of user. This page is my users_list.php which displays …

Member Avatar for benjaminFowl87
0
107
Member Avatar for |DarkBerzerk™|

Dear Friends, I am not expert in php, but i am trying to make website easy to edit with its own cPanel i tryed this basic code to get the id of the page from the link and show the contents of the file.. and its working good..but how i …

Member Avatar for |DarkBerzerk™|
0
126
Member Avatar for eagled2

Hello. I am currently working on a website to post some articles I write for my friends. The problem I am currently having is with a dynamic redirect. I have a dropdown list that is populated dynamically from a mysql database. That part is working fine but I can't get …

Member Avatar for MooGeek
0
205
Member Avatar for CNIDog

I cannot get IE to cooperate with displaying an embedded Windows Media Player on a web page. The [icode]<embed>[/icode] tag works for other browsers, but I am having no luck with IE. I am running the code within a Joomla! module on the Gantry Zephyr template. The following code snippet …

0
165
Member Avatar for arthurav

I administrate a database with 3 main tables for a training company: course providers, lecturers and graduates. I have to create a database admininstration page with insertion, modification and search features. I am using php with mysql. I wanted everything to happen in the index.php (do not know if this …

Member Avatar for nkmswot
0
128
Member Avatar for digital-ether

A very simple MySQL database class. [B]Usage:[/B] [CODE]// connect $config = array( 'host' => $host, 'user' => $user, 'password' => $password, 'database' => $database); $DB = Database_MySQL::getInstance($config); // set query $DB->query("select * from table1 where col1 = %d and col2 = '%s' LIMIT 1", 5, 'a'); // get rows $rows …

Member Avatar for benjaminFowl87
0
229
Member Avatar for chiyankarthi

hi, How to make changing selection of radiobuttons respectively on dropdown menu selection with example in javascript... thank you, regards by, karthick.s

Member Avatar for ApocDen
0
99
Member Avatar for Silvershaft

Hey! Is it possible to make RSS feed of a site what requires login before you can see the contents of it? Thanks in advance! I remade this topic here in the php section as I was told, also if you know how to do that give me some thoughs …

Member Avatar for ApocDen
0
79
Member Avatar for benjaminFowl87

Hi there, i'm currently having trouble re-sorting an array based on a letter that a user has submitted. this is the associative array I want to sort. [CODE] $people = array( 0 => array( 'id' => 12345, 'name' => 'abi', ), 1 => array( 'id' => 12346, 'name' => 'ben', …

Member Avatar for benjaminFowl87
0
270
Member Avatar for wilch

Hi All, Can anyone please help me. I am trying to connect to a Pervasive SQL v9 database using a PHP script. I have been trying for hours to make a connection but all my browsers keep loading with no response from the server. The PHP code is as follows: …

Member Avatar for wilch
0
926
Member Avatar for cristi08

What it want from me? [CODE]<?php if (isset($_POST['submit']) && $_POST['submit'] == "Update") { $query_update = "UPDATE preturi SET preturi = '" . $_POST['preturi'] . "' WHERE username = '" . $_SESSION['user_logged'] . "' AND password = '" . $_SESSION['user_password'] ."'"; $result_update = mysql_query($query_update) or die(mysql_error()); $query = "SELECT * FROM …

Member Avatar for ﻼim
0
199
Member Avatar for hari.sarvothama

I have a drop-down list box which has to be populated from a database in mysql. I implemented the following code: [CODE] //DB Conn done here.. <td>College Name,id :</td> <td><select><option selected="selected">Choose a college...</option> <?php $query="SELECT nameid from college"; $result=mysql_query($query); while ($line = mysql_fetch_array($result)) { foreach ($line as $value) { echo …

Member Avatar for ﻼim
0
220
Member Avatar for Awah Mohamed

Hi . Watsup people People ... I need your help , i am new to php programming , all what i can do is to create an html template and write my code in side the template . So i am seeing in phpbb forums and some websites , there …

Member Avatar for ﻼim
0
90
Member Avatar for levsha

I'm trying to pass a value from a select input control on an HTML form. Here is the PHP of page1.php: session_start(); $_SESSION['invtype'] = $invtype; header("location: offerform_switch.php"); Here is the HTML: <select id="invtype" name="invtype"> <option value="0" selected="selected">Select type</option> <option value="product">PRODUCT</option> <option value="software">SOFTWARE</option> </select> This is offerform_switch.php: session_start(); echo $_SESSION['invtype']; switch …

Member Avatar for levsha
0
574
Member Avatar for sami.asanga

Hi, Im struggling to do a function like this.In the admin panel of my site,there is an option for the admin to select multiple orders using check boxes and marked them as accepted.And I need to update the product table at the same time according to the product quantities of …

Member Avatar for ﻼim
0
105
Member Avatar for doctorphp

Hi everyone. I am trying to make an if statment that will show text saying create an album if the user has no albums but if they have one or more albums then it will show their albums. Now I have sorted out everything but when I get to the …

Member Avatar for ﻼim
0
124

The End.