39,316 Topics

Member Avatar for
Member Avatar for maharrington

Hi, I've had a look through the forum(s), however, can't seem to find a solution to my issue (and I don't understand the PHP Manual). Basically, got a website linked to a database, trying to pull data from one table and display onto the website where appropriate. I have the …

Member Avatar for minitauros
0
226
Member Avatar for dina85

require("conn.php"); $sql = "select * from pemohon where kp_baru='$kp';"; $result = mysql_query($sql); while($row = mysql_fetch_array($result)) { if($row == TRUE) { echo $row['kp_baru']; // can display } else { echo "No KP tiada didalam pangkalan data."; // can't display } }

Member Avatar for dina85
0
154
Member Avatar for janicemurby

hya ive created a edit profile page for members to fill in and now i need that information to go to members profile page how do i do this ive tried several tutorials in youtube but get nowhere with them i dont need the register or login got that already …

Member Avatar for minitauros
0
196
Member Avatar for rubai

I have a problem want to be solved. I have three pages. page1.php, page2.php page1.php has a form with two text field. one text field is for name and another is for number. there is a submit button and a "next" button too. using session I want show given name …

Member Avatar for diafol
0
2K
Member Avatar for kakalahori

ok here is the login function from my class user which parent class is a Db connection file <?php require_once("DBConnection.php"); class User extends DBConnection { .... .... ... ... public function Login() { $sqlSelect = "select `UserName` from `user` where `UserName` = '$this->userName' and `Password` = '$this->password'"; $result = @mysql_query($sqlSelect, …

Member Avatar for diafol
0
215
Member Avatar for mjsmitten

I have some functions that returns nothing or some value (obvious), and also having a little trouble with the if and closing, is there a good way to do this? I want to return the value after checking if any of the strings are not empty. Actually it is a …

Member Avatar for diafol
0
164
Member Avatar for rubai

Hi Friends, I have 5 checkboxes. What I want is..... I want to check 3 checkboxes so other 2 will be unchecked. After clicking the next button a table will appear and checked checkboxes will show in one column and unchecked will be another column. Can you give any idea …

Member Avatar for minitauros
0
162
Member Avatar for dhani09

I'm using the following code for my paging on my script <?php $pn = 0; $result = mysql_query("SELECT * FROM tbl_product WHERE category = '$cat' ORDER BY id ASC "); $nr = mysql_num_rows($result); if (isset($_GET['pn'])) { // Get pn from URL vars if it is present $pn = $_GET['pn'];// filter …

Member Avatar for minitauros
0
122
Member Avatar for fheppell

I've got an upload script that generates some stuff in relation to uploads eg File foo.jpg uploaded succesfully<br /> File bar.tiff failed to upload! ... This is all part of a variable called `$message`. How could I pass this to another php script? Thanks for any help

Member Avatar for fheppell
0
198
Member Avatar for MrXortex

G'day, I created my own simple blog with some posts in it, the posts are stored in a folder called "posts" and there in .MD format. I want to put a search engine on my blog when they search anything that looks similar to any blog.. it should show the …

Member Avatar for MrXortex
0
195
Member Avatar for RoryGren

Hi All I'm sure I'm missing something very small - and embarrassing! I'm being lazy - I could have entered the data manually, but wanted to automate it. I have a small csv file containing swimming meets, dates and locations along the following lines: May-13;;;; 17;other;Level 1 Program 1;Arboretum; 24;other;All …

Member Avatar for RoryGren
0
244
Member Avatar for OsaMasw

Hello guys , how are you doing ? I want to create a unified search for many services I have, they are on multiple servers, and each one with its own database and contents. I've tried to connect to those database by using IP address but it refuse to connect …

Member Avatar for OsaMasw
0
114
Member Avatar for dina85

I need to use javascript so that when the one radio button is selected nothing happens but if the other one is (for example, Cheque) it will then validate the field (Cheque Number)..

Member Avatar for maharrington
-1
97
Member Avatar for gvsamrat
Member Avatar for minitauros
0
69
Member Avatar for zacharysr

I am trying to make a jquery/php chat and i append data to the chat box, but then when the jquery loop trys to get the .last() data it gets the one before the appended data causing it to append the same data over and over again. hHow would i …

Member Avatar for zacharysr
0
386
Member Avatar for geneh23

Hey everyone, So I did some more searching and I found a link that sort of helped me figure this thing out in a sense.. Here's the link https://developers.google.com/maps/articles/phpsqlajax_v3 . When I do all of what the site told me to do, it did give me a map but it …

Member Avatar for geneh23
0
368
Member Avatar for GlenRogers

Can someone have a look at some code for me? Here the problem. This is meant to delet an email address form a mysql table then alert the user this has been done. If the address does not exist then it alerts the user to that too. But even if …

Member Avatar for GlenRogers
0
211
Member Avatar for JACOBKELL

I need to convert mysql class of one script to make a support for sqlite,but problem is sqlite dont have username/password thing nor database select as well,which means how some parts need to be removed.If i would convert to mssql one search and replace probaly would do the job.There is …

Member Avatar for cereal
0
236
Member Avatar for martjojo1

Hey all, i'm working on some code and i've got a little problem. $my_file = 'file.php'; $newline = "<?php $root = '"$mylocation"/'; ?>"; file_put_contents($my_file, $newline); As you can see i want to post a line into a file.. The problem is, this file will output: <?php = 'your location'; ?> …

Member Avatar for martjojo1
0
132
Member Avatar for MasterHacker110

I am a noob at web programming. I am currently writing a test forum. People will be able to create accounts and then login. But my problem is I dont know how a login script works. So I came up with this idea: 1): Every time an user creates an …

Member Avatar for MasterHacker110
0
190
Member Avatar for MasterHacker110

I am trying to create a file that with some values the user entered in the webpage. But my code doesnt create a file. And I have other code that is more or less similar that creates the file: Here is my code: <?php echo "<p> In order to create …

Member Avatar for minitauros
0
209
Member Avatar for MasterHacker110

After finding out that php need to be run through a server and not as a normal .html file, I need to send an email to the "person" to make an appointment. Here is my code: <?php echo "<form method='post' action='mailform.php'> Email: <input name='email' type='text'><br> Subject: <input name='subject' type='text'><br> Message:<br> …

Member Avatar for MasterHacker110
0
301
Member Avatar for Gabe13

Okay so i have to make a signup form and i have pretty much everything finished but i keep getting this error **Warning: mysql_num_rows() expects parameter 1 to be resource**. I keep getting this error on my **$checkUserQuery** & **$checkEmailQuery** and don't know how to fix it. Any Suggestions? <?php …

Member Avatar for broj1
0
236
Member Avatar for dina85

how to make javascript validation onsubmit go first before onclick submit button <form name="daftar" method="post" action="daftar.php" onsubmit="return checkscript()"> <input type="submit" name="Daftar" value="Daftar" id="submit" onClick="return tq()"/> and my js: function checkscript() { if (document.daftar.terms.checked == false) { alert('Sila pastikan anda telah check ruangan persetujuan, untuk menandakan anda setuju dengan syarat-syarat kami.'); …

Member Avatar for dina85
0
100
Member Avatar for SirMahlon

<!DOCTYPE html> <html lang="en"> <head> <title>PHP Test</title> </head> <body> <p>This is an HTML line <p> <?php echo “This is a PHP line”?>;`` phpinfo(); ?> </body></html> am newbie please help me.

Member Avatar for almostbob
0
478
Member Avatar for bsewell

Hi, I would have a subdomain on domain A. Basicly I want to forward this to a particular page on domain B. But it's slightly complicated- I want to mask this so it looks like domain A hosts the actual page than domain B. Eg. Domain A http://something.domainA.com Domain B …

Member Avatar for bsewell
0
786
Member Avatar for chrispitt
Member Avatar for mr.unknown

i want to install php but i don'y know how plz give me guide and all the things that i need plz provide complete instalation here???

Member Avatar for jkon
0
255
Member Avatar for phfilly

Hi! I have a problem with the unlink() php function. What I try to do is to delete a certain file in a directory. Now the function works fine. But when I call it then it deletes ALL the files inside of that directory. What I want is for it …

Member Avatar for phfilly
0
2K
Member Avatar for dina85

after press submit button to upload the image, the information will display at new window, i need the information will be display below submit button. my code: <?php if($_GET['action'] == "upload") { ?> <div id="upload"> <br/><br/> <form action="upload_image.php?action=upload" method="post" enctype="multipart/form-data"> <label for="file">Gambar yang ingin dimuat naik:</label> <input type="file" name="file" id="file"><br><br/> …

Member Avatar for minitauros
0
260

The End.