39,323 Topics

Member Avatar for
Member Avatar for clarkthe

Is it possible to create a bot in php along the lines of something that acts like a irc trivia bot. if so could someone steer me in the right direction to get that started. thanks.

Member Avatar for Wraithmanilian
0
64
Member Avatar for erza26

Hello...i'm new here...juz want to ask some help from anybody..i've done search coding..the problem is, how i want to print it in pdf form...or can i use this coding <input type="button" value="Print Vendor Detail" onClick="window.print()" /> to print the details...hope someone can help me...thanks...:$

Member Avatar for erza26
0
74
Member Avatar for Awah Mohamed

hey people. this is my 1st time to get this error. i usually save cookies using this code: [CODE] <?php $time = time()+60*60*6; // the time is saved for 6 hours // then save the cookie with the $id data setcookie("ln", $id, $time); ?> [/CODE] but with my new website. …

Member Avatar for diafol
0
189
Member Avatar for Cece Skies

Hello. Is PHP hard to learn? :sweat: I would like to incorporate it on my website. Thanks!

Member Avatar for chrishea
0
98
Member Avatar for Chubbymouse

Hi there, I have some code on a page to extract info from a database (like a back end system) and I just wondered if there was anyway I could do a shortcut around the code to avoid doing multiple SELECT statements. e.g [CODE]<?php $result = mysql_query("SELECT * FROM quackedup …

Member Avatar for gokhanfil
0
161
Member Avatar for nitnayak

This is probably a stupid question, but I don’t know this stuff and need some help. I have a form with 2 text box, and I want to pass the user-entered contents of the 1st text box to a php variable ($size)(without posting the page) on onBlur of 1st textbox. …

Member Avatar for tomato.pgn
0
172
Member Avatar for xxreenaxx1

I am trying to read from a file and insert this to a database. But the error message is giving me trouble [QUOTE] Notice: Undefined offset: 1 in C:\xampp\htdocs\test\try2.php on line 15. This is the error message. On line 15 is: $userName = $tmp[1];[/QUOTE] my code is [CODE] <?php mysql_connect("localhost", …

Member Avatar for xxreenaxx1
0
107
Member Avatar for rajeesh_rsn

Hi friends I heard a lot about joomla and downloaded and installed in my pc. I likes to study joomla and I just created some articles using joomla and all. Did activities like admin login , meta tag editing from admin panel and all. But I read from some where …

Member Avatar for digital-ether
0
95
Member Avatar for jatinder kumar

Can anyone help me to apply practical formtomail PHP script for website I have try 9-10 PHP scripts but I got no email in my inbox.

Member Avatar for diafol
0
90
Member Avatar for cliffcc

How to show the time and data in the user's timezone? I don't know it at all! Can anyone teach me? Thanks!

Member Avatar for digital-ether
0
178
Member Avatar for ray_broome

Hi, I have a situation where i am inserting to two tables from a web form but the first table needs to be inserted to so i can get the PK, then use the PK to insert into the second table. So what I would like to do is rollback …

Member Avatar for onlysumon
0
1K
Member Avatar for russellharrower

So I got most of the code working, but what I am trying to do, is say someone post the following This is a great youtube video [url]http://www.youtube.com/watch?v=pkrM7x0_fcI&feature=channel[/url] what do you think. I want it to turn the youtube link to [url]http://www.youtube.com/v/pkrM7x0_fcI[/url] but keep the text that they typed so …

Member Avatar for vinnyBenson
0
623
Member Avatar for raf.fredi

I'm posting my code for reading email It have problem with displaying images inside email as well as it can not display email properly other than English language Is there need of email parsing? I don't know how to go with email parsing [COLOR="Red"]config.php[/COLOR] [ICODE] <?php $ServerName = "{mail.host.com:995/pop3/ssl/novalidate-cert}INBOX"; $UserName …

0
72
Member Avatar for phouse512

Hello all, I'm working on a comment script to produce a string of XML to be used for one of my ajax applications. However, I cannot figure out how to produce the xml. Assume that the passing of the parent_id variable is working for now. Here's the code I'm using …

Member Avatar for hielo
0
93
Member Avatar for joomphp

hi! i have some html code like this [CODE] The Chihuahua Desert <a href="index.php">Dirt</a> Fest is <a href="/index.php">coming <a/>up, next February 17-19. <a href="http://google.com">Three</a>[/CODE] i want to replace /index.php with [url]http://google.com[/url] and index.php with [url]http://google.com/[/url] and idea how can i do this

Member Avatar for pritaeas
0
185
Member Avatar for Coderunner

Hello all, I have a php script but want to add some more features but I got stock. I hope somebody can help me cause I'm a beginner in php. The php script so far show all files in the root dir and subdirs in descending order of last modified …

Member Avatar for Coderunner
0
590
Member Avatar for ahsan1

I am getting states from database on change of countries but not cities. Here is the code: <?php include("include/connection.php"); ?> <html> <head><title>Contact Page</title> <script type="text/javascript"> function AjaxFunction(cat_id) { var httpxml; try { // Firefox, Opera 8.0+, Safari httpxml=new XMLHttpRequest(); } catch (e) { // Internet Explorer try { httpxml=new ActiveXObject("Msxml2.XMLHTTP"); …

Member Avatar for chrishea
0
97
Member Avatar for chaitran

hi friend,i need to write php script for automatic email remainder..............any one can help me.

Member Avatar for makman99
0
59
Member Avatar for kokfui

hi all, i actually asking is it possible to make a php code keep running or auto refresh? my case is i having a countdown code, which will countdown to a specific time let call it End_date, i want to write a code which will check if(current_date=End_date) {remove a page}; …

Member Avatar for diafol
0
59
Member Avatar for kokfui

CODE 1 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time echo $today; ?> CODE 2 <?php ini_set('date.timezone', 'Asia/Kuala_Lumpur'); $today = Date('y.m.d H:i:s'); // current time $query= "UPDATE items SET post_date = '{$today}' WHERE item_name='$item_name'"; mysql_query($query); ?> hi all, as you all can see, i have two similar code …

Member Avatar for diafol
0
131
Member Avatar for abhi10kumar

[CODE] $lines = file('http://www.adexmart.com/product.php?id_product=276&utm_source=shopmania&utm_medium=cpc&utm_campaign=direct_link'); // Loop through our array, show HTML source as HTML source; and line numbers too. foreach ($lines as $line_num => $line) { if(htmlspecialchars($line)=="</div> "); echo htmlspecialchars($line)."<br>"; } ?> [/CODE] I am printing lines (all html code) successfully, but I dont able to check a condition for …

Member Avatar for vibhaJ
0
115
Member Avatar for prakashghai

Hi Everyone I have a webform, from which i want records should be submitted into two tables under same database name. My code is [CODE]<?php $con = mysql_connect("localhost","************","***********"); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db("qserves1_uksurvey", $con); $sql="INSERT INTO forms (date, Receivingsky, Title, Firstname, Lastname, House, Street, …

Member Avatar for vibhaJ
0
115
Member Avatar for dornaled

hi any body tell me where use in PHP this function $_GET on websitedesign and why I use this. tell me ? thanks and advanced.

Member Avatar for diafol
0
102
Member Avatar for samrodrick

A cookie is a flat file that stores tiny bits of information. It is stored on the client’s machine and is passed to the client when they visit your site. Each cookie can store anything from usernames to number of visits to a site. This tutorial will teach you how …

Member Avatar for diafol
-1
215
Member Avatar for dalip_007

Hey guys I have an encrypted ip address in php like $visitor_ip = ip2long($_SERVER['REMOTE_ADDR']); $visitor_ip looks like this 1860881473 can i decrypt this number to get a proper ip like "42.108.196.150""? if there is a way todo so? Thanks again

Member Avatar for dalip_007
0
71
Member Avatar for 54uydf

OK, I need help!!!!!!! I've tried every advice I could find on google, nothing works for me!!!!! my DB has data in hebrew I can't figure out how to set the collation and everything else right so that my site would show the data in hebrew when I echo it …

Member Avatar for 54uydf
0
172
Member Avatar for Awah Mohamed

hey people . i am trying to set a cookie but when ever i try to set it, it says : [CODE]Cannot modify header information - headers already sent by (output started at C:\xampp\htdocs\signup\conf.co.signup.php on line 13[/CODE] please help me with this. this is my code: [CODE] <?php error_reporting(-1); if(isset($_COOKIE['logedin'])) …

Member Avatar for Awah Mohamed
0
240
Member Avatar for jacob21

Hi, I am uploading a file & sending uploaded file to mail id. its working fine.I want to add validation in it. when there is no uploading of file.it shows error i.e mail sending failed due to unattached document. My code is [CODE]<?php if(isset($_POST['Submit'])) { $file = $_FILES['uploadedfile']['name']; $target_path="upload/"; $target_path …

0
51
Member Avatar for s7mo

I am 4 months new to PHP! So please be gentle with me. : ) I have an input form that contains check-boxes(it works and posts array to database correctly!) I have an update form that contains the same check-boxes (it updates and posts array to database correctly BUT IT …

Member Avatar for vibhaJ
0
1K
Member Avatar for dschuett

I have a php script that pulls several rows of invoices from a database and displays them on the screen in table format. I have created an onclick per row within the while loop in order call another php script that runs a query to pull all the attachments for …

Member Avatar for Akash Saikia
0
1K

The End.