39,319 Topics

Member Avatar for
Member Avatar for panam72

Need help with the following to put a website back online. Im not the most experienced PHP programmer so yuor help is appreciated. The error: Parse error: syntax error, unexpected T_STRING in /home/stacklab/public_html/includes/content/homepage_content.php on line 5 The Syntax: <?php define("HOMEPAGE_CONTENT",'<div align="justify" class="homepageContent"><p><h1> Buy Legal Steroids & Bodybuilding Supplements Online - …

Member Avatar for Clawsy
0
215
Member Avatar for shishtawitch

how can i access my root folder as subdomain with .htaccess...!! i.e mydomain.com/folder to folder.mydomain.com without manually creating it as subdomain in cpanel

Member Avatar for cwarn23
0
68
Member Avatar for andrewsCWD

I have a php script which validates some form information submitted by the user. This information is then stored in my database. I use a do...while to ensure that duplicate email address are not submitted to the database. The script worked fine the first time I ran it, it entered …

Member Avatar for network18
0
170
Member Avatar for thelasttickets

Hi Friends any body use socialnetowrk API to integrate website to get the content of the user for sending invitation from my social networks and gmail,yahoo,hotmail mailing server . Thanks <FAKE SIGNATURE>

Member Avatar for ithelp
0
66
Member Avatar for levsha

I tripped on this one. I have an HTML form that has all kinds of input elements - text, textarea, radio buttons and checkboxes. I have no problem inserting or updating data in MySQL DB from the HTML form. But when I want to display what is already in the …

Member Avatar for venkat0904
0
179
Member Avatar for AdventDeo

Hello! I'm trying to extract a php table to an excel file. There's only ONE bit of problem. My table has alternating colors for each row and, lets say once extracted my cells range from A1:G20 in Excel, but instead of just coloring A:G, the row colors went all the …

Member Avatar for chaines51
0
109
Member Avatar for futhonguy

Hi, Currently i have 3 Tables - A, B and C. All 3 tables have their unique IDs (which are auto increment) and Table B and C are a foreign keys to Table A. says: Table A = A_id, A_fname, B_id, C_id Table B = B_id, B_add, B_pcode Table C …

Member Avatar for futhonguy
0
184
Member Avatar for Phil++

That I can get the street name from a post code in PHP? For example, someone enters their post code and it comes up with the street name rather than them having to type the whole thing out? Please help

Member Avatar for almostbob
0
150
Member Avatar for Arianna

Just so you know, I'm a PHP beginner, so I won't understand complicated stuff or anything of the like. xP I've started to make a part of my website (may I link to it, or should I just post the code) and I'm pretty happy with it. A user can …

Member Avatar for Arianna
0
278
Member Avatar for scottholmes

I have a snippet of code, thus: [CODE]$match |= in_array($type, $types);[/CODE] but I am unfamiliar with the |= expression and have been unable to find it in the PHP manuals.

Member Avatar for scottholmes
0
74
Member Avatar for Bhuddha

I have an issue. My form/submitform, isn't breaking/spacing, the information its emailing me.. I've tried everything I can, and for some reason, its still not doing it, anyone have a solution? I've been researching for 3 days trying to find answers, I've tried the answers shown online, and none have …

Member Avatar for Bhuddha
0
86
Member Avatar for tmv105

Can someone help me store a string that has an apostrophe within it? I thought that using [B]mysql_real_escape_string[/B] was supposed to add a slash when retrieving, but remove the slash before storing. Here is a portion of my code and then also the result of the data after it is …

Member Avatar for Atli
0
125
Member Avatar for web3

I made star voting script and i was wondering how to display average result?

Member Avatar for mattsmomdotcom
0
75
Member Avatar for tobisan

Hi there. Im pretty new to PHP and have made a terrible mistake, Im getting this message Parse error: syntax error, unexpected T_STRING ......functions.php on line 2 the site workd fine but failed once Ive tried to add a sidebar, Ive tried to replace the function.php code Ive just eddited …

Member Avatar for tobisan
0
427
Member Avatar for muralibobby2015

hi, i am doing mailing concept in php. In this admin side admin send mails to users with attached files. but i wrote normal code for email without attachments. how to write code for attachfiles.

Member Avatar for muralibobby2015
0
99
Member Avatar for lydia21

hi, i want to implement paging concept in php with mysql.i tried lot of code.....the page next,prev links at the bottom which is used to move to and fro is not working please do give a code for paging........

Member Avatar for farrukh1
0
144
Member Avatar for muralibobby2015

hi, i heared at some where.....using .js files in our script webpage disturbs a lot....i mean webpage loads slowly...is it write or wrong?

Member Avatar for network18
-3
69
Member Avatar for phpbeginners

Is there anyway so that i can make my dll and put my functions in dll and then access them so it protects my function source code.

Member Avatar for network18
0
109
Member Avatar for shishtawitch

hi, my problem is, that i want to access my root folder as subdomain using php or htaccess..........!! i.e if i have a folder like => [url]http://www.mydomain.com/folder[/url] should be automatically changed to => [url]http://folder.mydomain.com[/url] i have cpanel hosting accounting not reseller.........!!

Member Avatar for network18
0
78
Member Avatar for muralibobby2015

[CODE] <?php ob_start(); extract($_REQUEST); extract($_POST); session_start(); $con = mysql_connect("localhost","root",""); if (!$con) { die('Could not connect: ' . mysql_error()); } $db=mysql_select_db('murali',$con); $message = ''; $error = array(); $select=mysql_query("select * from registration where username='$_REQUEST[username]'"); $taken_usernames=mysql_fetch_array($select); // main submit logic if (@$_REQUEST['action'] == 'register') { $resp = check_username($_REQUEST['username']); if ($resp['ok']) { $message = …

Member Avatar for venkat0904
0
122
Member Avatar for n_hernandez

I have created a website using dreamweaver. I am very new to all of this and have kind of been learning along the way. At any rate, I CANNOT get the booking request form to submit the gathered info to my email. I do not like the mailto: option because …

Member Avatar for phpbeginners
0
178
Member Avatar for vaseemansari

i have installed joomla 1.5 on my local server now want to embed vurtue mart with that joomla so can anybody guide me how to do this as i have downloaded files from vurtuemart.net but instructions are not up to date that make me explain any help would be appreciable. …

0
57
Member Avatar for phouse512

Hello, I've looked on google for information about storing multiple pieces of information in one database column, but I can't find anything helpful. If I want to have some sort of etc. inventory, and there is more than one 'item', how would I store multiple items inside the database? Thanks

Member Avatar for Designer_101
0
107
Member Avatar for rvdb86

Hi, I am trying to create a script that checks that the posted values from a form exist in an array. This is simple if the user has to fill out all the fields, but they don't so I need to check the $_POST array to see which variables exist, …

0
54
Member Avatar for codewalkz

RewriteEngine on RewriteRule ^([^/\.]+)/?$ index.php?j=$1 [L] This makes index.php?j=sample look like [url]http://www.domain.com/sample[/url] Now, i want to except [url]http://www.domain.com/account[/url] from the rewrite rule. How can I proceed? Thanks a lot!

0
65
Member Avatar for knarffrank
Member Avatar for kiranhg.2008
1
258
Member Avatar for marulu

I am in the process of learning PHP with JS and Ajax and have the foll. problems. I have created a class to generate master data entry screens. (1) Javascript code that works when I run master.class.php independently does not work when I run users.php. I came across this problem …

0
143
Member Avatar for dpatz

Hi, I am reading in a bunch of files to upload but they are in an array: [CODE]<input id="tab1file0" class="tab1Files files" type="file" name="tab1file[]" /> <input id="tab1file1" class="tab1Files files" type="file" name="tab1file[]" />[/CODE] To upload the files I call a function uploadFile() which looks like this: [CODE]function uploadFile($thefile) { $base_path = "files/"; …

Member Avatar for network18
0
163
Member Avatar for tiger86

Hey; I have 6 months of work done in PHP and I really don't want to re-invent the wheel but I want to use some Ruby in my site. Is it possible to "mix languages" like PHP and ruby or will I run into some major problems? I would really …

Member Avatar for codejoust
0
268
Member Avatar for anatta

Hi guys, I am trying to add an instant messaging system to my website so that logged in member can chat one-on-one with other member on his/her contact list. I am aware that there are many of such free scripts that I can use but I would rather learn to …

Member Avatar for network18
0
123

The End.