39,402 Topics
![]() | |
The following id my php code [CODE]<html> <head> Checking ! </head> <body> <?php $errors_array=array(); if(isset($_REQUEST["welcome_already_seen"])){ check_data(); if(count($error_array)!=0){ show_error(); show_welcum(); } else{ handle(); } } else { show_welcum(); } function show_welcum(){ echo "<form method='post'>"; echo "What's your ice cream flavour?"; echo "<br>"; echo "<input name='flavor' type='text'>"; echo "<br>"; echo "<input type='submit' … | |
Hello ...I just was trying to output the file names of different folders in my PC using PHP code...But I found that it outputs actually more than visible files in that particular folder..So what did I mean by visible that when I count the number of files in my folder … ![]() | |
Hi everyone, Im relatively new to PHP. Im required to create a database to store all the courses taken by a student and his/her grades. i have created the database and able to store and display all the data stored in the database. I have a problem here: Im required … | |
hello, i have to find google co=ordinates from given address. so i am displaying google map in popup box but i don't know why google map not loading in popup. but it is working fine in new page.when i am trying to display in popup then only i am getting … ![]() | |
i'm trying to get a clean url for my about page. i want to change [url]http://www.example.com/about.php[/url] to [url]http://www.example.com/about[/url] i put my htaccess file as this [code]RewriteEngine On RewriteBase / RewriteRule ^(.+)/([0-9]+)/?$ about.php[/code] it's not working though, i get the 404 not found error. | |
I have a PHP shopping cart system and it's using MS SQL for the backend. Currently it's using the mssql driver. Now I want to move it to Windows Azure and I'm required to change the driver to sqlsrv 2 in order for it to work there. Can anybody tell … | |
Hello to everyone and wish for a Happy New Year. I have an html code from which I want to execute various php files (with various parameters). Say the html file is called htmlcode.html. Say one php file is called phpfile1.php and a second php file called phpfile2.php Everything works … | |
Hello everyone i'm getting the following error message. [COLOR="Red"]Fatal error: Call to a member function prepare() on a non-object in C:\xampplite\htdocs\Prepared_Statements.php on line 20[/COLOR] My code so far [B]connection.php[/B] [CODE]$db_server = "localhost"; $db_user = "root"; $db_password = ""; $db = "test"; $connection = mysql_connect($db_server,$db_user,$db_password,$db); if(!$connection){ die("Database Connection Failed".mysql_error()); } $select_database … | |
Hello I get this message : Notice: Undefined index: id in *****7index.php on line 26 when we go from php4 to php5. My code on line 25-35 is : [code] <?php if($_GET["id"] == "web"){ echo "<link rel='stylesheet' href='css/style.css' media='screen'/>"; echo "<link rel='stylesheet' href='css/style.css' media='handheld, only screen and (max-device-width:480px)' />"; echo … | |
please correct this problem [CODE] id -- int user_id -- int friend_id -- int [/CODE] [CODE] <? session_start(); //starts session mysql_connect("localhost", "root", ""); mysql_select_db("admin"); if ($user_id= $_SESSION['logged']){ //check if user is logged in if($_GET['user_id']){ //gets userid $friend_id=$_GET['user_id']; //friend $by = $user_id; //me $query = "INSERT INTO friend_req ( 'friend_id , … ![]() | |
Hey, I have some php code that I cant seem to get working... Here is the code... This is the javascript that changed the ?show in the url to what the user selects.. [CODE]<script type="text/javascript"> function show(){ var e = document.getElementById("select"); var strUser = e.options[e.selectedIndex].value; window.location = "?show="+strUser; } </script> … | |
in my admin i'm at feed item content type and i've set the comment settings to read/write, but when i load a specific feed item on my page such as mydomain.com/node/137941 there is no comments. i did some research and i came across some code that u can use to … | |
how do i create an html to pdf converter ![]() | |
Hi, I have an array (2=>50, 231=>63, 235=>121) How do I change the second item? Thanks, Dave | |
how to calculate the exceeds time. $due_date=strtotime("July 5,2011,8:00 am"); $today=strtotime("July 5,2011,9:00 am"); example i borrow a book so the due date is = ($due_date), then i return the book at ($today) how can i caculate the munites exceed from $due_date to $today...the munites exceed is 60 munites. how can i … | |
Hi,I am uploading CSV file.its working fine. but an extra record(blank record) added with all csv records Need help for above [CODE]<?php session_start(); if (!isset($_SESSION['username'])) { header('Location: login.php'); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> table, th { border:1px solid #666666; font-family:Verdana; … | |
Hi guys another newbie here want to know and learn about NGINX :) how can i use that in my next project ? Any help would be greatly appreciated Thanks in advance. | |
Hello everyone I haeve tried to understand the capabilities of python in web development. Have gone throuhg forums and online tutorials. Nevertheless I am not able to find any topic which can give me some insite along with basic examples of how to send http get data from an xp … | |
I was following a tutorial and i copied word by word i don't know why i get the error. Error >> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/*****/public_html/download/url/search.php on line 36 [CODE]<?php $results = $_GET['results']; $terms = explode(" ", $results); $query = "SELECT * … | |
Hi, In have created a smallm cms, and I would like to offer customers to download it, instead of only getting access to it, if I design a website for them, AND "attach" the backend to the site. How can I create a download function, so that the whole "system"/CMS, … ![]() | |
Hi all, [CODE]<?php $con = mysql_connect('localhost','root',''); if (!$con) { die("Could not connect: " . mysql_error()); } mysql_select_db('users',$con); $sql="SELECT username FROM users_info"; $user = $_POST[username] if($sql != $user) { die("Error: Username is not in our database! Make sure you check the spelling."); } else { redirect('/users/' ->$user); } mysql_close($con); ?>[/CODE] The … | |
how do i use my gmail account to send an sms in my php applicaiton | |
I am trying to figure out the best way to figure out "age" of a particular item. I currently have fields in a mySQL databases that are stored as datetime formats and I need to display (in PHP) the relative age of those dates in terms of years, months, and … | |
So I am in the process of putting some finishing touches on a new section of my website which allows users to keep track of their cigars in an online inventory (or humidor) type system. I'm kind of stuck; however, on what the best way to capture and process data … | |
Hello I have developed a form , i want the user to only input number if a user input any alphabet or symbol ad submit the form the error must appear on the same page, i have done this with form action but i want the error to be shown … | |
hello guys i am making student form for my database and i want to add a image tag so that person can brows the student photo from the computer...how can i do this please help me out.. | |
Anyone has an idea of how to execute the complete php code ....means i want to make online php editor...that will take code as input from user and correspondingly display the output.... I am not sure how to work with it... Till now i thought of taking input from user … | |
Can anyone tell me how to generate reports in pdf using php | |
this is the simple php for loop, [CODE]<?php for ($a=1; $a<=10; $a++) echo $a . ", "; ?>[/CODE] the output of this program is 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, i want to remove ',' from the last value i want the output should be, 1, … | |
how to auto resize right iframe when i click my php page link .can it is possible to set auto resize my right iframe. [CODE] <table width="162" height="386" border="1" class="indextable"> <tr> <td><iframe src="mmmmaaaammmmaaa.php" width="180" height="445" frameborder="0" scrolling="no" hspace="0"></iframe> </td> </tr> </table> <table width="168" height="154" border="1" class="chat"> <tr> <td> </td> </tr> </table> … | |
please look at this code, [CODE]for ($count=$num1; $count<=$num2; $count++){ for ($count1=1; $count1<=2; $count++){ echo $count1; } } [/CODE] why this is never ending loop ? when i run this code my browser hanged, why it is happening ?? | |
Getting below error: Warning: fopen(detail.csv) [function.fopen]: failed to open stream: No such file or directory in C:\xampp\htdocs\hindi\import_file.php on line 28 Warning: fgetcsv() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\hindi\import_file.php on line 29 Column count doesn't match value count at row 1 Need suggestions [CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD … | |
Hi all, I want to use php variable for example $Lang[0] in the href as <a href=$Lang[0] target=_blank> where $Lang[0]="http://www.dailyhungama.com" thanks in advance | |
Hi there, I've this error "Parse error: syntax error, unexpected T_STRING in /home/content/06/8070006/html/wp-content/themes/veryplaintxt/functions.php on line 512". Could anyone please help me take a look and tell me what's wrong with my code? Thanks heaps in advance! :) Sincerely, Gina [CODE]<?php // Produces links for every page just below the header … | |
I want the query to retrieve topics but if the topic repeats I only want one result to show up, no duplicates. I also want it to return username and timestamp. Here is what i have now but I get an error. [mysql_fetch_array() expects parameter 1 to be resource]. Anybody … | |
Currently i m working on Google map V3.. i got a task to show multiple markers n n their corresponding info windows at the same time.. i m able to show the multiple markers but unable to show multiple info windows at the same time.. plz help me.. is this … | |
I wrote this code and when I run the page I get the parse error :- [CODE]Parse error: syntax error, unexpected '[' in C:\xampp\htdocs\view.php on line 30[/CODE] my code is :- i checked my whole code, i was unable to find the error [CODE]<?php $page_title="View Users"; include("header.html"); include("nav.html"); ?> <div … | |
I am having problems with PHP I had to reinstall apache and php and MySQL and this code worked great but now that I reinstalled its giving me this error Notice: Undefined variable: out in G:\file server\SERVER\server\admin\index.php on line 51 [CODE] $title = $_POST['title']; $post = addslashes($_POST['text']); function nl2p($str) { … | |
Hi everyone. I'm making a shopping cart and I found out that I have a small problem. The currency that I want to use (BGN) is not supported by PayPal. I can use euro but the BGN is almost twice less than the euro. What can I do? This is … | |
Is there a PHP variable that holds the page title? I would like to get a hold of the title of the page that I at,(The text at the top of the browser) for later storage. Thanks! | |
a browse and submit button when pick the image and submit , the image name goes to my SQL table and the image it self that the customer pick it copied to my "upload" folder :( my problem is that i only see the image name , so my issue … ![]() | |
I wrote this code called delete.php, i have another script called view.php which displays all the users in the database and displays a link to delete that particular record using the get method. In the delete.php file it retrieves the id through get method from the view.php file and deletes … | |
Hi i'm new here and with php and I want to ask for some help regarding my order form. Here is my existing code. [img]http://i52.tinypic.com/25k4wbc.jpg[/img] Basically what it does in the form is you fill the item(text field) with the number of orders you want (1,2,3 etc.) What I wanted … ![]() | |
My online chat uses a php script. There`s the part I need to correct [CODE][COLOR="Red"][COLOR="red"]if(isset($_SESSION['name']) && $_POST['text'] != ""){ $search = ""; $aname = $_SESSION['name']; function find_value($input) { $handle = fopen("online.html", "r"); if ($handle) { while (!feof($handle)) { $entry_array = explode(" ",fgets($handle)); if ($entry_array[0] == $input) { $search = $entry_array[0]; … | |
Is it possible? I have a php file (and iframe) wich recives a variable from it's main page, then it makes some conversions to this variable to create an URL that should be included in a flv player, I must use html to include the player but I don't know … | |
When is it the best time to close a database connect? Is it good to close it on every scripting page i do that uses it? | |
Hello everybody, am working on a small php project and in some pages i have dynamic table to read date from another table in MySql database and i added into same table a javascript code for inserting new row. the fields in the table is: Value (input type="text") time (generated) … | |
Well, all I want is to pass a variable, just one, to an iframe, I know that is something like: [CODE]<iframe src= 'http://blabla.com/bla.php?variable=string'</iframe>[/CODE] and inside the iframe something like: [CODE]$myvar = $_GET['variable'];[/CODE] But my problem is that my variables are URLS, with "?" and "&" so when I parse that … ![]() | |
I'm trying to figure out the best way to replace apostrophes in various user input which is all formatted first using [B]mysql_real_escape_string[/B]. Of course this replacement should take place after all input has been sanitized and anything funny removed. :) Any help would be awesome! | |
![]() | I was looking at this [url]http://www.daniweb.com/web-development/web-design/html-and-css/threads/97183[/url] post and I did everything the guy said, but he did not say how to make up all the files. I made the login, members, and every other file he said make. But now im stuck with a bunch of files and I do … |
The End.