335 Posted Topics
Re: Can we see the code you are working on? or Are you asking for someone to work on this for you? If so, send me PM and I can give you my rates. I am willing to spend time to help you fix any issue that I can, but I … | |
Re: Try this: $jstring = file_get_contents('http://steamcommunity.com/id/spekat/inventory/json/730/2'); $jobject = json_decode($jstring); echo '<pre>'; print_r($jobject->rgInventory); echo '</pre>'; foreach($jobject->rgInventory as $k => $v){ echo $k . ": " .$v->classid . "<br />"; } | |
Re: I believe you are missing a caret(^) sign in your rule `RewriteRule ^products/([0-9]+)/?$ show_a_product.php?product_id=$1 ` | |
Re: Make sure the db user has permission to connect to the db.. Also check your host string and password. Sometime webhosts only need 'localhost' or 127.0.0.1 for the host string in your mysql connection | |
Re: Well, if you are creating static html page for your website, all you need to do is create a template.html file and copy this file foreach new page you want to add. If you want to have a dynamic site, you can create an admin panel for your site to … | |
Re: Try changing your host to localhost or 127.0.0.1 | |
Re: I always thought with a software raid 5 you need to install the OS on one disk then use disk manager to set up the raid. | |
Re: It would be better for you to use php sessions, but you can accomplish this task with cookies. ![]() | |
Re: I like the cheesy demo on the google page. B) I have never heard of this API or service before.. Its sounds interesting. Give's me some ideas to make a wp plugin or something. | |
Re: Yeah, read this the other day, and was supprised that the university was teaching students to code with CI.. To me that was a reasurrance that, CI is a solid framework and should be used on a higher level. I find CI to be my goto framework on small projects, … | |
Re: What are you asking for? Do you want to upload and rename files to a wordpress site? What does your code look like? Can we see your code so we can help you fix the problem. | |
Re: > <?php > require_once 'connect.php'; > $idz=$_POST['criteria_id']; > $wh=mysql_query("select * from criteria"); > while($loop=mysql_fetch_array($wh)){ > $ca=$loop['criteria_id']; I see you are trying to get a post value, but I don't see a form in your code? Sidenote: The way you are writing your code will make it really hard to debug … | |
Re: You can also check you PHP error logs. This would be a better way to find errors than display them on a live site. | |
Re: Dump your post variable and see what you are getting from the form. If you are getting the correct params, then you know its not the form. If you are getting incorrect params then the problem is with the form and post. By the looks of your code, your sha1 … | |
Re: If you want to load your model and your helpers on the index, they need to be included within the index functions. Else, you can load them in the autoload.php or in the class construct. public function index() { //You can also autoload these in the autoload.php file in the … | |
Re: So are you building this framework and run into a problem so your are looking for help or are you asking if anyone knows of a framework? | |
Re: One thing I ask about a pre made wordpress themes is... How hard is this theme to customize.. I have had so many problems with customizing themes in the past, Im really picky now. For instance, when I need to add a new custom template or adjust the layout of … | |
Re: Like Adrian said.. We need to see code. How are we suppose to know what you are talking about or having problems with. Read the Posting rules. As for your question, try using a loop. Example: $rows = array($row1, $row2, $row3, $row4); foreach($rows as $row){ //insert new row to database. … | |
Re: If you want to build games I would recommend Unity. If you want to learn another programing language, I would recommend PHP because its easy to spot errors, it has some easy syntax to remember.. and you can create web based apps with html/css/javascript. The next lang I would recommend … | |
Re: What about something linke this: $dir = scandir(dirname(realpath(__FILE__))); $pattern = "^\/(.+\/)*(.+)\/^"; foreach($dir as $file){ $file = preg_replace($pattern, '', $file); if( $file != '.' && $file != '..' ){ echo $file . '<br />'; } } This grabs all the files and folders in the current directory scripts out the file … ![]() | |
Re: Something like this. $connection = mysqli_connect("localhost", "my_user", "my_password", "world"); $sql = "UPDATE tablename SET 'table_record' = 'new_value'"; for($i=0, $i<4999;$i++) { mysqi_query($connection, $sql); } | |
Hello everyone from ZendCon 2014   | |
Re: You can accomplish this with ajax. Kind of like this: <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: function(data){ alert(data); } }); }); }); </script> | |
Re: Change your connection to this: new mysqli($hostname, $username, $password, $dbname); Change your getenv to this: $query = $_SERVER['QUERY_STRING']; Change your update string to this: $update = "UPDATE shifts SET name1 = '$name1', name2 = '$name2', name3 = '$name3', name4 = '$name4', shift = '$shift' WHERE name1 = '$name1'"; | |
Re: Here is a good gallerys and sliders [Revolution](http://themepunch.com/revolution/) [NextGen](http://www.nextgen-gallery.com/basic-thumbnail-gallery/) | |
Re: You can use [substr](http://php.net/manual/en/function.substr.php) $string = 'I want to buy a new car'; echo substr($string, 0, 9); The first param is the string, the second param is where to start and the third param is the length. This would be a more dynamic approache. You can set all params to … ![]() | |
Re: What type of timestamp(timestamp, datetime, current_time) is your column excepting Try using this" `date('Y-m-d H:i:s', strtotime($date2));` ![]() | |
Re: This is wrong. `echo "1 record added` is breaking the code. if (!mysqli_query($con,$sql)) { die('Error: ' . mysqli_error($con)); } echo "1 record added"; } else { echo "Please fill in the form to register.Not Succesful<br>"; } Should be if( !mysqli_query($con, $sql) ){ die('Error: ' . mysqli_error($con)); }else{ echo "1 record … | |
Re: Can we look at your shortcode.. the code you are displaying shows nothing? | |
Re: This would something to handle your problem with jquery. <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: function(data){ alert(data); } }); }); }); </script> | |
Hello everyone, just wanted to say hi from Wordcamp!  | |
Re: should be: if(isset($_GET['id']){ $productID = $_GET['id']; } | |
Re: User firefox with firebug->console to see if any errors are shown. In your mysqli connection, try changing to localhost or 127.0.0.1 | |
![]() | Re: Its better to buy a product that has been already established, this way you can maximize on the the profits. I mean if MC has 1,000,000 users and your buy for 2.5billion.. You can create a mulitple upgrades for $20, and if everyone upgraded you will get 20million. Do that … |
Re: make sure session_start() function is the first line of code.. If this is true, than place ob_start() after session_start(); | |
Re: What do you mean string array? Do you mean: `json_decode([Apple, Orange]);` | |
Re: http://<?php echo $_SERVER['HTTP_HOST']; ?>/images/img1.jpg | |
Re: you should put your database functions or procedure in a model. Use the controller to handle the input and output. Example for your select dropdown. lecture_model.php <?php if( !defined('BASEPATH') ){exit("No direct script access allowed!");} class Lecture_Model extends CI_Controller { public function get_coarse_information() { $this->db->select('id, email'); $this->db->from('course_lecturers'); $query = $this->db->get(); if($query->num_rows() … | |
Re: Try this to see if you get the error $dbh = new PDO('mysql:host=localhost;dbname=qbank', 'registration', 'register'); if you get error, post error.. Godaddy used to have url's for the host string.. not sure if they are doing that anymore.. which means you would have to put : `database.host.securedserver.com` Something like this … | |
Re: you can try a couple of things like `ini_set('max_execution_time', '3000');` or in your htaccess file: <IfModule mod_php5.c> php_value max_execution_time 3000 </IfModule> | |
Re: What does their API allow for? Can you send a json string the the server? If so, you could complie you dataset into a json string and send in one transaction. | |
Re: Do a var_dump on your $row and session to see what you get? If you are not getting anything in the row var than you have a problem with your sql, if your session is empty then you have a problem with ini_set or session. | |
Re: you can do this with jquery.ajax [Ajax Docs](http://api.jquery.com/jquery.ajax/) <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"> <script type="text/javascript"> jQuery(document).ready(function($){ $('#button').on('click', function(e){ e.preventDefault(); $.ajax({ url: 'path/to/script.php', type: 'POST', //Change the data below to match the data you want to send or //You can send a serialized form data: {user_id: $_SESSION['user_id'], liked: true, url_slug: $(location).attr('href')}, cache: false, success: … | |
Re: I would convert everything to PHP, in your code above I see nothing that would prevent from changing to .html.. All I see is javascript and html. Now, the above code is out dated in my opinion, but it will still work. One thing you can do is copy and … ![]() | |
Re: Why not join your two tables if the primay index is the username for both. I haven't tested this code out but in theroy it should work. if( $substr=="AC" ) { $query = "SELECT user_tb.*, pass_tb.Password FROM reg_ac, username WHERE user_tb.UserName = pass_tb.UserName AND user_tb.UserName = '$usrnm' AND user_tb.SecurityQues = … | |
Re: Can we see the rest of your code? I'm pretty sure you don't need the change function, or you can try the keyup function. | |
| |
Re: Here is a good tutorial, for an alternative solution. [Here](http://www.html5rocks.com/en/tutorials/dnd/basics/) | |
Re: Where is your connection string? For your loop try this: while($row = mysqli_fetch_array($qry)){ echo '<a href="' . $row['slug'] . '">' . $row['slug_name'] . '</a>'; } | |
The End.