39,402 Topics

Member Avatar for
Member Avatar for goodnohello

Here is the error I am getting: Unknown column 'Lo' in 'field list' Here is my code. Any suggestions to get rid of this error: global $conn,$dal; $customerID = mysql_insert_id(); $strSQLInsert = "insert into Orders (CustomerID, LastName) values (".$customerID.", ".$values["LastName"].")"; db_exec($strSQLInsert,$conn); $rs = $dal->Orders->Query("CustomerID=".$customerID." and LastName=".$values["LastName"],""); $data = db_fetch_array($rs); $idvalue …

Member Avatar for rajarajan2017
0
110
Member Avatar for iWalletMobile

I am trying to write a php code that will determine if a user has viewed the Facebook app before, and if they havent to show a "welcome page" instead of the normal "index" page. Is there a way to read the sql table and forward them to a "welcome …

Member Avatar for crivion
0
100
Member Avatar for phplover

Hi, I want to know what you think is best for me to do. I got a functions file that is included on every webpage on my website as it is in the top.inc.php file althou not all pages will use the functions file. So my question is, should i …

Member Avatar for phplover
0
113
Member Avatar for Awah Mohamed

hello guys , i want to know if i can sent 2 emails from my website at the same time and also how to send two different emails form one code at the same time , i mean i want to create a form that someone fill it to invite …

Member Avatar for crivion
0
92
Member Avatar for Awah Mohamed

hello guys , how can i send my html email through php code , i mean i enter my html codes and then the php code sends it but in form of message not codes ,or any way ,my question is how to send an html email through php code …

Member Avatar for crivion
0
129
Member Avatar for Awah Mohamed

guys i want my php pages appear as eg : my-page.com/page.php?id=01 please tell me how to do it and do i need to create many pages each one with different id or how does it work .

Member Avatar for crivion
0
158
Member Avatar for iWalletMobile

Is there a way to have an SMS authentication? Meaning a user puts there phone number it, they get sent an SMS message with a number, put the number in the website to verify the account. Any tutorials?

Member Avatar for iWalletMobile
0
174
Member Avatar for phphit

I am using Smarty for Template Engine. For one page, I want to display list of months in chronological order. The current month is July, so order should be July August September .. . . .. June. Any idea ?

Member Avatar for metalix
0
1K
Member Avatar for metalix

Hi there. I am looking to create a script in php that will get an image from an upload form and upload it to a site using ftp. It needs to save the original image in the site images/full/ and also create a proportional image thumbnail (100x100) in images/thumb/ What …

Member Avatar for edup_pt
0
211
Member Avatar for phplover

Hi, I have basically created two functions in a filed called functions.php . They are as follows: [CODE] # Form Token Hash Generator (must be declared after if statement) function GenerateFormTokenHash(){ $token = $_SESSION['token'] = md5(uniqid(mt_rand(), true)) ; return $token; } # Form Token Hash Validator function IsValidFormTokenHash(){ return $_POST['token'] …

Member Avatar for phplover
0
226
Member Avatar for SKANK!!!!!

now i know that there is a thing that "you cant stay logged inforever" but isnt there some sort of ultra cookie that doesnt get cleared when a user is clearing their cookies from their browsers? and when someone logs out of my site, i set the session to expired. …

Member Avatar for Excizted
0
982
Member Avatar for phphit

I need to know what should I do to show event time (stored in mysql) according viewer's local time. I have stored time in two format (one simple 12:30; and another in timestamp format). The timings are of future and stored as GMT. Now, I would like to show time …

Member Avatar for metalix
0
118
Member Avatar for keval_hack

Hi, Can any one tell me how to make secure php site or what is the key point for making secure website using php. -keval

Member Avatar for metalix
0
516
Member Avatar for Mirth

Hello everyone. I'm still new to PHP. What I would like to do is to place the value of the $truck inside the column Truck. I don't have any error messages whenever I run this page, so I don't really know what's wrong, and no values are placed inside the …

Member Avatar for Excizted
0
149
Member Avatar for pankaj87us@gmai

the error i am getting in the html file Message: Syntax error Line: 1 Char: 1 Code: 0 URI: [url]http://localhost/testhtml/test.php[/url] The test.php code is <?php Header("content-type: application/x-javascript"); echo “document.write(‘Hello World I am php code called from HTML file:’);”; CLOSE WINDOW; ?> The test.html code is “<script language="JavaScript" type="text/javascript" src="http://localhost/testhtml/test.php"></script>” HELLO …

Member Avatar for pankaj87us@gmai
0
1K
Member Avatar for rahul8590

Well i need to change my banner of the website alternatively , like once user experiences the pic1 which would be incorporated in my CSS. But the point is i want that pic to change . for example when user 1st time logs in , he see pic1 as a …

Member Avatar for rahul8590
0
170
Member Avatar for LloydFarrell

Hi, I am trying to upload a single image but I keep getting an error that is at the bottom that tells me the upload failed - Its really annoying & I have been going round in circles for days now - here is my php [code] <? //Include database …

Member Avatar for LloydFarrell
0
86
Member Avatar for tjcares

I own a site and the programmer has not made the columns user selectable for ascending and descending. Would any one like to help me out? Here is a spinet of code that has the tables. [code=php] <tr> <td width="50" align="center"><font size="2"><? print $usemembernumber ?></font></td> <td width="50" align="center"><font size="2"><? print …

Member Avatar for almostbob
0
105
Member Avatar for niche1

the html version of this php script works. What's wrong with this php script? It produces:Parse error: parse error, expecting '','' or '';'' in C:\wamp\www\temp8.php on line 5 [code] <html> <body> <?php echo '<input onMouseOver="this.style.color='red'" onMouseOut="this.style.color='blue'" style="position:absolute;left:111px;top:290px;border:none; color:blue;border:none;background:transparent;font:bold;font-size:150%;cursor:pointer;" type="Submit" value="Print Selections" />'; ?> </body> </html> [/code]

Member Avatar for niche1
0
127
Member Avatar for phphit

Below is code as of now in my .htaccess [CODE]RewriteRule ^series/([^/]*)-([^/]*)-schedule-fixtures\.php$ /viewseries.php?id=$1 [L] RewriteRule ^schedule/([^/]*)-([^/]*)\.php$ /viewschedule.php?id=$1 [L] RewriteRule ^venue/([^/]*)\.php$ /viewvenue.php?vcity=$1 [L] RewriteRule ^team/([^/]*)\.php$ /viewteam.php?team=$1 [L] RewriteRule ^month/([^/]*)\.php$ /viewmonth.php?month=$1 [L] [/CODE] Now, Problem is that it doesn't show redirect 301 to google or anyone other. Can you tell what should I …

Member Avatar for it200219
0
108
Member Avatar for vilasdhobale

Hi there, i'm currently writing a HTML & PHP script, i need to be able to click a standard HTML button which fires some PHP code to execute a program, for example Microsoft Excel. In time there will be a series of buttons which will execute different programs. If anyone …

Member Avatar for it200219
0
78
Member Avatar for RJB_Ronnie

Hi All, New to the world of PHP and such, and took on a project that I really should have farmed out, but too late now. Here is my question: the problem is the redirect for an error message in a contact us page. I have very specific standards set …

Member Avatar for RJB_Ronnie
0
126
Member Avatar for ashcares

Hi there, I was hoping someone might help me edit this [URL="http://www.pcmechanix.ca/mobile_redirect.htm"]mobile redirect code[/URL] so that it includes IPhones with the redirecting process. Any suggestions? FYI - Besides this minor exception, it is quite an effective code for redirecting mobile phones. You can try it for yourself, simply enter the …

Member Avatar for mrlynn
0
163
Member Avatar for phplover

Hi, I'm new here so first i would like to say hello to everyone :) I have been learning PHP for the past year on and off and have built a fully pledged website. Since my website first launched it has progressed into a full membership system which i love …

Member Avatar for phplover
0
173
Member Avatar for web_master

how do i insert a image into a directory through MySQL, rename it, generate a link and upload the generated link in MySQL......??? anyhelp will be really apprietiated.... and if its a tutorial its the best way out, i'm not good at PHP..... plz its urgent for me.. thx alot..

Member Avatar for rahulsabari
0
176
Member Avatar for keval_hack

Hi, I Want to Send HTML mail with Image and logo. pls some one help me how i can do it. Thanks -keval

Member Avatar for almostbob
0
120
Member Avatar for Jothe

Hi guyz i am getting an error on my header information..the warnig is displayed when this part of code Runs echo '<a href="' . 'ecomm_catalogue_view.php?product_code=' . $product_code .'" >'; '</a>'; header("location: ecomm_catalogue_view.php?' . 'product_code=' . $product_code . '"); the warning displayed on top of each page is: Warning: Cannot modify …

Member Avatar for metalix
0
96
Member Avatar for jesus123

Hi, I used this coding for sending mail.It's working but there is a problem,I receive mail 2 times,then sender mail id is not displaying,It receiving in the name of webmaster that in coding ($headers = 'From: [email]webmaster@example.com[/email] ' . "\r\n")(eg. [email]webmaster@example.com[/email]), I want receive mail as sender mail Id who …

Member Avatar for metalix
0
69
Member Avatar for cproud21

Hi, I am attempting to connect a form in Dreamweaver to an email account via a ftp webspace. I have the following generic code, (HTML form and PHP mail file) but I am not receiving emails... Would anyone have an idea of what I have done wrong and/or provide any …

Member Avatar for metalix
0
242
Member Avatar for surfgrommett

Hey guys. This is driving me crazy. I can't see any code problems and I had another friend look and neither can he. EVERYTHING works PERFECTLY...all echos work right and everything and no errors get returned..the problem is $query4 and $query5 appear to do nothing..though i get no error..i get …

Member Avatar for metalix
0
313
Member Avatar for metalix

Hi there I am having some trouble with a script. What it does is uses the http request (similar to googles search suggestions) to replace the entire page content div, this works fine but some of these pages use javascript. one has a lightbox, another has contact form verification. is …

0
185
Member Avatar for mitch9654

How could I [CODE]print();[/CODE] the '<' and '>' signs? You can't escape character them ('') Say, for example, I wanted to Print(); "The <font> tag is awesome" It would print out: "The tag is awesome" Thanks, Mitch

Member Avatar for mitch9654
0
102
Member Avatar for moneythakur
Member Avatar for dinomark

I have a special character that I want to replace from a string. The character is š and i want to replace with s but I didn't managed to do this with this particular php file. It is actually encoded utf-8 . Please help me this is becoming a nightmare.

Member Avatar for diafol
0
53
Member Avatar for QWaz

Hi, I am using some code that I use pretty much most of the time for every insert. However now I am getting this error and have no idea why this is happening. SQLSTATE[42S22]: Column not found: 1054 Unknown column 'NULL' in 'field list' My code is below. [CODE] $id …

Member Avatar for sourcebits
0
515
Member Avatar for raju_boini525

hi all, i am new to wordpress. i am developing one sample theme. i created 5pages. i dont know how to set my home as index page. when i click my theme logo it must redirect to index.php it redirected but dynamic home page content are not displayed it displays …

Member Avatar for sourcebits
0
198
Member Avatar for xnukerx

Hi, I have a forum when members posting a lot of images links. I would like to organize the page but I don't really know how since I'm lack the knowledge of php :| . Here it how it's look like now: IS: [url]http://img78.imageshack.us/img78/3997/123.jpg[/url] [url]http://img78.imageshack.us/img78/3997/12345.jpg[/url] TP: [url]http://i42.tinypic.com/123.png[/url] [url]http://i42.tinypic.com/123.png[/url] and so …

Member Avatar for sourcebits
0
122
Member Avatar for ayesha789

Hi, this is my query. I calculate difference of 20 days from pDate(Process Date) form today. But I want if rfDate(Resubmitted date) it will count from rfdate and ignore Pdate. [CODE=mysql]SELECT * FROM `lims_payment` WHERE TO_DAYS( NOW( ) ) - TO_DAYS( `pDate` ) >20 AND rfDate LIKE '0000-00-00'[/CODE]

Member Avatar for rch1231
0
165
Member Avatar for shubhamjain1

I am banging my head for many hours but still cant ge tit done. Here is the URl [url]http://www.superpages.com/bp/Fords-NJ/Five-Star-Insurance-Agency-LLC-L0001976672.htm?OF=1&C=taxation&lbp=1&TR=2&bidType=FFCLIK&PGID=yp457.8081.1278687125248.17713187910&dls=true&bpp=4[/url] I am trying to match the products and services part and lists that follow. Here what i had tried. [CODE]preg_match(/Services<\/a><\/h3>.*?<a.*?>\(Edit\)</a>\s+<ul>(.*?)</ul>/smi,$data,$store);[/CODE]

0
68
Member Avatar for seodevid

is there a way to display how many users are online in the site in PHP without utilizing mysql?

Member Avatar for Zoon
0
53
Member Avatar for doS!

Hi, yesterday i downloaded a script. Now, im installing it on my website, but when i load index.php page and all the page where config.php is included, it say that: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/mhd-01/www.newsict.com/htdocs/config.php on line 13 this is config.php : …

Member Avatar for it200219
0
181
Member Avatar for raju_boini525

hi all, i am new to wordpress. i am getting [COLOR="Red"]"An Unexpected HTTP Error occurred during the API request."[/COLOR] error when i search for plugin in plugin installation page. why do i get this error. please help me.

0
51
Member Avatar for benhowdle89

Hi, I'm developing a php script that reads data from a mysql db and then puts the data into csv format to then be sent upto Pachube.com for a web app i'm developing. This is a simple problem i'm sure but i cant seem to solve it! Code below: [CODE] …

Member Avatar for benhowdle89
0
167
Member Avatar for bperiod

I want to do something like that: I have a textfield. If the user inputs Some word search, it puts something (it is not necessary, what) after every words, except last like Some 1 word 2 search or Some asdf word asdf search. How can I do that? Thanks!

Member Avatar for pritaeas
0
65
Member Avatar for muralibobby2015

hello... i am working on wordpress now. i have one doubt please clarify..actually in my blog there is confirmation form. if user sends after filling that form. i want to display that messages in admin side. how to do?

0
90
Member Avatar for niths

hi all, i am having a upload page where we can upload images.so the problem is wen i browse for uploading images i am getting a pop up as every one knows so in that if there are 4 images i need to upload in that popup,i am allowed to …

Member Avatar for paulrajj
0
40
Member Avatar for reza.adinata

Hi all, I am trying to work an an array , by storing them in a txt file so I can process it. I tried several ways for storing the key and value in a text file, but it does not work [CODE] $diff = array_diff($array1, $array2); $myFile = "1.txt"; …

Member Avatar for rajarajan2017
0
77
Member Avatar for gbudiman

So this is the scenario. I provide a link to an Excel file. All the users are intranet user, so security is not a concern here. When the user clicks the link, it will pop up dialog to open/save with Microsoft Excel. Users are currently able to open file correctly. …

Member Avatar for chrishea
0
185
Member Avatar for nyra98

Ok, I am working on a website which will accept uploads and in an iFrame next to the upload form display a list of files in the upload folder. The iFrame will be showing a php script that is listing the files. Here is where the problem is, I can …

Member Avatar for nyra98
0
212
Member Avatar for debow

Hello all, I'll try to explain what I'm wanting to do the best way I can. I have an event_results table that contains multiple athlete id's and for each athlete they are tied to an event in the same table. The screen shots should help explain. I also created a …

Member Avatar for debow
0
1K

The End.