39,393 Topics
![]() | |
Hi friends, I got a pretty big problem. I got a big directory full of images, like 2000 of them (and rapidly rising). For now, the front-end works perfectly with it, but to avoid getting to the point of 200.000 and total breakdown of it all, i decided to put … | |
Hi, I posted this in the Computer science area but am assuming not many people use that place. I want to create a mini gocompare site, what sought of thing would i need to do to create something like this? | |
OK, so I've read that it is possible to use session variables across multiple sub-domains and domains by placing the following in the .htaccess file on each of the prospective domains: php_value session.gc_maxlifetime 14400 php_value session.cookie_domain ".domain_name.com" where domain_name.com is the domain where the session was initiated. I know this … | |
Good Morning. I'm hoping someone can tell me why this isn't working, or maybe if it isn't supposed to work. I've been reading on various websites that you can use variables within CSS if you don't save the style sheet as a .css, but rather as a .php and just … | |
![]() | Hello! Yes, well, I am started to make a upload fucntion. question number one: I've made a if statement that should recognize what file extension the file has, if it has a .png extension it would be inserted into the picture database, and if it is a .txt file it … |
hey people seriously , this code is going to kill me i wrote it yesterday and upto now it cant work i wrote it more than one time and i review it more than 10 times but i didnt found the error so this is my code and bellow is … | |
I'm pulling a date value (not a datetime value) from a MySQL database, but I need to subtract 30 days from that date, and not sure how to do it. I found a sample using mktime() to break up the day-month-year and subtracting 30 days from the 'day' component, but … | |
[CODE]<tr> <td colspan="2" align="center"> <input type="button" class="btn" value="New" name="New" onClick="window.location.href='new2.php'" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" align="absmiddle"> <input type="submit" value="Delete" name="delete" class="btn" onMouseOver="hov(this,'btn btnhov')" onMouseOut="hov(this,'btn')" ></td> </tr>[/CODE] I am unable to make thses two buttons centred .... any help?? TIA | |
Im dying here please help me how to display the image | |
What is the wrong with this guys? Why is it that when i view the month of November 2010 it also view the month of 2009?Can anyone help me? [code]<?php include("db.php"); $query = mysql_query("SELECT distinct YEAR(local_date) as year FROM tbl_localnews order by local_date desc"); while($row = mysql_fetch_array($query)) { //$row = … | |
Hello friends, I have problem with showing registration form on joomla. I use unique template for registration form, I want to add only registration form. How to do this ? Thanks. | |
Help I'm having trouble on passing value to another page, I'm using PHP. My goal is when i click a link it will move to another page and the value of that link will be received by the other page. make sense? can someone help me with this? thanks.. | |
Hi friends! i need your help!i have an admin panel that I'm developing for my site it has a login page you put your login and password then you can use the main_admin_page.php where u can insert,delete...but if i type the path to the main_admin_page i can use it without … | |
hello.... i want to search google images from my site. i got this code from google. but in this i want a link to each image to add images to my folder. how to do this? [CODE]<!-- copyright (c) 2009 Google inc. You are free to copy and use this … | |
Hi, i have four tables:books, info, autor, publisher and columns under tables; books........... info............ autor............. publisher ------------... -------------... ---------------... -------------- id............. id............... id.................id bookname .......type .............name ..............publisher name autor_id .......year .............second name .......quantity publisher_id ...autor............. year..............country I tried with this relations but it did not work (is this normalization ok) … | |
Hi Guys, Can anyone help me out about displaying 10 data from my database?My codes goes like this. I have 4 fields (id, local_title, local_desc, local_date ) [CODE] <?php $last_date = ""; $result = mysql_query("SELECT * FROM tbl_localnews ORDER BY local_date DESC"); while ($row = mysql_fetch_array($result)) { for($i=0; $i<10; $i++){ … | |
I have an email issue.when I am sending mail.its showing the HTML tag in mail body.like following. Thanks for signing up for Imprimis. You will receive your Imprimis publication soon.If you did not signup, or do not wish to receive this information, please <a href="http://www.imprimissignup.com/unsubscribe.php?email=anumitadas@gmail.com">click here</a>. My code is for … | |
Hi Guys, I have a problem regarding of archiving. How we are going to archives data by month? I have 4 fields(id, dates, title,description). I want to archives my data by month in which you can see the Month automatically from database MySQL. Example [b]Month retrieved from database[/b] News for … | |
[code=php] <html> <head> <title> ftp php test page</title> <?php $ftp_server = "10.209.152.220"; $ftp_user = "deepthisk"; $ftp_pass = "Hatepwd1"; // set up a connection or die $conn_id = ftp_connect($ftp_server) or die("Couldn't connect to ".$ftp_server."\n"); // try to login if (@ftp_login($conn_id, $ftp_user, $ftp_pass)) { echo "Connected as ".$ftp_user."@".$ftp_server."\n"; } else { echo … | |
Hi All, Im accessing a function with paticular parameters, but my response is not recognising the parameter of the count value. If I change the variable in the COUNT part of the query to a static value it works fine, but if i use the variable name it returns "undefined … | |
well i have info from a DB however for some reason i can't use some variables... or use other variables within the while loop!!!! here's my code: [CODE]function SeasonPrice($roomName) { require("dbCon.php"); mysql_select_db($database); $res = mysql_query("select * from room where RoomName = '".$roomName."'"); $row = mysql_fetch_assoc($res); $Booked_month = date('F'); if($Booked_month <= … | |
Hello i've got a problem here, i want to insert some data into my table and everything is all right for the first 3 or 4 but the last does not work [CODE]<?php // include("config.php"); // $db_connection = mysql_connect($db_host, $db_user, $db_slaptazodis); mysql_select_db($db_table, $db_connection); // if ($id == "") { // … | |
[url]http://www.mycircle.freevar.com[/url] This is my website. Whenever a user logs in using correct username and password, a field(flag=1) in the database is updated to show that the user is online(for chat). When user logs out, it is set to flag=0 to indicate offline. This works properly. Consider the situation. The user … | |
<?php require('Connections/boss.php');?> <?php if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case … | |
.guys please help me. i am developing an online examination system using PHP and MySQL. .what i'm planning to do first is to create the question and answer page and it is by using looping. to be able to start i need to know first on how to fill an … | |
Hello all, I've been stumbling (more like Stumbling, I hope) across the web looking for something that can do occasional screen captures using a cron job on my casual gaming site server. I was hoping to be able to save screen captures of a few characters as I leveled them … | |
I know that's a mouthful but it's exactly what I'm trying to do. Example I have a page called edit.php. it takes a filename, for example page.php and I want to load the code into a <textarea> to be able to edit it. i'm trying to uses code like this … | |
Hi, I'm having trouble finding out how to have a link pull a certain id from a single file and display that id's content within a certain div on the page. I'm trying to cut down on the amount of pages on my site by loading certain critical code into … | |
hi there i want to upload an image into a webpage i have the following code which is not working .where is the problem or who have a better code. <?php //define a maxim size for the uploaded images in Kb define ("MAX_SIZE","100"); //This function reads the extension of the … | |
I'm trying to think how to change this into a js tree view. It consists of lines that point to a file(no extention) Each one is a link... [code=txt]rustenburg rustenburg/school/hstegnies rustenburg/school/bergsig/sport/rugby rustenburg/school/bergsig/sport/tennis rustenburg/sport rustenburg/sport/rugby rustenburg/sport/tennis/rustenburg tenis club rustenburg/sport/tennis/Impala club rustenburg/sport/rugby/impala rustenburg/sport/rugby/xtrata rustenburg/places/city hall rustenburg/places/kloof etc.. [/code] ideas?? |
The End.