39,320 Topics
| |
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??? | |
Does anyone see an issue with the following IF statement... I sure can't yet it doesn't work! VARIABLES: $CHECK = A returned value from the database either "y" or "n", the value is returned successfully so I know that is not the issue here. There is no error message returned, … |
The End.