Jump to content

GetFreaky

Members
  • Posts

    46
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

GetFreaky's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Well Object-C provides sort of both ends don't you agree? it has those low-level functionalities, not the same as Assembler I agree, and it has embbed high-level concepts, I think it plays well with both.
  2. I misunderstood, thats why I was wondering why your code looks a little funny to me, but that makes sense what you are trying to do. When you say I thought you ment these folders already exist. You need to use the mkdir function to create the folder, now I'm confused as to what the png is for, is this a file that already exists based on a ID, or is this a new png picture you are generating with php?
  3. sorry I forgot to add the $conn->query try <?php $conn = new mysqli("****", "***", "****"); $conn->select_db('mynotesdatabase'); $result = $conn->query("SELECT * FROM " . $_GET['Folder'] . " WHERE Name='" . $_GET['Name'] . "'") or die(mysql_error()); while($row = mysqli_fetch_array($result) or die(mysql_error())) { echo "<br>"; echo $row['Main']; echo "<br>"; } echo "<br/> <a href='javascript:history.back(-1);'>Back</a>"; ?>
  4. from OP I understood that the his query is faulty and doesn't generate the table values... however mysql_error() should ouput if something is wrong, and its still blank page with no error. Unless a new entry is inserted with blank values, then what I said above is irrelevant.
  5. This could be a configuration problem, check your Apache's error log OP.
  6. No problem, everyone helped out equally as well, Is your code working now?
  7. Btw, could you try to print 1; On the top of your script, to see if file even runs the code. You said its a blank screen/no error output, its what I'm seeing also.
  8. Some issues at first glance, there is no spaces here FROM" . $_GET['Folder'] . "WHERE try <?php $conn = new mysqli("****", "***", "****"); $conn->select_db('mynotesdatabase'); $result = $conn->("SELECT * FROM " . $_GET['Folder'] . " WHERE Name='" . $_GET['Name'] . "'") or die(mysql_error()); while($row = mysqli_fetch_array($result) or die(mysql_error())) { echo "<br>"; echo $row['Main']; echo "<br>"; } echo "<br/> <a href='javascript:history.back(-1);'>Back</a>"; ?> Any reason why your table name is from a HTTP var? Also your query is susceptible to unwanted injection.
  9. There is a undefined variable $x prior to your for loop, where are you getting this variable from. $_FILES['data']['name'][$x].',
  10. What you are trying to accomplish with the way you have implemented two variables into the url won't work, because one or the other may not exist, you need to test certain conditions before stamping a direct/file/ as existent, and readable. Firstly you need to check if the directory exists, then check if its readable, followed by checking if the file exists. If all those conditional statements prove to be true, then you can construct your url as such $file = '/var/www/html/public_html/svsshc/'$_date'/'.$_REQUEST['id'].'.png'; Also where is your $_date variable coming from? Is it from a database,user input, external data, local...etc
  11. op are you sure your database credentials are correct
  12. I ment [[UITabBarController alloc] init]
  13. Where is your $email variable? also where have you declared your $row variable? It seems to me that you are editing code that isn't written by you? If so, do you understand how to fetch the result from a mysql query? Your terminates prior to sending the email
  14. If anyone has worked with Objective C, especially with Apple's Cocoa framework, then you will understand @interface myCustomController : NSObject @end @implementation myCustomController @end or objects/functions UITabBarController * tabController = [[UITabBarController] alloc]; [objectReceiver objectMessage:param1:param2]; Is it just me or is Obj-C actually beautifully written, I see alot of people complaining on the syntax and it looking messy. I do understand the frustration at first trying to figure out at the square brackets... Personally I think the syntax for invoking class methods/instance methods, interface/implementation, delegate, structs...etc is better than c++. what is your thoughts?
  15. I use to be one of those authors, and I even wrote a tutorial however the author membership didn't do anything, I couldn't post the tutorial.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.