39,402 Topics

Member Avatar for
Member Avatar for bigwhiteegg

how do I read a website's source code line by line and store it as string for modification??

Member Avatar for bigwhiteegg
0
86
Member Avatar for Zaderzun

I'm 20 and still a bit fresh out of high school. I have basic html knowledge and basic knowledge of macromedia dreamweaver. I've heard of PHP and am curious about it. Is it better than HTML? If so I would like to know where I can start learning basic PHP …

Member Avatar for tomato.pgn
0
80
Member Avatar for kofawais

dear i am facing problem in populating array in my code as when i poulate an array in add code it works and when i do same in the edit section it gives undefined index error so how to solve this when press add button to add fruits from the …

Member Avatar for kofawais
0
103
Member Avatar for CJdamaster

Hi there, Because of browser wars and whatnot, a lot of CSS3 components have to be written in many different syntaxes to work. E.g. -moz-box-shadow and -webkit-box-shadow (even though they're identical in format) So, my solution is to write simple flags in the CSS file which a PHP script will …

1
57
Member Avatar for TechySafi

[CODE] $threadquery=mysql_query("SELECT * from threads where topic_id='$id'"); while($getthreadrows=mysql_fetch_row($threadquery)) { echo "<div class=singlepost>".$getthreadrows[2]."</div>"; }[/CODE] You can see Its fetching each comment into a div. But I need to do one additional thing too. Each comment may have some reply comment. How to get em like simple thread style as we see …

Member Avatar for TechySafi
0
89
Member Avatar for Priyanka88

Hello ,I am newbie..I am trying to configure Apache2.2 server for running .php files,but while editing apache/conf/httpd file its saying "Access is denied"..Please help me out

Member Avatar for dottomm
0
84
Member Avatar for ndeniche

Hello guys. I'm developing a web application in which I have to connect to a mssql server which is connected through a proxy server. I have allowed data transfers for the MSSQLSERVER service, and allowed connections for port 1433. I've read that this is absolutely insecure, and it still gives …

Member Avatar for dottomm
0
190
Member Avatar for phaedrusGhost

Hi all, I am trying to work with Songkicks API to display the bands events from a list on my web page. I've queried the artists names and now want to get specific data from this link http://api.songkick.com/api/3.0/search/artists.json?query={$songkick_artist}&apikey=MYKEYGOESHERE\ The output get this result: {"resultsPage":{"results":{"artist":[{"uri":"[COLOR="Green"]http:\/\/www.songkick.com\/artists\/200900-coheed-and-cambria?utm_source=4361&utm_medium=partner[/COLOR]","displayName":"Coheed and Cambria","id":200900,"onTourUntil":"2011-09-23","identifier":[{"href":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ae1b47d5-5128-431c-9d30-e08fd90e0767.json","eventsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ae1b47d5-5128-431c-9d30-e08fd90e0767\/calendar.json","mbid":"ae1b47d5-5128-431c-9d30-e08fd90e0767","setlistsHref":"http:\/\/api.songkick.com\/api\/3.0\/artists\/mbid:ae1b47d5-5128-431c-9d30-e08fd90e0767\/setlists.json"}]},{"uri":"http:\/\/www.songkick.com\/artists\/2060710-coheed-and-amp-cambria?utm_source=4361&utm_medium=partner","displayName":"Coheed &amp; Cambria","id":2060710,"onTourUntil":null,"identifier":[]},{"uri":"http:\/\/www.songkick.com\/artists\/3236471-coheed-und-cambria?utm_source=4361&utm_medium=partner","displayName":"Coheed Und Cambria","id":3236471,"onTourUntil":null,"identifier":[]}]},"totalEntries":3,"perPage":50,"page":1,"status":"ok"}} …

Member Avatar for phaedrusGhost
0
155
Member Avatar for xxreenaxx1

I have a method that someone helped me with. Not sure what it means [CODE]echo ( $info['Ans_Answer'.$i]) ? " checked" : "";[/CODE]

Member Avatar for xxreenaxx1
0
92
Member Avatar for carebear23

I am designing a website that connects to a database. I am using wampserver to connect to the website. In my customer add page I am trying to ask the website to generate an autonumber from the database. As my table in the database is set up as following: [CODE=SQL]CREATE …

Member Avatar for tomato.pgn
0
142
Member Avatar for 54uydf

Hi, I'm using PhpMyAdmin 3.3.9 , on the tab Designer, I see the tables but I don't see the lines between them that mark the relations (like in sqlServer or Access) I defined the relations between the tables using the Relation View, so they exist..I even tried to creat relation …

Member Avatar for 54uydf
0
60
Member Avatar for OldDeveloper01

First of all i would like the paypal buttons to be hidden if their is no one logged. I am using $username to tell if someone is logged in. I have no idea how to tackle this right now, any pointers would be great. Thanks

Member Avatar for chrishea
0
95
Member Avatar for Inny

Hi there, I have set up a mailing form with captcha and it work great however in the form itself, it says action="mailer.php" . When its submitted, it tries to go a non existant page, aka [url]www.mywebsite.com.au/mailer.php[/url] My pages are php, can you help? I want it to work but …

Member Avatar for diafol
0
184
Member Avatar for jacob21

Hi, I am working on a job module where i have to fetch company name having more jobs. like abc 20 jobs def 30 jobs ghi 10 jobs jkl 40 jobs what i want to do, job order acc to job number like below jkl 40 jobs def 30 jobs …

Member Avatar for tomato.pgn
0
335
Member Avatar for didi00

I'm using the wp e-commerce plugin and the problem is that the info for the product is shown under the picture instead next to it. I'm using virgo theme but I've tried with other themes and still, the problem stays the same. The problem is this: [url]http://i53.tinypic.com/2vdflo4.jpg[/url] and I want …

Member Avatar for didi00
0
80
Member Avatar for navp

Hello, I am new to JavaScript, I have to make a pizza webpage for my assignment. I am done the HTML part and PHP part. I have a form and when the user clicks submit it calls the check() method in the JavaScript. Even if the fields are empty, the …

Member Avatar for vibhaJ
0
174
Member Avatar for jacob21

I have certain values in a table. car train metro car bike train car train car bike I want to count the number i.e. car(4) train(3) bike(2) metro(1) need help??????

Member Avatar for tomato.pgn
-1
81
Member Avatar for mr.sam

hi there i am newbee in PHP and i need some help, how can i user the elements stored in my database for my navigation bar?? <?php $keyword=$_POST['keyword']; $con=mysql_connect("localhost","root"); if(!$con) { die("could not connect"); } mysql_select_db('cms') or die("could not select db"); $sql= "select value from cms where keyword='$keyword'"; $result =mysql_query($sql); …

Member Avatar for urtrivedi
0
109
Member Avatar for branding4you

Hi I am new to PHP and looking to create a search php page, the search needs to be by Country, State and city. I have tried several methods over the last three weeks and none work, im slamming my head against my desk! Basicly I have three dropdown boxes …

Member Avatar for jayapalchandran
0
3K
Member Avatar for navp

Hey i have to make a pizza website for my assignment. I am done the HTML part and have finished the PHP more than half. I am trying to decorate it a bit and trying to use "\t" for tab, but its not working. Any suggestions? P.S. I have made …

Member Avatar for diafol
0
3K
Member Avatar for Tempest will

hi all, how do i use a drop down box to show my fields in my sql table ? below is what i have so far, i need to display all of the EmployeeIDs in the drop down box. [CODE]<select name="name"> <?php $sqlName="SELECT * FROM employeedetails"; $queryName = mysql_query($sqlName,$connection); $recordName …

Member Avatar for vibhaJ
0
115
Member Avatar for mikes1471

Hi I'm looking to provide a web based Email service on my own domain name, I could liken this to hotmail or gmail etc so you have an idea of what I mean. I am looking to create the web page in PHP and wonder if anyone knows if an …

Member Avatar for atom6402
0
78
Member Avatar for gambit_1607

Hi I have a select list on my form as the following [CODE] <form name="source_form"> <select id="sel_source_zero" name="sel_source_zero"> <?php $sources = _ajax_get_news_sources(); foreach ($sources as $key => $value) { print ("<option value=\"$key\">$value</option>\n"); } ?> </select> <input type="submit" value="Submit" /> </form> [/CODE] When the user selects a value from the list, …

Member Avatar for thephpdev
0
80
Member Avatar for puvi

Hi ppl, I have been using fpdf for a quite sometime now and it works fine, but at times when i make some changes(changes does not include printing/echo/redirecting before genrating pdf, but yes i do use lot of empty space/indentation for readability n this did not create problem earlier.) in …

Member Avatar for puvi
0
89
Member Avatar for kofawais

dear now i explain the specific problem here as i described earlier about the fruits so see the code as when i assign new currency from the drop down list , all the available currencies are there but for editing only the assigned currencies appear that i have assined earlier …

-1
40
Member Avatar for BBoz

I have had a business/website idea for the past few months now and know nothing about creating one from scratch. It is a very detailed idea and the site would be very large. I was just looking for suggestions on where to start with my idea, and what would be …

Member Avatar for chrishea
0
77
Member Avatar for GreaseJunkie

I hate to post a thread on this since I know this topic has been discussed ad nauseum, but I've been searching for weeks and cannot find exactly the answer I've been looking for. I'm new to arrays and loops - I get the concept, but not the syntax. Here's …

Member Avatar for hielo
0
387
Member Avatar for McLaren

Hi, I have one question: I am programming with PHP, CodeIgniter. But it may suit for other tools as well. I need to delete something from the table and I want to be sure that there will be deleted row from another table. In short - delete to rows, each …

Member Avatar for McLaren
0
443
Member Avatar for wzzcivic

Hi all, Can anyone direct me to a tutorial or help me out with this issue. I'm trying to import a word doc (.docx/.doc) and display it as a .php. Workflow 1) User logs in 2) User uploads doc or docx file 3) .php converts the doc file into a …

Member Avatar for diafol
0
49
Member Avatar for netroxy

Hello guys. I am trying to build a games website using PHP for database to store game information. I'm trying to learn how to fetch ID information. For example: www.blabla.com/games.php?id=12345 As you can see, right after games.php, there is '?id=12345'. Anyhow, when a user clicks or types this link, that …

Member Avatar for diafol
0
30K
Member Avatar for ankit.pandey3

[PHP]<html> <title>Micro Elite Brigade - Participated Events</title><LINK REL="SHORTCUT ICON" HREF="images/favicon.png"><?php require_once('upper.php'); if($_COOKIE['LoginIdCookie']){ require_once('database.php'); require_once('LoginStatement.php'); $LoginId=$_COOKIE['LoginIdCookie']; $query="select * from participation where LoginId='$LoginId'"; $result=mysqli_query($dbc,$query) or die ('Not Connected'); //echo "<div class='search_output_data'> echo "<table border='0' cellspacing='0' cellpadding='0'>"; echo "<tr><th align='left' valign='top' width='100' height='20'>Event Title</th> <th align='right' valign='top' width='250' height='30'>Date of Participation</th> </tr>"; while($row=mysqli_fetch_array($result)) …

Member Avatar for diafol
0
97
Member Avatar for youvi

Hello, Please provide me the query to join 3 tables using INNER JOIN... Thanks

Member Avatar for diafol
0
90
Member Avatar for karthik_ppts
Member Avatar for karthik_ppts
0
2K
Member Avatar for xxreenaxx1

I am printing question number with the correct answer as 1 and wrong answer as 0. Now I would like to count how many correct answers for each question. Example of this: Question number: 8 00110 For this example there are two correct answer. [CODE] $scoree = 0; $intt = …

Member Avatar for xxreenaxx1
0
98
Member Avatar for jpknoob

Hi, I decided to try and upload images by storing their path in a database, but have run into an error when displaying the images. The form works and the folder is populated whenever I run the script. I have tried a lot of solutions from similar threads, but to …

Member Avatar for jpknoob
0
111
Member Avatar for raf.fredi

How to read multilingual emails using php? I don't want any webmail script. I want to use imap/pop3 functions [URL="http://www.php.net/manual/en/function.imap-open.php"]http://www.php.net/manual/en/function.imap-open.php[/URL] Following code works well for listing emails but have some errors and it cannot read email other than ENGLISH language Help Anybody [CODE] <?php // Inbox // Display Messages from …

Member Avatar for mr_sps
0
554
Member Avatar for Dmennite

Ok the issue I get is passing variables to dynamic pages for example page1 has a combobox with all states to used to search a database for example: [CODE]<tr> <center><form action="page2.php" method="post" name="statesearch" id="statesearch" > <td><div align="right">State</div></td> <td width="25%" align="center"><select name="state" onchange="statesearch.submit();"> <option value="" selected></option> <option value="AL">Alabama</option> <option value="AK">Alaska</option> <option …

Member Avatar for karthik_ppts
0
622
Member Avatar for joomphp

Hi! how can create advanced api in php/mysql authenticate with api key, userid username etc. any good tutorials etc Please post links for me

Member Avatar for joomphp
0
71
Member Avatar for dalip_007

Hey Guys, i have a twitter like website, where user can post tweets longer then 140 characters as well. But what I want is to make just 140 character visible initially and then show there a link preceded by dots like: "sample text sample text sample text sample text sample …

Member Avatar for vibhaJ
0
63
Member Avatar for jrotunda85

So I'm trying to figure out the best way to go about setting up an image upload system for my site. Basically we have, let's say, 2,000 stores in our database currently (that number expands by the day). I want users to be able to upload images for each store …

Member Avatar for diafol
0
139
Member Avatar for divyakrishnan

Hi , I want to access a pdf file by clicking a hyperlink using PHP.the pdf file is stored on a shared folder of a storage machine.It work with internet explorer.But with firefox and chrome its not working.Showing error on chrome as "The loading of the URL has been blocked …

Member Avatar for divyakrishnan
0
147
Member Avatar for xxreenaxx1

I am working on a rule to find out which question has the highest correct answer. Not sure how to work with this. But here is an explanation of what I have so far and what I want my program to do. I have question and answer table Question: questionid,QuestionName, …

Member Avatar for Akash Saikia
0
80
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
66
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
76
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
199
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
103
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
164
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
175
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
111
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
98

The End.