41,416 Topics

Member Avatar for
Member Avatar for liamfriel

Hello all, I am trying to use more regex but I can't seem to get this to work. The aim is to check inputs for either [url, [link or <a href: [CODE] $islink = false; foreach($_POST as $k => $v){ if((preg_match("/[url|[link|<a href/i", $v)) > 0 ){ $islink = true; } …

Member Avatar for liamfriel
0
177
Member Avatar for mrlol

Hi.. Good day.. thank you for viewing my thread.. i would like to ask my fellow frens in daniweb to help me to validate access in my assignment system... currently my database is like this: [CODE]Assignment_id | Assignment_name | Member | Remarks 1 test 1 John, Sue, Veronica ok ok …

Member Avatar for perfectweb
0
148
Member Avatar for daniel955

Hi I am experienced in ASP w/ C# but a beginner in PHP: How do I get the value of a unique index of a column of mySQL in PHP: [CODE=C#] try{ //do connect //insert data } catch(Exception ex){ if (ex.Message.IndexOf("Column_Name") >= 0) //<-- how do I do this in …

Member Avatar for perfectweb
0
154
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
104
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
87
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
108
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
77
Member Avatar for Member #851298

[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 Member #851298
0
114
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
220
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
175
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
105
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
153
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
72
Member Avatar for Member #900048

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
115
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 Member #120589
0
203
Member Avatar for RabidDog5150

Brief intro (ummm): - Software developer for +/- 10 years now - Work with C#, Java, PHP (and others just can't remember them now) and all peripheral markup languages (HTML, XML, XSD etc etc) - Enjoy collaboration, analysis, solution architecture, solution designs and patterns - Stickler for quality and maintainability …

Member Avatar for JamieLynnSEO
0
175
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
90
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
113
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
4K
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 Member #120589
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
135
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
85
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
90
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
106
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
46
Member Avatar for rajeesh_rsn

Hai, I am a PHP developer and I had completed a social networking project. In this project users can create their profile and upload their photos and messaging as the all other networking sites can do. And I am very new to SEO .... I need to do some SEO …

Member Avatar for beatricedns
0
247
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
88
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
466
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
470
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 Member #120589
0
54
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 Member #120589
0
30K
Member Avatar for dschuett

I have an onclick that triggers ajax which calls a php script to pull data from MySQL. This information is then displayed in a div. The problem I am having is that sometimes pulling the data from MySQL takes 2-3 seconds, so the div is empty for about 2-3 seconds. …

Member Avatar for dschuett
0
419
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 Member #120589
0
114
Member Avatar for youvi

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

Member Avatar for Member #120589
0
106
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
117
Member Avatar for Member #165061

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 Member #165061
0
121
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
569
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
632
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
83
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
69
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 Member #120589
0
151
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
166
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
94
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
70
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
94
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 Member #120589
0
214
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
116
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
188
Member Avatar for aixloo

I've installed IP bord latest software to my website....but it doesn't work...PLZ somebody help me...!! if someone is willing to install that software to my website, i'm ready to gv my FTP password and everything..!! plzzzz help me out...!!!

0
87

The End.