39,320 Topics
| |
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. | |
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 … | |
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]); } … | |
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 … | |
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. … | |
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 … | |
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 … | |
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 … | |
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 … | |
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); | |
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. | |
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 … | |
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 … | |
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 … | |
Which php files are kept at the root folder? in best practice what is the file size of PHP? (300 lines) | |
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... | |
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); | |
Hi Everyone I'm priningt PDF from Excel file using PHPExcel. How can i show gridlines for cells(A16:A32)? | |
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? | |
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) … | |
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 … | |
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 … | |
Hello in my code i am unable to fetch rows please check if (isset($email) && isset($key)) { $get_verify_email = "SELECT * FROM users_registration WHERE email_address ='$email' AND com_code='$key'"; if ($result = mysqli_query($dbc, $get_verify_email)) { while ($row = $result->fetch_row()) { $name = $row["Name"]; $business = $row["business_type"]; } /* free result set … | |
Hello i need a little solution for a variable in my code its currently printing error messages but i want to keep these error messages so that i can print them any where in my html using this code <?php print_r($messages); ?> becuase currently its printing the error message on … | |
I have a form for adding products and their detail to a mysql db. I have another form that shows the products where I can remove the product from the db, I can also hide or show the product in the website. I need to be able to edite the … | |
Sir, i am using these codes <?php $myusername=""; $mypassword=""; $myemail=""; $mymobile=""; $mycountry=""; $mycity=""; $myage=""; $mygender=""; $myphoto=""; if(isset($_POST['save'])){ require_once("connect.php"); function clean($str){ $cstr=trim($str); $cstr=addslashes($str); $cstr=htmlspecialchars($str); return $cstr; } $myusername=clean($_POST['username']); $mypassword=clean($_POST['password']); $myemail=clean($_POST['email']); $mymobile=clean($_POST['mobile']); $mycountry=clean($_POST['country']); $mycity=clean($_POST['city']); $myage=clean($_POST['age']); if(empty($myusername)) { echo ('<script>alert("User name must not be empty")</script>'); echo '<script>document.getElementById("form1.username").focus()</script>'; } elseif (empty($mypassword)) { echo ('<script>alert("Password … | |
hello im a little new to htaccess specially mod_rewrite, i know mod_rewrite allows us to rewrite request. Can anyone write me the exact code how to rewrite my path to files?. Before my files(jc,css,images..etc.) reside in example /images/image.png, but now it has a parent directory folder named "public" so my … | |
Ok this is a basic question. I suspect that I do not know the correct terminology to search for the answer. I am playing in a development environment and this is all about learning and pushing my skills to learn more. My main web site is an HTML Form that … | |
hi guys! I deleted my scrit and installed a new script and i cant log in but can creat new users and new Global admin. hav checked my login.php, member/index.php but the codes have no error yet i cant log in. below are my codes **login.php** <?php ob_start(); session_start(); include … |
The End.