39,402 Topics
![]() | |
Hi Guys, I need to write a simple PHP for the following. Logged in as: Shabbaranks Last visited: 22 Hours Ago at 4:47 pm Private Messages: Unread 2, Total 2. Any ideas? | |
![]() | I've had a good trawl through search and Google, but can't get to grips with a problem. I don't know if it is possible, but here goes: A friend asked me to install a few mods to his phpBB3 site. No problem. However, there were a few that required SQL … ![]() |
Hello all, I played a game a few years ago that said if you didn't click on adds within a week you character would retire. There was a way to get your character back. I thought it was a good idea. I am a noob to php and i want … | |
Hi, I'm having the problem with this code, gives me "wrong datatype for second argument" error here is the code: [code]<? $page_to_show = 'second.php'; // array of days and hours $working_time = array( 1=>array(21,22,23,0,1),//monday hours 2=>array(21,22,23,0,1),//tuesday hours 3=>array(21,22,23,0,1),//and so on 4=>array(21,22,23,0,1), 5=>array(21,22,23,0,1), 6=>array(21,22,23,0,1), 7=>array(11,12,13,14,21,22,23,0,1), ); if (in_array(date('H')+1,$working_time[date('N')])) { [COLOR=red][B]<-- error … | |
Hello every one, i am new here so i would appreciate any help wit this. i am trying to call a url using javascript in an html select statement as follows; echo "<select>"; for ($i = 0; $i < $pages; $i++) { ?> <option value='' onClick='javascript:window.location.href= "index.php?option=<?php echo $option; ?>&task=view&limit=<?php … | |
Good day.! Im really sick of thinking every night and day on how to get the sum of all the value in such field. Assuming that ive already have a recorset which is filtered with a username "john", when john views his account, i want to sum up all the … | |
Hi I've recently started studying cURL and am having problem with the following code that i've written, [CODE]<?php include("LIB_parse.php"); # Include parse library include("LIB_http.php"); # Include cURL library $web_page = http_get($target="http://rapidshare-search-engine.com/index-s_submit=Search&sformval=1&s_type=0&what=1&s=billu&start=0.html", $referer="http://rapidshare-search-engine.com/"); $meta_tag_array = parse_array($web_page['FILE'], "href=", ">"); for($xx=0; $xx<count($meta_tag_array); $xx++) { $tag= return_between($meta_tag_array[$xx],"href=\"","\">",EXL)."\n"; ?> <a href=<?php echo $tag ?> >hh</a> … | |
Hello every one, am called swit and i am new here. i luv programming and i luv this site. | |
Hi I am having a problem can't seem to get my script working it was working fine with just one file before without the for and $x statements I have added can anyone see why it isn't working please ? html [code] <form name="iapply3" method="post" action="ionline4.php"> <input type="hidden" name="MAX_FILE_SIZE" value="300000" … | |
how to display formatted text, images and flash those url stored in mysql database in php? | |
I have web site and want to find the total time each visitor spent(after login) on my site's specific php page eg.[URL="http://www.mysite/profile.php"]www.mysite/profile.php[/URL]. How i do it ? thanz in advance | |
Hi, I have created a database, a table and stored 3 questions in the table. I need to show the questions one by one to users. when first question is visible then while loop should wait until user click on submit button. My Code is: include("dbconnect.php"); $result=mysql_query("select * from English") … | |
I have been learning PHP for sometimes and it is interesting. Can anyone point me to good PHP/MySQL tutorials for newbie :) So far I have been playing with simple PHP scripts like Forms etc. Thanks all | |
I was reading through the forum and still cant get this code to work. I have a saved cart for different users. Each cart linked to different table. with list of items in the cart for retreval. But i cant get the admin function to work to delete saved carts. … | |
Hi, I am using redirect on my index.php to redirect to a directory in server. I havent used any html tags etc just <?php redirect ?> i want to use html meta data and tags as well. as i am a newbie i need your help on this. because google … | |
Hey Guys, I'm having a very difficult time. I'm not sure exactly what to do. I have a form that contains fields for HEX, DEC value. I'm using a color picker (RGB ColorPicker 1.1) along with php5 and MySQL. All I want to do is be able to save the … | |
Hi, I'm building 3 sites, nothing fancy or big. I'm basing them on PHP, so i'm also trying to use PEAR(/PECL) - seems like a logical choice. I'm using two different webservers, one is Apache, the other is Nginx, so i need the code [b]not[/b] to be server-specific. Both machines … | |
Hello All, So I have set up a php form that takes user information and is suppose to send to the selected email address, but it is not sending to the email address. When I tested the form on my local server it sent to the correct email address, but … | |
Hello, Quick question...For the email code in the PHP script to work, do I have to make any server settings? or make any accomodation for the type of server it is being run on? If so, then please guide me... The application is located on a Linux server. | |
Hello. I'm trying to select users from database that were last active today or yesterday...but there is a problem... When a user logs in, it stores both date and the exact time. So when i want to select user from db that logged in today or yesterday i must use … | |
Please Will Anybody Help me to make a php script using that i can save files to my server folder from the given submitted url [COLOR="Red"]eg: if i put a file url to a text box and when i enter submit it should save the root folder or any specific … | |
Hi folks I have set up an form that when submitted sends an email, however I want to suppress the information in the email if it is left blank in the form. an example of the existing PHP code I have is [code]?php $to_email_address = "someone@someone.com"; $from_email_address = "$email"; $replay_email_address … | |
Hello - I have a form that is running a PHP script and don't want it to send information to the email for fields unless they have been completed so, ONLY if the text filled has an input do I want it to show and for it to show the … | |
[CODE] function countsearch($id){ $db = NULL; $db = new MyDBHandler; $db -> init(); $db -> OpenConnection(); $sql="select id,count(keywords) from seeker where userid=".$id; $result = $db->Select($sql); $db -> CloseConnection(); return $result; }[/CODE] $nos=$db->countsearch($id); if it is a ordinary field i will print it as echo $nos[0]["id"] can anybody tell how to … | |
hi to all pls help me to store whatever the user enters in text box in a table and then get the records from the table and use it in drop down list. Any idea or tutorial to do like tat.... | |
Hi frnds... i need to select only fixed no.of records from my db table... table having 100 records... i need to select recent 10 records based on id .... plz tell me whats the logic in this.... | |
Good day.! I thought ive already solve the problem regarding to disable a button. When a variable totalbill is equal to zero the button will be disable, otherwise it will disable if totalbill is not equal to zero.! If totalbill is zero then it will be enable otherwise disable. Whats … | |
This isn't really a question I just noticed on the php manual under control structures that they are going to be using goto. I don't know how old any one is in this forum, but when I saw that it brought me back to the days of when a cd-burner … | |
Hi frnds... I have some doubts regarding this PHP... 1)i need to display an add in between two pages.....i.e. when i post data from 1st page to 2nd page than, i want to display an add before redirecting the 2nd page...by using PHP or JavaScript... 2)Can we pass input value … | |
Good day. I was able to take a nightmare of my code regarding to disable a button. This code derive from a member post in this site. it will retun errror.! [code=php] <?php if($totalbill==0) { $disabled="disabled=true"; } else { $disabled="disabled=false"; } echo "<input name="enrlclick" type="submit" class="style18" id="enrlclick" value="Enroll Now" ".$disabled">"; … | |
Good day.! Thank you for all your support to all my thread. By the way Ive got some error regarding of mysql query. I want to load all data from the table depending on the table name on the variable.!I dont know whats wrong with my query below.! [code=php] $coursesubject=$row_reclog['tablename']; … | |
i am new to PHP, i typed in a hello world php program and opened it using the web browser, but the end tag "?>" is also getting displayed, could any one correct my code ... [code=syntax] <html> <head> <title>My First PHP Page</title> </head> <body> <?php echo <b>Hello World! </b> … | |
Ok guys, I have a problem. I am a total noob coming to php so was was going to set it up. I was following this tutorial: [url]http://www.youtube.com/watch?v=cSN34q47BXY&feature=related[/url] I got XAMPP all set up. But one problem, my computer can save .php files. How do I get this to work? … | |
Im doing a login facility for my website iv connected it to the database but when i try to enter some values for login name and password i get the following message: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/www/milkitshakeit.freehostia.com/log.php on line 16 Here is … | |
Hi frnds.... i am working on file handling.. I need to display text from my file... here i got everything, but the alighnment is totally looks like notepad...i want to display same clarity(styles) which my original file having... plz give me any solutions asap.. Thanks & Regards.. | |
Hi i'm used to working with Visual studio IDE and C#.NET and have just started studying PHP. These are my queries: 1. Is there any IDE like the visual studio for PHP, i mean it was a lot easier dargging and dropping controls in VS. Suggest me one. 2. Is … | |
Good day.! I am having problem with passing the parameter value. I have a page called index.php. This page has a textbox named "username" when the user login and type his/her user name in the textbox named "username" i want the data of that user to be displayed in the … | |
Hello all! Sorry in advance if this seem like a really dumb question. I have one page where a client posts their personal info. One way I check the post is to use htmlspecialchars and then store it in a session. For example... [code] <?php session_start(); include ("databaseinfo.php"); //Form validation: … | |
Hi- I am having difficulty working with an array in php and would appreciate any help...thanks in advance! I have queried my database to return all product ids with type 'book' and id base 'brd'. The product id is a string that is formatted as follows: <base><3 or 4 digits><no … ![]() | |
Is there anywhere I can find a list of dangerous MIME types I have tried Yahoo and Google not much on there? | |
i have got this done so far but it still isn't working properly its really doing my head in it sends the message fine subject file attachment but cuts the html message off halfway down and doesn't send the disclaimer if i change $message which is being passed to $messagemain … | |
I`ve created a social network website in PHP,actually this is my first website. now i need to know how i`m i going to benefit using my website. Please i need somebody to advice me,beacuse i know nothing about website marketing. | |
Hi, I’ll use a txt file to store locations in it. When I user click on button, the locations will be read from txt file and stored in an array. If more than 1 user run this script, will it cause problem like “File is already open”? It this reliable. … | |
HI EVERYONE, I have one problem, as i calculate two time like today i have worked [B]9.43 hours [/B]and 2nd day i worked [B]8.20 hours [/B]when i calculate total time of these two day then it shows [B]17.63 hours [/B]but i want to show this with the help of php … | |
I'm trying to build a crude album viewing site. There are three files I'm working with: [LIST] [*]index.php: Contains html code. [*]images.php: Builds images from browser URL and an array. [*]include: Builds an array of images from a given directory. [/LIST] Given: [B]image.php[/B] [code=php] <?php include('include.php'); buildImageArray("images/"); $image = $_GET['show_img']; … | |
i am makin a simple account creation screen for my website and i have an error: Error: No database selected and i dont know why im getting this because i have used mysql_select_db(), heres my code: [code="php"] <?php $con = mysql_connect("localhost"); if (!$con) { echo "Could not connect:" . mysql_error() … | |
This may be a funny question. But how does php get rendered, I know it is a top down interpreter. But does that change when using classes. If I make a bunch of variables in a function do all the variables get interpreted first and then the function logic or … | |
Good evening, all! I'm trying to display multiple checkbox values in a summary screen of sorts. The website is about movies, and if somebody checks that they like more than one movie type, I would like all of their choices shown. I currently get "Your favorite movie type is: Array" … | |
Hi I had a captcha script in my web page. Some thing like this.. [CODE]session_start(); $md5 = md5(microtime() * mktime()); $string = substr($md5,0,5); $captcha = imagecreatefrompng("images/captcha.png"); $black = imagecolorallocate($captcha, 0, 0, 0); $line = imagecolorallocate($captcha,233,239,239); imageline($captcha,0,0,39,29,$line); imageline($captcha,40,0,64,29,$line); imagestring($captcha, 5, 20, 10, $string, $black); $_SESSION['key'] = md5($string); header("Content-type: image/png"); imagepng($captcha);[/CODE] It … |
The End.