39,326 Topics

Member Avatar for
Member Avatar for saadi06

Hi I am trying to concatinate anchor tag and it is giving me this error Parse error: syntax error, unexpected T_STRING My code is [CODE]$link.="a href=".test.php/verify_email/$vcode." target=_blank>".Verify email address."</a>"; [/CODE] Can anybody help Thanks in advance

Member Avatar for jigarvyas
0
78
Member Avatar for newbie14

Dear All, I have two .php page. In my main php I call the other via the require_once method. Then in the main .php I declare and assigne variable and I tried to read the value in the require_once php I am not able to see the value. How can …

Member Avatar for jigarvyas
0
92
Member Avatar for newbiecoder

Hello I am trying a code from a book, When I run it at local host and enter a number on the box I get this error : Have requested is not allowed to access the directory. Directory, or to read protected, or can not be read by the server. …

Member Avatar for happytogether
0
113
Member Avatar for Kubekingdom

I have this login ,and if I put the password Denver1999 it logs in the user and does not care about the real password. Help.

Member Avatar for chrishea
0
38
Member Avatar for shawtyred74

Hi, I am new to php and I am totally lost on what steps I need to take in order to create a website that will allow a user to login with an email address and password or subscribe or unsubscribe. if they choose to subscribe then they should be …

Member Avatar for Stefano Mtangoo
0
101
Member Avatar for dave086

Hi, I have searched for this for a long time, but cannot find the answer... sorry if it's simple or is on here already, I did look! Anyway - I'm trying to overlay text from a database on an image using php for use in banner ads for a client. …

Member Avatar for Stefano Mtangoo
0
147
Member Avatar for showman13

I have a DB table that has a member ID field and a level field... There can be duplicate member IDs because they can have multiple steps There can be duplicate step numbers because multiple members can be on the same step But there should NEVER be a duplicate combination …

Member Avatar for diafol
0
158
Member Avatar for adambeaumont

Good Afternoon, I have been struggling with a minor issue for the past several hours, I need help. ok I know I can use date('Y-m-d', strtotime($date . '+4 day')); for specific days but I need to be able to x amount of days adding to a specific date. Any help …

Member Avatar for adambeaumont
0
94
Member Avatar for MoreBloodWine

First, wasn't sure where to put this so I stuck it here because of the PHP files involved. Any way, what would need to be written into my sites .htaccess file to "ping" a php file when an image is called ? So if I type mysite.com/image.jpg into my browser, …

Member Avatar for smantscheff
0
274
Member Avatar for designalex

hi, i have a form with a few fields including 3 image fields: the problem that i am having is that on the 3rd images upload it just does nothing. i can upload using any 2 of the image inputs and it will work fine but as soon as i …

0
77
Member Avatar for showman13

Good Morning, I'm not really sure where to go with this line of thought, so decided to bring it here where the logical thought processes reside... ;) What I have is this... A new membership program that has multiple levels that members can be paid on. Each level is tracked …

Member Avatar for showman13
0
329
Member Avatar for Aser Gado

I am creating a visitor messages system on a member's profile, here is my code so far.. I am using it as an include in the profile page, here is the error I get: [CODE]Error: You have an error in your SQL syntax; check the manual that corresponds to your …

Member Avatar for diafol
0
111
Member Avatar for joshvanslam

Hey, this is my first post here, so greetings lol. Back to the topic, Is it possible to make a text box that can put the text into html code and if so how? Sort of like the box you type your post's with on forums or blogs.

Member Avatar for diafol
0
153
Member Avatar for cliffcc

If I have an event which consist of 100 tasks, how to rewrite the below code,so i can show all the dealine of each task into <table>? Thanks! [CODE] <?php require("connect.php"); $deadline = mysql_query("SELECT * FROM events WHERE taskid='1001'"); $row= mysql_fetch_assoc($deadline); $deadline2 = ($row['deadline']); //dealine for this task(1001) is 2011-3-10-5-45// …

Member Avatar for diafol
0
119
Member Avatar for Staggasaurarts

Hi, i would like to send data from a C++ application to a php script i am creating that will then put it into a mysql database after manipuating it a bit. If you don't get what i mean then think of it like this. An HTML form can be …

Member Avatar for ziggystarman
0
1K
Member Avatar for feoperro

Hi, I'm trying to somehow download all pictures on a website FIRST before anything else happens... the problem I'm experiencing is that when a user comes to the site - none of the images are loading, sometimes they show, sometimes they don't... I believe that if the client downloads all …

Member Avatar for samarudge
0
127
Member Avatar for samcreator

Hi all I want to create following payment gateways with only php paypal visa bank transfer master card but the problem is I only want to use simple php in other words without frameworks like magento. How can I do this.that would be really nice if you can provide me …

Member Avatar for samarudge
0
110
Member Avatar for tape enterprise

well I am having a problem with my class I made to connect to my DB ok here is the class[CODE]class database { private $db_host = 'localhost'; private $db_user = 'root'; private $db_pass = 'McSteel8'; private $db_database = 'cmte'; public function connect() { $this->link = mysqli_connect($this->db_host, $this->db_user, $this->db_pass); mysqli_select_db($this->link, $this->db_database …

Member Avatar for tape enterprise
0
86
Member Avatar for MDanz

i have a form on submit.php, with method post to the same page($PHP_SELF). If i made a mistake i want to be able to press 'Go Back' to the previous page(same page) and have the values in their textfields. [code] if(isset($_POST['new'])) { <a href='#' onClick='history.go(-1)'>Go Back</a> } else { // …

Member Avatar for Airshow
0
136
Member Avatar for Stefano Mtangoo

I'm doing a project and would like to hear your opinions. I want to make Integrated library system and I want to have these folders 1. classes - where all classes will be stored 2. templates - where all templates will be stored 3. admin - where admin files will …

Member Avatar for Stefano Mtangoo
0
119
Member Avatar for rajandass65
Member Avatar for R0bb0b
0
131
Member Avatar for Lapixx

Hi, I was reading a few articles about secure login systems without SSL, as it looks a bit difficult to set up a server to accept HTTPS connections, create a certificate etc. Anyway, the main problem would normally be that when a user logs in, the password is sent to …

Member Avatar for Stefano Mtangoo
0
235
Member Avatar for codemonkey88

Hello, I have been developing a cms system using php and for some reason it has suddenly started printing a ƒ character at the top of the page. There are no errors returned, and the page has all expected functionality but it is pushing my layout down, skewing the design. …

Member Avatar for codemonkey88
0
112
Member Avatar for BleepyE

Im trying to right my first php script. Im trying to get the script to look at a defined site's source to see if a length of code is present. Ive been given this by a friend but im not sure its working as I get this error, and it …

Member Avatar for BleepyE
0
338
Member Avatar for eng.mina

hello every one i was looking for some help in this php code i have php code for gallery flash required file >> data.php to show pic and thumbs and categories can any one help me in the code if there was some thing wrong [CODE]<? include('init.php'); define('LF', chr(10)); print …

Member Avatar for eng.mina
0
194
Member Avatar for ankita17gupta

This is my code [CODE] <?php $ebits = ini_get('error_reporting'); error_reporting($ebits ^ E_NOTICE); mysql_connect("localhost","root","") or die(mysql_error()); echo"Connected to MySQL<br /><hr/>"; mysql_select_db("college") or die(mysql_error()); echo "Connected to database<br /><hr />"; $query = "select student.Rollno, departments.Dept_name, student.Name, student.PercentsgeSoFar from student inner join(departments inner join studentdept on studentdept.Dept_id = departments.Dept_id)on student.Rollno = studentdept.Rollno "; …

Member Avatar for ankita17gupta
0
94
Member Avatar for andrewliu

Hello, I have a problem that I'm trying to figure out. I'm trying to come up with a solution where I have multiple links in a form... Let me give an example : [CODE] <form name='newForm' method='post' action=''> while($row .....) { <input type='hidden' value='".$id."' name='selBillAdd'/> <a href='#' onclick='document.forms["newForm"].submit();' >Use This …

Member Avatar for andrewliu
0
149
Member Avatar for it2051229

I can't find the forum section for Apache here in daniweb so I just posted it here in PHP because we typically use Apache with PHP. The problem is not concerning with my PHP program but with the settings of apache. The domain of my website is "www.whatever.com" (this is …

Member Avatar for Shanti C
0
163
Member Avatar for xagutxu

When I execute my php script with this sql code: [CODE]$key = "aaaabbbbccccddddeeeeffffgggghhhh"; $con = mysql_connect($sql_host, $sql_user, $sql_pass) or die ('Error connecting to mysql'.mysql_error());; mysql_select_db($sql_db, $con) or die("Could not select $sql_db"); // To work in "utf-8": $query = "set names 'utf8'"; $result = mysql_query($query); // Query: $query = "UPDATE personaldata …

Member Avatar for Shanti C
0
88
Member Avatar for Fresco Vivir

Greetings everyone i'm working on small php project and you help me a lot so far , what i want to know is how can i know the name of last column in a table i found away to know the last record in a column thats SELECT LAST(column_name) FROM …

Member Avatar for diafol
0
130

The End.