8,966 Posted Topics
Re: Try this: [CODE] $result = mysql_query("select title,first_name,last_name,email,username,address,country,city,mobile_phone FROM Customer_Infor WHERE username='{$_SESSION['username']}' ") or die (mysql_error()); [/CODE] | |
Re: Mysql usually runs on port 3306, not on 8080. | |
Re: You forgot to specify with what ? Something you cannot find in the documentation ? | |
Re: I suggest you start with reading up on [URL="http://nl2.php.net/manual/en/language.oop5.basic.php"]classes[/URL], then the [URL="http://premailer.dialect.ca/api"]documentation[/URL] for this particular class, and then try it and see what happens. On the other hand, the last 6 lines of the class show you exactly how to use it... | |
Re: [CODE]$q = mysql_query($query, $con) or die(mysql_error());[/CODE] Be more specific. | |
Re: Is there a question ? (Please add code tags.) | |
Re: You can install a local server, or am I completely missing your point? ![]() | |
Re: [url]http://www.addedbytes.com/lab/password-protect-a-directory-with-htaccess/[/url] Password protect /uploads/ and all others will be protected too. | |
Re: Kindly point out the offending line next time. It just means it has no value yet. You can check with isset(). | |
Re: Use $_POST, not $_GET. Are you sure your mail server allows you to connect, or does it need authentication ? | |
Re: $(this) in the hover function points to the current element. So swap out 'img.front' for this. | |
Re: Anything is possible. In it's most basic version a simple replace will do. Don't be mislead, CSS is a cascading style and can inherit from it's parent or another class. That makes it much more difficult. First you'll need a script to parse a css file, so you can match … | |
Re: The outputted image is a transparent PNG. Either change the output format (if possible), or put the image in a white background. | |
| |
Re: You can work around it if you split your var into multiple parts, so if your search key is hello world, split on the space (explode) and generate this query: [CODE] $search = explode(' ', $var); $where = array (); foreach ($search as $item) { $where[] = " content LIKE … | |
Re: What should be in the dropdown ? Just the names ? | |
Re: Some of them you can find [URL="http://en.wikipedia.org/wiki/Software_development_methodology"]here[/URL]. Personally, I like an agile method (scrum for example) which has short cycles and focuses on current priorities. | |
![]() | Re: [url]http://php.net/manual/en/control-structures.elseif.php[/url] [url]http://www.fluffycat.com/PHP-Design-Patterns/PHP-Performance-Tuning-if-VS-switch/[/url] Personally, I like if/else better because of flow readability. |
Re: Am sure this is not all code. The error you get means the query has failed. Post more code. | |
![]() | Re: The first one is the only correct way. Although the second (still) works, it is first parsed as a constant but not found, then parsed as a string (thus slower), but invalid code anyway. It may not work or cause errors in future versions. ![]() |
Re: Answered in [URL="http://www.daniweb.com/web-development/php/threads/383286"]this thread[/URL]. | |
Re: $name is an array, you should use $name[1] to get just the name part. | |
Re: Since you pass only clientid to the mail script, you have to query tbl_clients again to get the name via the id. | |
Re: As stated in the link, output the $_POST array to check whether all values have been set correctly. Also show output for your REMOTE_ADDR. | |
Re: How will you determine whether a link is region/town or construction/bricklayer ? Both rewrites are two levels, and are built using identical expressions. My guess is that you can only solve this by using a PHP file to determine which one it is and do the correct redirect. | |
Re: Read this: [url]http://www.directadmin.com/forum/showthread.php?t=26887[/url] | |
Re: [iCODE]SHOW TABLES[/iCODE] is the actual query. | |
Re: Just invent something, why waste ten years on languages you'll probably never use. | |
Re: Perhaps an .htaccess file that is now incorrect ? If not, check your logfiles. | |
Re: Tutorial ? It's just code. An explanation would make it a tutorial. For improvement, you can use json_encode() in your php file, to return a JSON object. If you do, then the split() function is obsolete (a [iCODE],[/iCODE] in your return value would break the data too). Best thing is … | |
Re: Why not get a list of table and columns from mysql, and validate against those (SHOW TABLES and SHOW COLUMNS). | |
Re: Although I do not recommend this, have a look at [iCODE]eval()[/iCODE]. | |
Re: [url]http://dev.mysql.com/doc/refman/5.0/en/windows-install-archive.html[/url] I didn't know MySql allowed the redistribution of their packages ? Did their license change recently ? | |
Re: Do you want a hash (as shown), or do you want to be able to decrypt it? Also have a look at [URL="http://www.daniweb.com/web-development/php/threads/178241"]this thread[/URL]. | |
Re: [CODE] if(mysql_affected_rows() >= 1) { $json = array(); while ($post = mysql_fetch_array($get_results)) { $year = $post['year']; $month = $post['month']; $day = $post['day']; $json[] = array ('id' => $post['calendar_id'],'title' => "dfssafsaf", 'start' => "$year-$month-$day", 'url' => "http://yahoo.com/"); } echo json_encode($json); } [/CODE] | |
Re: Make sure error reporting is on. You appear to do a query before the connect, perhaps that causes it. | |
Re: [url]http://www.daniweb.com/web-development/php/threads/336438[/url] | |
Re: [code=sql] DECLARE @RET int DECLARE @ClassType varchar(50) DECLARE @ClassTypeId varchar(50) DECLARE @ClassName varchar(50) DECLARE @SchoolId varchar(50) DECLARE @ClassID varchar(50) DECLARE @BatchId varchar(50) DECLARE @Userid uniqueidentifier DECLARE @ClassCategoryId varchar(50) DECLARE @SchoolClassCategoryId varchar(50) -- TODO: Set parameter values here. EXECUTE @RET = SP_ClassInsertion @ClassType, @ClassTypeId, @ClassName, @SchoolId, @ClassID, @BatchId, @Userid, @ClassCategoryId, @SchoolClassCategoryId … | |
| |
Re: Probably because warnings are turned off in the local php.ini. ![]() | |
Re: Use [URL="http://php.net/urlencode"]urlencode[/URL]. | |
Re: You should put this before line 153: [CODE] require_once('recaptchalib.php'); $publickey = "your_public_key"; // you got this from the signup page $captcha = recaptcha_get_html($publickey); [/CODE] And change lines 249-253 to: [CODE] ' . $captcha . ' [/CODE] You are trying to execute code within a string, that won't work. | |
Re: The user you created did not get permission to GRANT permissions to other users. Login as sysdba and try the GRANT query again. | |
Re: Or sourceforge.net or bitbucket.org | |
Re: How about the [URL="http://jasperforge.org/uploads/publish/jasperreportswebsite/trunk/sample.reference/javascript/index.html"]documentation[/URL]. |
The End.