39,323 Topics

Member Avatar for
Member Avatar for ceteris

[B]i have create a login page and registration how can i view table from database to php output and to change password.[/B] [B]heres my login.php[/B] [CODE]<?php session_start(); $username= $_POST['username']; $password= $_POST['password']; $password=md5($password); if($username&&$password) { $connect=mysql_connect("localhost","root","") or die("Coldn't connect"); mysql_select_db("phplogin") or die("Couldn't find db"); $query=mysql_query("SELECT * from users WHERE username='$username'"); $numrows=mysql_num_rows($query); …

Member Avatar for diafol
0
166
Member Avatar for issaru07

can i check is there any wrong with this? it prompted me error in line 5 Parse error: syntax error, unexpected T_IF [CODE] <?php session_start() if (!(isset($_SESSION['email']) && $_SESSION['email'] != '')) { header ("Location: login.php"); } [/CODE]

Member Avatar for issaru07
0
207
Member Avatar for swebdizajn

I have a question for all you experts who have had similar experiences as me: Is there a solution for this malware on the site? An infection on the Linux server, where we're constantly in the Wordpress script generates files of type wb 5433712.php antimalware program is a malware called …

Member Avatar for Habitual
0
1K
Member Avatar for jacob21

hw i used ancho tag in php function and what i do to visible = false a anchor tag when it does not find any data record from database. plz help me i am new in php

Member Avatar for broj1
0
135
Member Avatar for asif49

For a small assignment, I have to write a function which takes in one integer as an input and should return the multipled total of everything before that number. For example; [CODE] getTotal(9); [/CODE] It should do and return the following: 9*8*7*6*5*4*3*2*1 = 3628800 Seems easy enough, right? Well. We've …

Member Avatar for asif49
0
76
Member Avatar for sam230

i was just wondering how to upload heavy video file of any format to the server.. is it necessary to convert every video file to flv to play on browser.?? thanks

Member Avatar for diafol
0
71
Member Avatar for danielbala

Hi.. This is my loginhome.php code i done with form fields validation..but im not getting the output.. please help me... [CODE] <?php //Include database connection details require_once('config.php'); if(isset($_POST['emp_role']) && !empty($_POST['emp_role'])){ $emp_role=$_POST['emp_role']; //Array to store validation errors $errmsg_arr = array(); //Validation error flag $errflag = false; //Function to sanitize values received …

Member Avatar for stoopkid
0
110
Member Avatar for Martin C++

Hello, I would like to know how to call a theme in a custom made CMS. I have some very primitive bootstrapping done (I dont really know how to do it). I have finished the functions I need and I have actually finished the theme aswell, the only problem is …

Member Avatar for Martin C++
0
82
Member Avatar for AnkitGuru

Hi, I have this program that would upload files from the client to the server, Now I want to validate the filesize before uploading it into the server.. How can I create this kind of validation? Also I need to track the progress of the upload. Thanks.

Member Avatar for diafol
0
79
Member Avatar for Sabyre

I'm working on an auction script for a client. This portion of the script pulls all the open auctions from the database and allows bidding, but they only want bidding on auction with 30 seconds left until it ends. [CODE] $query = "select * from DSI_auctions WHERE closed='0' AND suspended='0' …

Member Avatar for pritaeas
0
143
Member Avatar for MattWhitehead__

My PHP contact form doesn't send an email to my email address when a form is submitted. This is where the form is located;- [url]http://www.mattwhitehead.co.uk/contact2.htm[/url] Any help would be great, also I'm very new to PHP. Thanks, Matt

Member Avatar for MattWhitehead__
0
624
Member Avatar for jhonnyboy

hello everyone i am currently working on my website. I wanted to make a php script for registering users. So that they may log in, log out, register, and access member only functions. I found a good tutorial online but since im fairly new to php and have never worked …

Member Avatar for aruna_juice
0
1K
Member Avatar for trivikrama

Hi all, I have to design a form where User can fill some details. After he submits the form it should be viewed for final confirmation. If everything is fine, then there should be two options. Save as PDF and Send mail. if save as pdf -> the submitted page …

Member Avatar for trivikrama
0
269
Member Avatar for jacob21

i am making a page in which to button is used one is previous and another is next button i dont know about its code we used.so plz help me about this problem thanks and regards

Member Avatar for jacob21
0
40
Member Avatar for tamildinesh

i want to send the mail , when product got expire from before and ondate and after day, in php i was used datediff mysql function with php, but if product expire date comes like 31-1-2012 , the differ value is not suit for my coding , plz help how …

0
213
Member Avatar for Brewsky

Hi, first am a noob at PHP and IMAP.. So please bear with me... I am trying to create a PHP page that will check an IMAP server for any unseen messages and download an attachment (the attachment will always be the same audio file format), then attach the file …

Member Avatar for vijaykavin10
0
4K
Member Avatar for vijayram

Hi everybody This is the my header page coding.onmouseover display url content. <div id="layout-title"><a href="/"><img src="/images/layout/mainpage_title.png" /></a></div> <div class="float-right text-align-right"> <a id="main_menu" href="/images/popup/main_menu.png"><img src="/images/popup/main_menu_small.png" alt="" style="width: 50px;"/></a><br /> <?php if ($countInvitationLayer): ?><a href="<?php echo url_for("@personal_notification") ?>">Requests (<?php echo $countInvitationLayer ?>)</a><br /><?php endif ?> <?php if ($countEventInvitation): ?><a href="<?php echo url_for("@personal_notification")?>">Invitations …

0
61
Member Avatar for mohamedasif18

Hello everyone ! I need a code that displays my URL friendly, Normally, URL : [url]www.domain.com/externalpage.php?page=12[/url] Now i need my URL Like this [url]www.domain.com/externalpage/pageid/[/url] Is there any way for this ??:)

Member Avatar for mohamedasif18
0
367
Member Avatar for HasNor

Hi, actually i've tried the simple checkbox code but it doesn't work. My point is want to insert the selected checkbox value into the same database row. Example : one,three --> if there are selected. This is my code. Anybody can help me? [CODE] <?php include 'connection/db_connect.php'; if(isset($one)) $val1=$one.";"; else …

Member Avatar for Atli
0
362
Member Avatar for ARKaMAN

Alright I have a MYSQL database with data for Clients. I am displaying this Client info on a HTML Table. I want the last 2 Table Cells to have EDIT and DELETE Functions. I am almost there I just need a final solution to linking them together and getting them …

Member Avatar for Fest3er
0
718
Member Avatar for phorce

Hello hope that you can help. Basically, I'm making a site that uses a header file and then for each page, include the header and set the title.. It's easy using procedural PHP but I want to do it using OO. Here is the problem: Page.php (class) <?php class Page …

Member Avatar for ctaylo21
0
104
Member Avatar for labhijitp

I have written a small query. I want to create link on my php site which on click will run this script automatically and export results to an excel file. I dont want to create a page to view the results. Any help to this new bie will be very …

Member Avatar for leardas
0
1K
Member Avatar for rickbolt

Right I'm new to the whole web design so I thought I'd make an account on here to get some help. What I am wanting to do is have a songs name Artist - Song name to be linked so that when it is pressed then youtube loads in a …

Member Avatar for rickbolt
0
112
Member Avatar for nats01282

Hello, im after merging two strings togther from a for each loop. here is what i have [CODE] foreach($html->find('div[class=product_description]') as $post) { $desc_html_puller = preg_replace("/<.*?>/", "", $post); echo $post } [/CODE] that does the trick but i want to use the $post variable out of the for each loop, but …

Member Avatar for nats01282
0
88
Member Avatar for skiturtles

I am a novice at PHP, but I would like to create a simple form that sends to a single email upon Submit. I am running Apache and I don't get any errors, but I never receive my test emails? I press submit, and nothing. Can anybody tell me what …

Member Avatar for Kannan R
0
365
Member Avatar for issaru07

hi everyone, keep getting this error although it shows the result perfectly..i cant do a $cart= ''; as it will show the incorrect result Notice: Undefined variable: cart in D:\xampp\htdocs\book\includes\functions.inc.php on line 8 [CODE] <?php function writeShoppingCart() { if(isset($_SESSION['cart']) ) { $cart = $_SESSION['cart']; } if (!$cart) { return '<p>You …

Member Avatar for pritaeas
0
115
Member Avatar for xuweisen

this my new syntax for my new website [CODE] echo "<li class='childmenu'><a href=#equipment?id='".$row['id']."'>".$row['name']."</a></li>"; [/CODE] and this is the old one for my another website [CODE] $isi .= "<li><b><a class='topikMenu' href=reset/survey.php?id=".$row['kodetopik']."><span title='".$row['jumlahpenyurvey']." surveyor'>".$row['namatopik']."</span></a></b>"; [/CODE] I think it's same concept about give the $row[''] in the middle of html syntax, but I …

Member Avatar for xuweisen
0
175
Member Avatar for christiankrell

Hi there, When I place my mouse over the displayed data from the database, a download icon and print icon will appear on the right top corner.how can i do this on PHP?

Member Avatar for pritaeas
0
38
Member Avatar for draven07

..hi...im working with a Cash Collection System using PHP and a Yii Framework.. ...but i am wondering if it is possible to connect a MSSQL Database by Yii... ..if so...then could you please help me how...

Member Avatar for pritaeas
0
74
Member Avatar for mohamedasif18

Hi all, I need a code that i want to set an anchor tag to flash file , Bcz i want to count the clicks on the flash file and want to save into my DB . Is there any way for that ? I dnt need getURL(); It will …

Member Avatar for tiggsy
0
389

The End.