39,326 Topics

Member Avatar for
Member Avatar for kgizo

Hi I have data to upload to a Mysql database and I need to get the time taken for each row to be inserted so that I can pass that number through to a progress bar. I have alreay tried accomplishing this by determining the number of rows affetced by …

Member Avatar for diafol
0
391
Member Avatar for hriti

hey i want to use session id from index page to other page...bt when i use it by post method and click on the id text thn it will show the data and thn the id is being destroyed...how to keep the same id tehre...plz help me...

Member Avatar for minitauros
0
135
Member Avatar for jakx12

title says it all, basically what i cant figure out how to do, is to check if a certain session value is equal to nothing. ISSET does not work for the context in this situation. Please help, i know its basic i just cant grapple it. I have searched high …

Member Avatar for wadeshuler
0
4K
Member Avatar for mbarandao

Hello: I am wondering if there are any suggestions on how to pass variable to a div in the following manner: foreach (array_combine($playerState_array_clean_phase2, $membId_stripped_array_clean_phase2) as $playerState_array_clean_phase2 => $membId_stripped_array_clean_phase2) { echo" <a href=\"#_MultiDataProcessor?Pid=$membId_stripped_array_clean_phase2&Plname=$lname&Pfname=$fname\" title=\"$membId_stripped_array_clean_phase2\"><span style='font-size:1.5em'>$playerState_array_clean_phase2</span></a>"; } I want to get those variable in a div that looks like: <div class="iLayer" id="MultiDataProcessor" …

Member Avatar for iamthwee
0
3K
Member Avatar for tqmd1

Sir I am have these codes <?php session_start(); require_once("connect.php"); function clean($str) { $cstr=trim($str); $cstr=addslashes($str); $cstr=htmlspecialchars($str); return $cstr; } if(isset($_POST['login'])) { $myusername=clean($_POST['username']); $mypassword=clean($_POST['password']); if(empty($myusername) || !empty($mypassword)) { echo ('<script>alert("User name or password must not be empty")</script>'); header ("location: login.php"); exit; } else { $query="SELECT * FROM admin where username ='". $myusername …

Member Avatar for pritaeas
0
177
Member Avatar for office1111

i want have a multiple user login and redirects them to a specific folder such as when i have user login of John, and when John logs in it redirects John to account_john/welcome.php, and another when i have a user called Alex and it goes to account_alex/welcome.php, is there anyone …

Member Avatar for office1111
0
325
Member Avatar for myfit

Hi every one, I have problem need help that, I have a form have 1 select filed and 1 text field, I want when I choose value in option of select the text field will load/appear value in proportion to value of select, example in picture when I choose "B" …

Member Avatar for diafol
0
232
Member Avatar for DjFumon

hello, you can help me scrap the contents of this table? I'm interested in extracting the content of href and the text Spa. <tr bgcolor=""> <td height="32" align="center"><a class="btn btn-mini enlace_link" style="text-decoration:none;" rel="nofollow" target="_blank" title="Ver..." href="http://freakshare.com/files/a5qgdilx/Juegos2.DVDSCRHQProper.Castellano.mp4.html"><i class="icon-download"></i><b> Opcion 01</b></a></td> <td align="left"><img src="http://www.google.com/s2/favicons?domain=freakshare.com" width="16" />freakshare</td> <td align="center"><img src="http://www.yaske.net/theme/01/data/images/flags/es_es.png" width="19">Spa.</td> <td …

Member Avatar for DjFumon
0
150
Member Avatar for Burhan_1

I save a variable in my db row like this: http://www.$site.com When i fetch from my db it echo this :http://www.$site.com but i have a variable $site='google' and i want to change $site to google automatically when fetched from db. Is there a way to this.

Member Avatar for minitauros
0
81
Member Avatar for nadiam

hey guys, so i have already completed the form and the validation. what i wanna know is how to retain the values that user has already types into the text boxes. <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html;" charset="iso-8859-1;"> <link rel="stylesheet" type="text/css" href="css/style.css" media="screen"> </head> <body> <center><img class="banner" src="image/banner.jpg"></center> <div …

Member Avatar for minitauros
0
302
Member Avatar for RLS0812

Here is a login page I have been working on for a while, what do you think ? It automatically strips "user input" of all special characters. <html> <title>Login Page</title> <head> <style type="text/css"> body { text-align:center; } </style> </head> <?php include "sql.php"; $me = $_SERVER['PHP_SELF']; function check($v){ return isset($_POST[$v]); } …

Member Avatar for Eagle.Avik
0
248
Member Avatar for Frank_6

Hi all, I have a simple contact info form written which when submitted sends the info to a php script which is supposed to then email on the details. The problem is that I can't seems to get the mail function to work correctly. I have php running on iis7 …

Member Avatar for pixelsoul
0
888
Member Avatar for nadiam

hey guys. i have created this page that has a text box and a search button and below them is another button let's call this button button A. when the search button is clicked the query runs and a table regarding whatever was searched will be displayed and thats okay. …

Member Avatar for patk570
0
236
Member Avatar for patk570

Hello, I have a function that is working to generate the navigation bar, it grabs the parents and the "childs" and displays them but I have noticed that it is not closing the ul, li tags properly. I will attach a screen shot below. My code is this: <? include …

Member Avatar for patk570
0
221
Member Avatar for davy_yg

Hello, index.php <?php /* <img src="images/indonusa banner1.jpg" width="900px"/> <img src="images/indonusa banner2.jpg" width="900px"/> <img src="images/indonusa banner3.jpg" width="900px"/> */ ?> <?php include('include/con_database.php'); $result2 = mysql_query("SELECT * FROM dynamic_content WHERE CatID='11' LIMIT 3"); while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.'<img src="images/banner/'.$data2['images'].'" width="900px">'.'</td>'; } ?> In the following code: while ($data2 = mysql_fetch_array($result2)){ echo '<td>'.'<img …

Member Avatar for pixelsoul
0
118
Member Avatar for kgizo

Hi I have been struggling with this query for a while now I need to get the number of rows inserted into my database table, but I keep getting this error I can't seem to get rid of. $result3=mysql_query("INSERT INTO dest_table.create_info SELECT * from Profusion.source_cdr"); $num_rows = array($result3); $progress=mysql_num_rows($num_rows); echo …

Member Avatar for kgizo
0
263
Member Avatar for myfit

Hello Everyone, I’m having a page php have function list content of directory in computer such as c:/folder after that I can open, write and save any file I want in list file. Now I have complete to list content of directory, now I want to click any file in …

Member Avatar for myfit
0
228
Member Avatar for baloch123

I am unable to apply this style to Cell A16. I want to make horizontal boarder around cells. $objPHPExcel->getActiveSheet()->getStyle('A16')->getBorders()->getHorizontal()->setBorderStyle(PHPExcel_Style_Border::BORDER_THICK);

0
90
Member Avatar for baloch123

Hi Everyone I want to convert Excel File to PDF using PHP. Can anyone guide me in this matter? I have tried PHPExcel by using tcpdf,mpdf,docpdf libraries but they didn't produce good layout. Do you have any other suggestion? Waiting for your reply.

Member Avatar for jazleeen
0
7K
Member Avatar for iwavetostars

Hello! my Avira just detected an infection with PHP/WebShell.A.1. It resides in C:\Users\Default.Default-PC\AppData\Local\Google\Chrome\User Data\Default\Cache\ and it's called "f_004140". I don't run any web-server on my computer whatsoever so I have no idea how I got it in here. Anyways, here's the "source" of the file. http://pastebin.com/cVzAuS0n https://mega.co.nz/#!gIJFiCZL!JuTagzrj8TI8nMkDZHPD-SRwu8UYs6Z_blMjkEl-aDE ^ The link …

Member Avatar for cereal
0
147
Member Avatar for turpentyne

I'm trying to take lines of text in a textarea of a form, and turn them into a query from a database. But for some reason, the variables are not showing up in the query I've constructed. Here's what I have so far: <html> <body> <?php $table_variable = $_POST['chosen_table']; $chosen_insert …

Member Avatar for diafol
0
130
Member Avatar for icedome

Hi guys, Let's see if you can give some advice. I'm looking for a pageflip service (it can (and should) be a paid service) that let me have in my own website BO the actual PDF upload option and do the pageflip conversion. Does anyone knows such service? Or as …

Member Avatar for ailsa
0
203
Member Avatar for sandeep4646

Which php files are kept at the root folder? in best practice what is the file size of PHP? (300 lines)

Member Avatar for diafol
0
101
Member Avatar for hriti

i want to put the link for other language...if i click on that language the site will convert to that language...plz can anyone help me...its urgent... thnks in advance...

Member Avatar for diafol
0
193
Member Avatar for baloch123

Hello I have excel file having few cells merged for Title. e.g B1:F1 are merged cells,i want to align text of these merged cells to center.keeping the cells merged. I have use this code but it didn't work $objPHPExcel->getActiveSheet()->mergeCells('B1:F1'); $objPHPExcel->getActiveSheet()->getStyle('B1:F1')->getAlignment() ->setHorizontal(PHPExcel_Style_Alignment::HORIZONTAL_CENTER);

0
81
Member Avatar for baloch123

Hi Everyone I'm priningt PDF from Excel file using PHPExcel. How can i show gridlines for cells(A16:A32)?

Member Avatar for baloch123
0
89
Member Avatar for devianleong

Hi, How can I loop this out? <input type="text" name="attr[1][value][1][name]"> <input type="text" name="attr[1][value][1][price]"> <input type="text" name="attr[2][value][1][name]"> <input type="text" name="attr[2][value][1][price]"> Any Solution?

Member Avatar for diafol
0
195
Member Avatar for Motorider

I have a Daily Deals website of which I desire to limit the viewing of one of the product catagories to logged in users only. here is the catagory code. <div class="categories"> <h3><?php echo $array['Categories'];?></h3> <ul> <?php $category_total = num_rows(mkr_select('ig_category','cat_name,cat_id,cat_image','cat_status=1')); $category_select = mkr_select('ig_category','cat_name,cat_id,cat_image','cat_status=1 ORDER BY cat_name ASC LIMIT 0,3'); if(num_rows($category_select)>0) …

Member Avatar for diafol
0
543
Member Avatar for game4tress

I'm creating a chat system and I need to remove every user that did not properly logout (if for instance the computer was shutdown unexpectedly,...), such as some other tasks. One possibility is for each user's script check for inactivity (3 seconds, for instance) of every other user, but if …

Member Avatar for jkon
0
272
Member Avatar for askfriends

hello; i dont know whether this is appropriate forum to ask this question, but after viewing some helping threads i decided to post mine problem and hope you guys will help me. I am a blogger, i upload files and then monetize the links using adfly and linkbucks. But as …

Member Avatar for askfriends
0
860

The End.