39,402 Topics

Member Avatar for
Member Avatar for benjaminFowl87

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?

0
76
Member Avatar for showman13

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 …

Member Avatar for showman13
0
267
Member Avatar for showman13

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 …

Member Avatar for showman13
0
100
Member Avatar for Puster

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 …

Member Avatar for madCoder
0
132
Member Avatar for Awah Mohamed

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 …

Member Avatar for chrishea
0
101
Member Avatar for roachae

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 …

Member Avatar for hielo
0
365
Member Avatar for pearll

[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"> &nbsp; <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

Member Avatar for nonshatter
0
86
Member Avatar for eyadox
Member Avatar for rolyestemonio

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 = …

Member Avatar for pritaeas
0
92
Member Avatar for Krstevski

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.

0
66
Member Avatar for knarffrank

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..

Member Avatar for Borzoi
0
225
Member Avatar for jhonnatas

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 …

Member Avatar for Borzoi
0
85
Member Avatar for muralibobby2015

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 …

0
74
Member Avatar for LONGWAY

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) …

Member Avatar for LONGWAY
0
143
Member Avatar for rolyestemonio

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++){ …

Member Avatar for rolyestemonio
0
174
Member Avatar for anumitadas

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 …

Member Avatar for pritaeas
0
111
Member Avatar for rolyestemonio

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 …

Member Avatar for rolyestemonio
0
436
Member Avatar for saideepthi.bits

[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 …

Member Avatar for saideepthi.bits
0
3K
Member Avatar for whiteyoh

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 …

Member Avatar for whiteyoh
0
102
Member Avatar for gchurch

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 <= …

Member Avatar for phpstan
0
127
Member Avatar for DeadlyLife

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 == "") { // …

Member Avatar for DeadlyLife
0
142
Member Avatar for rajesh1158

[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 …

Member Avatar for nonshatter
0
117
Member Avatar for orcaraheel

<?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 …

Member Avatar for wilch
0
149
Member Avatar for zerey02

.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 …

Member Avatar for wilch
0
153
Member Avatar for beginninphp

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 …

0
195
Member Avatar for ry4nolson

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 …

Member Avatar for ry4nolson
0
188
Member Avatar for Waffles007

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 …

Member Avatar for Waffles007
0
3K
Member Avatar for gikonyo

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 …

Member Avatar for pssubash
0
130
Member Avatar for Setvir

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??

Member Avatar for Setvir
0
60
Member Avatar for MysticalNomad

I have the following code that is very simple and gets information from form fields and mails it off. The issue is that when the email is received using Microsoft Outlook 2003 the message is blank and the actual message that is supposed to be there is an attached HTML …

Member Avatar for MysticalNomad
0
186
Member Avatar for sanjaypandit

i want to made a form in which there is three fields. 1. product value: suppose:1500 2. number of product:2 3. then i want to show multiple of these values in third textbox without submitting form . how can i do this. help me

Member Avatar for hacker43.gaurav
0
107
Member Avatar for niths

hello all, i had a page where we can see list of users and there is an option to edit them. So when we click on edit button a popup with lightbox comes and now when i edit it and press update... nothing is updating. The reason is i need …

Member Avatar for pritaeas
0
80
Member Avatar for jrw89

Hi all, I have the following code:[CODE]$Connection = mysql_connect("127.0.0.1", "user", "pass") or die(mysql_error()); $Database = mysql_select_db('db', $Connection) or die(mysql_error()); $Url = mysql_real_escape_string("exampleurlwithonlycharacters"); $Query = "SELECT `col` FROM `table` WHERE `url` = '$Url';"; $Resource = mysql_query($Query, $Connection) or die(mysql_error()); $Result = mysql_fetch_object($Resource); var_dump($Result);[/CODE]and was expecting to see the Col => 1 …

Member Avatar for pritaeas
0
66
Member Avatar for divyakrishnan

Hi... I am doing a PHP project.I had executed the project on 3 machines.For one machine it is showing a warning as follows.. [U][B]warning[/B][/U] Warning: strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. …

Member Avatar for divyakrishnan
0
132
Member Avatar for Geertc

Hello everybody, for my application I want to implement a email-clickcounter, next to link-clickcounter. Most links and emails (mailto:) appear on a page that gives details about a search-result from my home-made searchmodule. I have set up the counting system like this : Every link is redirected to a click.php-file. …

Member Avatar for Geertc
0
158
Member Avatar for nikesh.yadav
Member Avatar for Stefano Mtangoo
0
20K
Member Avatar for Aamit

Hi, [code] <form id='frmuser' name='frmuser' action='web_url.php' method='post'> <input name="site_name" type="text" id="site_name" <input name="add" type="submit" id="add" value="Create image" /> </form> [/code] Suppose :- web url is google.com how to create image of this? Any google API available? using html of that url possible to create image ?

Member Avatar for Aamit
0
264
Member Avatar for vzradha

I have a form which will have to call two different php scripts based on the click of 2 submit buttons. Below is a sample of what I have so far [CODE] <?php echo'<form name="form1" method="post">'; echo '<div>'; echo '<input type="submit" name="submit1" id="submit1" value="Create">'; echo '</div>'."\n"; echo '<div>'; echo '<input …

Member Avatar for niths
0
180
Member Avatar for MoreBloodWine

Wasn't quite sure what to do for a title on this one, anyway... number_format(getNetDonations(date('%')) + 23.97, 2) I'm using the above to try and pull total donations ever received on my site but here's where it gets hinky. There's safety checks in the code "or so I'm told by the …

Member Avatar for MoreBloodWine
0
94
Member Avatar for Aventurine

Hi there, I am a PHP developer and know little of JS - in my current project I have hit a few probs as I know I need to incoporate some JS. After some help already from this community I have almost completed the JS part of one page that …

Member Avatar for Aventurine
0
208
Member Avatar for showman13

Good Morning All, Hopefully someone out there has a resolution to this issue. I have a form that I want to use drop down boxes for the country and state. That is no problem, I already have them. The issue comes in when someone has filled out the form, but …

Member Avatar for showman13
0
127
Member Avatar for itisnot_me

ok so i am running into this problem that i cant seem to fix. trying to make a dynamic query. i am grabbing variables from post data and trying to put them in the query but everytime i try to run the query it doesnt work. [CODE] $id = $_POST["id"]; …

Member Avatar for itisnot_me
0
268
Member Avatar for vizz

I want to create facebook style friends system How to send,accept and manage friendship? can anyone help me? Thanks.

Member Avatar for sudeepjd
0
375
Member Avatar for newweb

Hi, I have created a simple shopping cart using session array, selected products are stored in the table. So far I have no problem! I wish to remove (using x) individual product from the table/array, but I cannot access it. Is anyone SESSION expert who can help? Thanks in advance! …

Member Avatar for newweb
0
3K
Member Avatar for tusharpatel

Hi, I am using scribd api in my site when i am using 'docs.search' as per they told, i got complete response. but when i am using [B]docs.browse[/B] as per they told its not working, it's not giving me proper output or response. I am using [B][url]http://api.scribd.com/api?method=docs.browse&api_key=apikey&category_id=240&my_user_id=43409216[/url][/B] but its not …

0
48
Member Avatar for debbier

I need to iterate through an array, starting with the first element, in chunks of, say, 5, then break off and do something else with the array, then go back to where I left off. I'm confused about how the array counter, using next, or current etc. would work. How …

Member Avatar for debbier
0
167
Member Avatar for nsam

Hi Everyone, Can somebody help me out in this problem. I am getting a value from 1 page to another through $_GET[]. When I redirect to other page it shows me its value in URL as well as in a query where I am using it further as this. Here …

Member Avatar for mohanrajit.88
0
148
Member Avatar for gikonyo

am new to webdesign .can someone guide me on how to implement imap using php,on a web based system.please.

Member Avatar for wilch
0
75
Member Avatar for StarTrekCafe

hi. a blind web site designer using the jaws for windows screen reader from [url]http://www.freedomscientific.com[/url], and now downloaded and installed wamp server 2.0, and got word press. as started a full blown star trek application using visual web developer and my sql epxress 2008, but now want to change to …

Member Avatar for StarTrekCafe
0
634
Member Avatar for ankit.pandey3

[CODE]<?php require_once('database.php'); $query="select * from news"; $result=mysqli_query($dbc,$query); while($row=mysqli_fetch_array($result)){ $Title=$row['Title']; //$Content=$row['Content']; echo $Title; echo "<a href=''>$Title</a><br>"; } ?>[/CODE] [QUOTE][B]Hi friends.... [B]I have a table named news which contain columns such as Title, Content,NewsId and many more. I want to display titles in form of link and [COLOR="Red"]when we click any link …

Member Avatar for mahavir123
0
206

The End.