39,402 Topics
![]() | |
I am trying to display an alert box using javascript in my login php file. When a user logged in using a wrong username or password, then a messagebox will display. This is what i have so far: [CODE] $query="SELECT * FROM info WHERE username ='$user' && password ='$pass' "; … | |
Any idea what I did wrong? 'WHERE id =' at line 16 I am not sure why it says line 16 but I think it is talking a bout line 64. [CODE]<?php include 'resources/init.php'; if (isset ($_GET['id'])) { $q = "SELECT * FROM Client WHERE id = {$_GET['id']}"; $result = … | |
Hello everybody, I'm trying to make a simple page, build from several div's. I have a Header-div (yellow), a Navigation-div (green), a Content-div (pink), a Socialmedia-div (grey) and a Footer-div (red). All div's have a fixed height except for the content-div, I'd like this div to auto size itself. This … | |
I have a php wizard for an application that does the MySQL insert but it comes back with an error message, and I can't seem to figure out what. Any help is greatly appreciated. Insert Statement [CODE]CREATE TABLE `{dbprefix}permissions` ( `ID` bigint(20) unsigned zerofill NOT NULL AUTO_INCREMENT, `permKey` varchar(30) NOT … | |
I have a form which submits comments onto a page. When the comment is submitted I'm using jQuery to submit the variables and then return me a success message. I have also coded a way of reloading my <div> tag which contains a PHP include file, but I receive a … | |
Fatal error: Cannot make non static method JCacheStorage::test() static in class JCacheStorageCachelite in /home/cocomoto/public_html/libraries/joomla/cache/storage/cachelite.php on line 273 | |
![]() | Dear, I am using following code to show php page in popup window <form name="myform" method="post" action="payhistory.php"> <input name="pay_his" type="submit" class="memberhistory" value="Payment history" onclick="myform.target='POPUPW'; POPUPW = window.open('about:blank','POPUPW','width=550,heig ht=400','scrollbars = yes','title= ' );" /> </form> // working good Now I want to use Php header location function instead of using form, … |
Hi.. Any one please tell me what is the method going on after this link : (download button) [url]http://www.cell93.com/angels/wallpapers/[/url] Please help me out... Here is a php file in server named “download.php” , I tried using too many php code to active download like this but each of every time, … | |
Hi guys, Working on a table. Each of the entries has an A or B in the 'tip' field. I order them by 'tip' how can i add a special row for the first entry of the A or B series from the query? I know it's not an IF … | |
Hi everyone, I need syntax for pageloadevent function,javascript or php | |
Let's say I have the letters... A,D, and G And O (It's special) How can PHP make all possible combinations with these words by using all or as little amount of letters as possible? (But special letters must be included in each scramble) For example PHP would go through those … | |
Hi I am trying to get the active state for my foreach loop for my magento site. I have have tried everything, but it just wont work.. here is my code: ksort($catArr); foreach($catArr as $postion=>$catId){ $_category = Mage::getModel("catalog/category")->load($catId); ?> <?php if($_category->getIsActive() ) { $caturl = $_category->getURL(); $catname = $_category->getName(); ?> … | |
I have an application that assigns room numbers to student when they are registered. If one person is using the software to register students it works perfectly but when multiple people are using the software through peer to peer network it sometimes give problems by assigning the same room number … | |
I used to have a major problem on my old hosting package where emails from my website to yahoo/bt just disappeared into the ether. I have since changed hosts and re-formated my mail scripts to use phpmailer SMTP and all generally appears to be working much better. However I seem … | |
Hello! What I'm trying to do is allow a user to create a database and tables by supplying the database and table names through text fields. It is pretty generic unsecure at this point but I'm just trying to learn it currently and I am the only one that is … | |
Hello, I need help on this, I know this is possible...I'm creating a time login page by entering a single code.. no username but just a code.... and so far I only can display the login members only directly called from sql table using php by using this code [CODE]<?php … | |
Okay, so instead of the ID's of each record showing up in the form that is dosplayed for the user, there are radio buttons. I want to create it as when the user clicks on one of the radio buttons, that record is selected. Then the user, clicks on the … | |
Hi, I'm trying to code a PHP page with a textfield, a button and one link, every time I click in the button the value is added(sum) to a variable and when I click the link I can see the value of this variable somewhere in the page. please help! … | |
[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); … ![]() | |
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] | |
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 … | |
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 | |
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 … | |
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 ![]() | |
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 … | |
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 … | |
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. ![]() | |
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' … | |
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 | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 ??:) | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
![]() | ..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... |
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 … | |
table roomBooking: roomBookingID roomID bookingDate startTime endTime glID numberOfPeople staffID table room: `roomID typeOfRoom roomState` php code: <?php require_once('../config/conn.php'); $sql="SELECT * FROM roomBooking, room WHERE roomState='empty'"; $rs=mysql_query($sql,$conn); $row_rs = mysql_fetch_assoc($rs); $count=mysql_num_rows($rs); ?> ... <table border="0"> <?php do { ?> <tr> <td> <?php echo $row_rs['roomID']; ?> </td> <td> <?php printf('<a href="action/roomDetail.php?roomID=%s">詳情</a>',$row_rs['roomID']); … | |
What is the code for informing user that the data is updated or removed??? |
The End.