- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 2
- Posts with Downvotes
- 1
- Downvoting Members
- 2
22 Posted Topics
Hello all, Please make sure if you use timestamp as column type and using `between` in SQL query its advisable to use h:m:s format dates i.e BETWEEN '2010-05-31 00:00:00' AND '2010-06-06 23:59:59' Please advise your comments.
Hi, Try this, The issue I can see is output already started before redirect can take place. [CODE]<?php if(isset($_POST["submit1"])) { header("Location:script1.php"); } else if(isset($_POST["submit1"])) { header("Location:script2.php"); } echo'<form name="form1" method="post">'; echo '<div>'; echo '<input type="submit" name="submit1" id="submit1" value="Create">'; echo '</div>'."\n"; echo '<div>'; echo '<input type="submit" name="submit1" id="submit1" value="Delete">'; echo '</div>'."\n"; …
Hi Gigs, I have UPC numbers with me, are you familier with any API / Libabry which can generate BarCode image ? Thanks in advance
Hello Please never use Zoop. Very poor documentation and support. Go for Zend. Thanks
Hi, Please read this carefully before you reply. I have a content which is really big has more then 4000 lines into it. My client want to have pagination into it. So on first page it will show some content and on second page other content and so on. Any …
Hello SEO pro's, I own <snipped> I would need some SEO advise to get better ranking for some keywords and increase PR Thank you
Hi, Is the issue resolved ? If not, try this code, which will tell you error. [CODE]<?php $username = "root"; $password = "123456"; $hostname = "localhost"; $db = mysql_connect($hostname, $username, $password) or die ("Unable to connect to mySQL".mysql_error()); mysql_select_db('mynewdbase') or die(mysql_error()); $flag = $_GET['flag']; if($flag==1) { $id = $_GET['id']; $del …
Hi, Why dont you use session to save message and show it on same page. If the action was successful redirect to new page with thanks you messages. The way you have done could have issue with browser throwing form data when user will refresh the page One more advantage …
Hi This code in HTML affect the encoding <META http-equiv="Content-Type" content="text/html; charset=gb2312"> The charset in this example is for Chinese website.
Check for other forms on page. The chances could be that previous forms are not closed properly
use die(mysql_error()) to see whats wrong into your query. [CODE]<?php if(isset($_POST['submit'])){ $host= "localhost"; $username= "root"; $password= ""; $db_name= "register"; $tbl_name="form"; mysql_connect("$host","$username","$password") or die(mysql_error());; mysql_select_db("$register") or die(mysql_error());; $fname= $_POST['fname']; $lname =$_POST['lname']; $eid =$_POST['eid']; $pwd=$_POST['pwd']; $cpwd=$_POST['cpwd']; $sql="INSERT INTO $form (id , fname ,lname, eid , pwd,cpwd) VALUES('NULL',' $fname','$lname','$eid','$pwd','$cpwd')"; $result=mysql_query($sql) or die(mysql_error()); // …
also have this attribute into <input type="button" value="" so as to remove the black text overlapping the button
Yes it vBulleting with many addons. Highly customized. Need experienced person to work on it.
The issue seems to be escaping variables. you should use ' and " in sql stmt to clearly distinguish variables into sql query. There can be some chances the code is getting failed before reaching to this point. Good luck. Keep us updated, what works for you.
Can you give me idea what was the old url ? Would you try this in seperate lines, hope that will work redirect 301 /oldpath [url]http://www.yoursite.com/newpath/[/url] [Add as new line in .htaccess]
You need to define headers into email code which will specify the content type, i.e Content-Type: text/html; For more information you can check [url]http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php[/url] Thanks
Try this, [CODE]<?php // Provide Values for Database $dbhost="host"; $dbname="name"; $dbuser="user"; $dbpass="password"; //Don't change the below 2 lines $dbconnect=mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error()); mysql_select_db($dbname) or die(mysql_error()); $rs=mysql_query("select * from adminsettings") or die(mysql_error()); if(mysql_num_rows($rs)>0) { $arr=mysql_fetch_array($rs); $sitename=$arr[0]; $siteurl=$arr[1]; $webmasteremail=$arr[2]; $adminpass=$arr[3]; $alertpay=$arr[4]; $fee=$arr[7]; $levels=$arr[8]; $level1=$arr[9]; $level2=$arr[10]; $level3=$arr[11]; $level4=$arr[12]; $level5=$arr[13]; $level6=$arr[14]; $level7=$arr[15]; $level8=$arr[16]; $level9=$arr[17]; $level10=$arr[18]; …
I have PHP code Using .htaccess mod-rewrite for company_name-ID.html TO index.php?id=ID the code gives me filename as index.php what I need is company_name-ID.html The code I am using is [code] $currentFile = $_SERVER['PHP_SELF']; $parts = explode('/', $currentFile); $currentFile = $parts[count($parts) - 1]; [/code] Please help me
You can include some of the core functions, database connectivty, global variables and licensing information into that lic.php That way if the file is not included then your script will not work.
Hi Guys, I need your help. I have fedex address validation code downloaded from FedEx. The code works fine at this moment. Have you implemented the code in such a way so that it will tell you exact error / problem in validating address. Like, Invaid home address Block number …
The End.
it200219