- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 6
- Posts with Upvotes
- 6
- Upvoting Members
- 6
- Downvotes Received
- 2
- Posts with Downvotes
- 2
- Downvoting Members
- 2
53 Posted Topics
Re: On line 1 you are missing another right paren ) and left curly brace { at the end of the line. if (isset($_POST["password"])) { $Email = $_POST['email']; $password = $_POST['password']; $conn = new mysqli('localhost', 'root', '', 'test1'); if ($conn->connect_error) { die('Connection Failed : ' . $conn->connect_error); } else { $stmt … | |
Re: What is it you are looking for though. Do you have a specific question? What have you tried already? ![]() | |
Re: Another method to use is mysql DATE_SUB() Try this method: `select * from Article where date > DATE_SUB(NOW(),INTERVAL 10 HOUR)` | |
Re: Try this: ini_set('post_max_size', '64M'); ini_set('upload_max_filesize', '64M'); | |
Re: I remembered seeing this on another site: [url]http://stackoverflow.com/questions/255312/how-to-get-a-variable-name-as-a-string-in-php[/url] Quite a few different solutions there. | |
Re: I don't believe it will output the GW_UPLOADPATH constant when it is in quotes on line 64. [CODE]echo "<strong>gw_uploadpath with screenshot 4:</strong><img src=GW_UPLOADPATH". $screenshot."><br />"; [/CODE] Should be: [CODE]echo '<strong>gw_uploadpath with screenshot 4:</strong><img src="'.GW_UPLOADPATH.$screenshot.'"><br />'; [/CODE] | |
Re: Check out this link for Joomla Model View Controller (MVC) tutorial: [url]http://docs.joomla.org/Developing_a_Model-View-Controller_Component_-_Part_1[/url] | |
Re: It could be your SQL on line 17 of your code. Try using the word AND instead of the logical operator &&. Like this: [CODE] $query="select * from latest where username='$username' AND password='$password'"; [/CODE] | |
Re: Could you use simple math? (Count*.05/100).'%'? | |
Re: On line 16, you never closed out that echo statement. Change line 16 to this: [CODE] </div>"; ?> [/CODE] | |
Re: It could be caused from your "view.html.php" file looping through your entire <table>. If you want me to check it out, post the code for that. It should be in the "views" folder. | |
Re: Have you tried [URL="http://www.phpmyadmin.net/home_page/index.php"]phpmyadmin[/URL]? | |
Re: Do you have an example of the code? Perhaps you could put up the actual error message and the print_r($_SESSION) output. | |
Re: I think the last reply meant session_start(); Also, try putting single quotes around the $username variable in your MySQL select statement. Example: [CODE] $resulta = mysql_query("SELECT access FROM users WHERE username='$username'"); [/CODE] [QUOTE=solidrichard;1563824]Hi i have problem in my login code. Firts someone fill in login informations this is checking code … | |
Re: Make sure they are in your http doc root folder, and then load them into your browser. Example: [url]http://localhost/first.php[/url] | |
Re: Depending on the quality of the site... and the experience of the person/firm designing and implementing the site. It may cost anywhere from $500 to $5,000+, in addition to a monthly/yearly fee for updates. Unless the client just wants a "dumb" site with no SEO work or design. I guess … | |
Re: It probably is enabled, but you may have an error in your JavaScript that IE is picking up. The other browsers will sometimes be more lax in their error checking. | |
Re: It might be a permissions issue with the folder/directory you are randomly creating. You may need to chmod it after you create it. | |
Re: Check your phpinfo to see if allow_url_fopen is enabled. allow_url_fopen This option enables the URL-aware fopen wrappers that enable accessing URL object like files. Default wrappers are provided for the access of remote files using the ftp or http protocol, some extensions like zlib may register additional wrappers. Note: This … | |
![]() | Re: fgets — Gets line from file pointer string fgets ( resource $handle [, int $length ] ) Gets a line from file pointer. Example #1 Reading a file line by line [code=php] <?php $handle = @fopen("/tmp/inputfile.txt", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } … ![]() |
Re: You just need to declare that variable from the form. [code=php] <form name="word" method="post" action="notSureWhatToPutHere"><fieldset> <legend>Type your word here:</legend> <input type="text" name="enterWord" id="wotd" size="77"> <input type="submit" name="Submit" value="Submit" id="submitwotd"> </fieldset> </form> <?PHP //declare the variable POSTED from the form $word = $_POST['enterWord']; //if $word is not blank then proceed. if … | |
Re: You could use something like this at the end of your URL - ?player_id=1111 Example: [url]http://www.website.com/profile?player_id=1111[/url] Then in your code you would have to add: [code=php] //For the current code you have on line 18 echo "<a href='profile?playerid='".$row['player_id']."'>". $row['gamertag']. ""; [/code] For the new page where it goes when they … | |
Re: Are you getting any errors from PHP or mysql_errors? Have you tried turning on the PHP error reporting with: [code=php] <?PHP ini_set('error_reporting',E_ALL); ini_set('display_errors','On'); ?> [/code] | |
Re: [QUOTE=saji.ka;580679]Dear All, I am new to PHP. I would like to include video (Flash Videos) in the website using PHP. Can u please help by giving the code. Saji[/QUOTE] Here is code from a previous project of mine. Use as much or as little as you want. The function I … | |
Re: Either one, whichever you are comfortable with. | |
Re: I am pretty sure you can have only one image to submit. Here is a workaround: [url]http://blogs.translucentcode.org/mick/2006/06/19/multiple-image-submit-buttons-and-ie/[/url] | |
Re: I always recommend books by [URL="http://www.sitepoint.com"]www.sitepoint.com[/URL] | |
Re: Just make sure when you access the site use the secure prefix -- [URL="http://www.webcarpenter.com"]http[COLOR="Red"]s[/COLOR]://www.webcarpenter.com[/URL] instead of [URL="http://www.webcarpenter.com"]http://www.webcarpenter.com[/URL] Note the S in HTTPS:// | |
Re: [QUOTE] header("Location: userhomepage.php"); [/QUOTE] One was to pass this variable without sessions is to use the $_GET vars... like this: [code] header("Location: userhomepage.php?passit=$passit"); [/code] Then on the userhomepage.php have some code like this at the top: [code] //userhomepage.php if (isset($_GET['passit'])) { $passit = $_GET['passit']; } [/code] | |
Re: Some basics that most clients request are... - Add pages easily - add/update parent menu/child menu/grandchild menu - Edit page conent (flash and html) with WYSIWIG editor OR HTML - Add/mange images easily - Manage contact form submissions - Mailing list management - Product management (if e-commerce) - descriptions - … | |
Re: Here is an example... could you try to be more specific? This will select records with an in_date of '%-03-18' or out_date of '%-04-20': [code] SELECT * FROM table WHERE in_date LIKE '%-03-18' OR out_date like '%-04-20' [/code] | |
Re: Another way to do the same thing: This should be in a loop when you are querying the database for each "row" of data. [code] echo ($variable21 != '') ? "<p><b>Meetings:</b> $variable21</p>" : ''; [/code]; | |
Re: You could do this, make a new field on the form that is submitting to this page. [code] $email=$_POST['email']; $query = "SELECT * FROM customers WHERE job_number='$jobnumber' [COLOR="Red"]OR email='$email'[/COLOR]"; [/code] OR Use the same field on that page, but let them know that they can enter either one in that … | |
Re: PHP might be confused by the comparison operator you are using. You could be comparing a string to an integer. 1 !== "1" true but 1 != "1" false You might try changing this comparison operator: !== [QUOTE]if ($_SESSION['level'] [COLOR="Red"]!==[/COLOR] $level) [/QUOTE] to this != [code] if ($_SESSION['level'] [COLOR="Red"]!=[/COLOR] $level) … | |
Re: Well, post the code. That's the point. | |
Re: original koneksi.php [quote] $connected = mysql_connect('localhost', 'root'); if( !connected ) { die ("Connect to MySQL Server failed"); } $retval = mysql_select_db("sarana", $connected); if (!retval) { die ("Database doesn't connect"); } [/quote] A couple changes are needed in your koneksi.php: [code] $connected = mysql_connect('localhost', 'root'[COLOR="Red"], 'password'[/COLOR]); if( ![COLOR="Red"]$connected [/COLOR]) { die … | |
Re: Were you planning on using JavaScript, Frames, or something else? If it's just plain HTML and CSS here is one method: For musings.html 1. Copy what you have. 2. Save it as musings.html 3. Change the <!-- Main content --> section to the "musings" content. 4. Re-save 5. Repeat with … | |
Re: [QUOTE]How do I INSERT datetime to the MySQL db from the php login script? [/QUOTE] Assuming you have the code in place to set up the username and password vars from your form: [code] //connect to database dbConnect(); //query the database $query = mysql_query("SELECT * FROM users WHERE username='$username' AND … | |
Re: Change this: [QUOTE=swapna7999;611999] if(empty($result)) $error["result"] = "There was an error moving the uploaded file."; [/QUOTE] To this: [code] if(!$result) $error["result"] = "There was an error moving the uploaded file."; [/code] The $result variable should be true if the file is moved successfully. | |
Re: Try this: [code] <script type="text/javascript"> var txtaReceipt; var txtName; function ProcessOrder() { var txtName=document.frmMain.txtName.value; document.frmMain.txtaReceipt.value=("Welcome to Dirty Deli," + txtName + "!"); alert("hi"); <!--I am only using the alert to let me know that the page is really working, that is how I check that the page is functioning--> } … | |
Re: If you want it to stop after 10 add LIMIT 10 to the end of your SQL query. Otherwise it will loop through all the records. | |
Re: Please post code so we can see where the problem is. You can probably use a meta refresh or header redirect. | |
Re: Change your code to have the From: at the top of the $headers like this. Also, removed the To: in the $headers, as it is entered in another variable in the mail() function. [code] // To send HTML mail, the Content-type header must be set $headers = 'From: admin@thinksane.net' . … | |
Re: [QUOTE=veledrom;597115]Hi, I need to send a SMS message or/and Email in my database project. Which one is better option for me; Shall i create database with Oracle or MySQL? Thanks[/QUOTE] Depending on the SMS messages you are sending, it could be free. If you are sending to cell phone carriers … | |
Re: Just a tip: If you are going to use the checkboxes on each record, you cannot use another form with in that table. Start the <form> at the top and insert a checkbox on each row... then add a submit button at the to and/or bottom of the table and … | |
Re: If you are just trying to view the source, use Notepad, Ultraedit, Dreamweaver or any other text editor. If you want to run the file... You can set up a PHP server on your own computer/box and view the PHP with that. A simple one to implement is WAMP Server … | |
Re: You may also want to check if you have an auto-prepend file set on your server. | |
Re: > Hi All, > I Have Some Problem with my PHP Searching Code... > I Want to Create Hyperlink of Multipul Data for Ex. :- a user Found example if this query have maney data this show as hyperlink view.... > > i am using this code....... //Set the MySQL … | |
Re: [QUOTE=dottomm;579564]Hello and thanks in advance to anyone that can help. I trying a simple password recovery script that emails the password after a registered user enters their email. For testing purposes I have been able to get the variable to display on the page after submission, but the email that … |
The End.